This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
solaris bootstrap failure using cc for stage1, stab.h not found...
- To: egcs-bugs at cygnus dot com
- Subject: solaris bootstrap failure using cc for stage1, stab.h not found...
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 15 Nov 1998 20:19:13 -0500 (EST)
- Cc: schwab at issan dot cs dot uni-dortmund dot de
Snapshot: egcs-CVS19981115
Platform: sparc-sun-solaris2.5
Stage1 compiler: cc
Assembler: native
Linker: native
BOOT_CFLAGS: none
Recent bootstraps on Solaris fail using cc for stage1 after
the following patch was installed.
> 1998-11-09 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
>
> * dbxout.c: Check HAVE_STAB_H instead of HAVE_STABS_H.
While the patch itself is entirely logical, it breaks on Solaris
(having used cc for stage1) for the following reason: the file stab.h
is not in /usr/include, its in some /opt/SUNWspro/... directory where
the optional compiler was installed. Only the stage1 cc compiler can
find it. So when I get to stage2, gcc chokes when compiling dbxout.c.
(Note, its not practical to hardcode adding this directory with -I only
for solaris since its not mandated where to install the compiler and the
directory itself contains the version number of the solaris compiler in
its path.)
This points out a general flaw in the autoconf support of gcc's
source. That is, the stage2 and 3 autoconf macros are really only valid
for the stage1 compiler. The include file macros are especially prone
to be invalid after fixincludes gets done with its work.
So we either need to:
1. Revert the patch (bad idea since it really is logical.)
2. Put a solaris specific hack in to avoid stab.h in dbxout.c. (Bleah.)
3. Rerun configure for every stage. (Possibly a large job.)
4. Something else I overlooked?
--Kaveh
PS: Here is the specific error message:
> stage1/xgcc -Bstage1/ -B/usr/local/sparc-sun-solaris2.5/bin/ -c
> -DIN_GCC -DSVR4 -W -Wall -g -O2 -pipe -DHAVE_CONFIG_H -DHAIFA
> -I. -I. -I./config -I./../include dbxout.c
>
> dbxout.c:171: stab.h: No such file or directory
>
> dbxout.c: In function `dbxout_function_end':
> dbxout.c:362: `N_FUN' undeclared (first use in this function)
> dbxout.c:362: (Each undeclared identifier is reported only once
> dbxout.c:362: for each function it appears in.)
> dbxout.c: In function `dbxout_init':
> dbxout.c:411: `N_SO' undeclared (first use in this function)
> dbxout.c: In function `dbxout_start_new_source_file':
> dbxout.c:509: `N_BINCL' undeclared (first use in this function)
> dbxout.c: In function `dbxout_resume_previous_source_file':
> dbxout.c:521: `N_EINCL' undeclared (first use in this function)
> dbxout.c: In function `dbxout_source_file':
> dbxout.c:546: `N_SOL' undeclared (first use in this function)
> dbxout.c: In function `dbxout_finish':
> dbxout.c:587: `N_SO' undeclared (first use in this function)
> dbxout.c:584: warning: unused parameter `filename'
> dbxout.c: In function `dbxout_symbol':
> dbxout.c:1725: `N_FUN' undeclared (first use in this function)
> dbxout.c:1791: `N_LSYM' undeclared (first use in this function)
> dbxout.c:1677: warning: unused parameter `local'
> dbxout.c: In function `dbxout_symbol_location':
> dbxout.c:2014: `N_GSYM' undeclared (first use in this function)
> dbxout.c:2029: `N_LCSYM' undeclared (first use in this function)
> dbxout.c:2033: `N_FUN' undeclared (first use in this function)
> dbxout.c:2040: `N_STSYM' undeclared (first use in this function)
> dbxout.c:2047: `N_RSYM' undeclared (first use in this function)
> dbxout.c:2075: `N_LSYM' undeclared (first use in this function)
> dbxout.c: In function `dbxout_prepare_symbol':
> dbxout.c:2191: warning: unused parameter `decl'
> dbxout.c: In function `dbxout_parms':
> dbxout.c:2281: `N_PSYM' undeclared (first use in this function)
> dbxout.c:2325: `N_RSYM' undeclared (first use in this function)
> dbxout.c: In function `dbxout_block':
> dbxout.c:2619: `N_LBRAC' undeclared (first use in this function)
> dbxout.c:2652: `N_RBRAC' undeclared (first use in this function)
> dbxout.c:2573: warning: `blocknum' might be used uninitialized in this function
> make[2]: *** [dbxout.o] Error 1
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Icon CMT Corp.