[Bug bootstrap/38693] gcc 4.4.0 20090101 - gcc/config/i386/sol2-10.h uses "USE_GAS" which is undefined
--- Comment #1 from rob1weld at aol dot com 2009-01-02 13:46 --- Prior to changing "gcc/config/i386/sol2-10.h": u...@opensolaris:/usr/share/src/gcc_build# /usr/share/src/gcc_build/gcc/xgcc -v -B/usr/share/src/gcc_build/gcc/ -B/usr/local/i386-pc-solaris2.11/bin/ -B/usr/local/i386-pc-solaris2.11/lib/ -isystem /usr/local/i386-pc-solaris2.11/include -isystem /usr/local/i386-pc-solaris2.11/sys-include -m64 -c -g -O2 test_gcc_1.c ... GNU C (GCC) version 4.4.0 20090101 (experimental) (i386-pc-solaris2.11) compiled by GNU C version 4.2.2, GMP version 4.2.1, MPFR version 2.3.2. GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 0e3e878a55369e9ed157733a6752ae45 COLLECT_GCC_OPTIONS='-v' '-B/usr/share/src/gcc_build/gcc/' '-B/usr/local/i386-pc-solaris2.11/bin/' '-B/usr/local/i386-pc-solaris2.11/lib/' '-isystem' '/usr/local/i386-pc-solaris2.11/include' '-isystem' '/usr/local/i386-pc-solaris2.11/sys-include' '-m64' '-c' '-g' '-O2' '-mtune=generic' /usr/share/src/gcc_build/gcc/as -V -Qy -xarch=generic64 -s -o test_gcc_1.o /var/tmp//cc2mayli.s GNU assembler version 2.19 (i386-pc-solaris2.11) using BFD version (GNU Binutils) 2.19 /usr/local/i386-pc-solaris2.11/bin/as: unrecognized option `-xarch=generic64' u...@opensolaris:/usr/share/src/gcc_build# After changing "gcc/config/i386/sol2-10.h": u...@opensolaris:/usr/share/src/gcc_build# /usr/share/src/gcc_build/gcc/xgcc -v -B/usr/share/src/gcc_build/gcc/ -B/usr/local/i386-pc-solaris2.11/bin/ -B/usr/local/i386-pc-solaris2.11/lib/ -isystem /usr/local/i386-pc-solaris2.11/include -isystem /usr/local/i386-pc-solaris2.11/sys-include -m64 -c -g -O2 test_gcc_1.c ... GNU C (GCC) version 4.4.0 20090101 (experimental) (i386-pc-solaris2.11) compiled by GNU C version 4.2.2, GMP version 4.2.1, MPFR version 2.3.2. GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 0e3e878a55369e9ed157733a6752ae45 COLLECT_GCC_OPTIONS='-v' '-B/usr/share/src/gcc_build/gcc/' '-B/usr/local/i386-pc-solaris2.11/bin/' '-B/usr/local/i386-pc-solaris2.11/lib/' '-isystem' '/usr/local/i386-pc-solaris2.11/include' '-isystem' '/usr/local/i386-pc-solaris2.11/sys-include' '-m64' '-c' '-g' '-O2' '-mtune=generic' /usr/share/src/gcc_build/gcc/as -V -Qy --64 -s -o test_gcc_1.o /var/tmp//ccU3aynm.s GNU assembler version 2.19 (i386-pc-solaris2.11) using BFD version (GNU Binutils) 2.19 COMPILER_PATH=/usr/share/src/gcc_build/gcc/:/usr/local/i386-pc-solaris2.11/bin/:/usr/local/i386-pc-solaris2.11/lib/:/usr/ccs/bin/ LIBRARY_PATH=/lib/amd64/:/usr/lib/amd64/:/usr/share/src/gcc_build/gcc/:/usr/local/i386-pc-solaris2.11/bin/:/usr/local/i386-pc-solaris2.11/lib/:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-B/usr/share/src/gcc_build/gcc/' '-B/usr/local/i386-pc-solaris2.11/bin/' '-B/usr/local/i386-pc-solaris2.11/lib/' '-isystem' '/usr/local/i386-pc-solaris2.11/include' '-isystem' '/usr/local/i386-pc-solaris2.11/sys-include' '-m64' '-c' '-g' '-O2' '-mtune=generic' u...@opensolaris:/usr/share/src/gcc_build# If "USE_GAS" in "gcc/config/i386/sol2-10.h" was set in the root ./configure on the basis of "--with-as=/usr/gnu/bin/as" and "--with-gnu-as" in a combination of whether the platform was "sparc" or "i386" then we could get past this block in the build. It is unclear (to me) if the original author intended that Sun's assembler could be used instead of binutils' "as" (unlikely?) or if they were uncertain of which commands are used by each version (unlikely?). OpenSolaris' "as" (one of them) is called "fbe" (sunas) and accepts "-m32" and "-m64". The man page (2008/04/23) also says that this "as" only will accept "-xarch=" arguments for the Sparc Platform. If I knew what the original author intended I could suggest a proper fix. It would seem that either the root configure.ac needs to be modified to set "USE_GAS" correctly _or_ line 27 (the "#ifndef USE_GAS") in the file "gcc/config/i386/sol2-10.h" could check if we are x86 or sparc . Rob -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38693
[Bug bootstrap/38693] gcc 4.4.0 20090101 - gcc/config/i386/sol2-10.h uses "USE_GAS" which is undefined
--- Comment #2 from rob1weld at aol dot com 2009-01-03 19:15 --- Since this bug is related to the assembler I tried setting the "--with-gnu-as --with-as=" options for configure and while that allowed the build to continue it then went down a path of uncharted waters (and numerous problems with the scripts not creating/copying libtool, not building the 64 directories, etc.). What I finally ended up doing was this: ../gcc_trunk/configure --enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --enable-multilib --enable-shared --disable-static --enable-decimal-float --enable-nls --with-gnu-as --with-as=/usr/local/bin/as --with-gnu-ld --with-ld=/usr/local/bin/ld Note that I set 'as' and 'ld' to the "binutils-2.19" version (it is first in the path). On the Solaris Platform it is common (and recommended) to set "--with-gnu-as --with-as=binutils-as --without-gnu-ld --with-ld=/usr/ccs/bin/ld" when compiling gcc -- since I had not set these configure options the later scripts tooks paths that are untested on this platform (and therefore failed). It would seem that this is a second bug; that the configure script does not have the same effect if it detects options automatically that it would have if the user manually set the configure option to the same value. I should not have to actually set configure options (to their automatically determined (default) value) in order that later scripts will work correctly. I have completed "make install" and now for a little testing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38693
[Bug bootstrap/38693] gcc 4.4.0 20090101 - gcc/config/i386/sol2-10.h uses "USE_GAS" which is undefined
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-01-03 19:54 --- And this is documented in the installation documentation. (Confusion may also result if the compiler finds the GNU assembler but has not been configured with --with-gnu-as.) http://gcc.gnu.org/install/configure.html -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38693
[Bug bootstrap/38693] gcc 4.4.0 20090101 - gcc/config/i386/sol2-10.h uses "USE_GAS" which is undefined
--- Comment #4 from rob1weld at aol dot com 2009-01-06 03:01 --- (In reply to comment #3) > And this is documented in the installation documentation. > (Confusion may also result if the compiler finds the GNU assembler but has > not > been configured with --with-gnu-as.) > > http://gcc.gnu.org/install/configure.html > # ../gcc_trunk/configure --help | grep with-gnu-as Since "--with-gnu-as" is removed from the help I though you were trying to encourage "automatic detection" (and thus the testing of same) so I left off "-with-gnu-as" thinking that since configure chose it's "as" it ought to know which one it picked ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38693
[Bug bootstrap/38693] gcc 4.4.0 20090101 - gcc/config/i386/sol2-10.h uses "USE_GAS" which is undefined
--- Comment #5 from pinskia at gmail dot com 2009-01-06 03:32 --- Subject: Re: gcc 4.4.0 20090101 - gcc/config/i386/sol2-10.h uses "USE_GAS" which is undefined On Jan 5, 2009, at 7:01 PM, "rob1weld at aol dot com" wrote: > > > --- Comment #4 from rob1weld at aol dot com 2009-01-06 03:01 > --- > (In reply to comment #3) >> And this is documented in the installation documentation. >> (Confusion may also result if the compiler finds the GNU assembler >> but has not >> been configured with --with-gnu-as.) >> >> http://gcc.gnu.org/install/configure.html >> > > # ../gcc_trunk/configure --help | grep with-gnu-as > It is an option for the gcc subdirctory configure and not the toplevel configure. > Since "--with-gnu-as" is removed from the help I though you were > trying to > encourage "automatic detection" (and thus the testing of same) so I > left off > "-with-gnu-as" thinking that since configure chose it's "as" it > ought to > know which one it picked ... > > > -- > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38693 > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38693
[Bug bootstrap/38693] gcc 4.4.0 20090101 - gcc/config/i386/sol2-10.h uses "USE_GAS" which is undefined
--- Comment #6 from rob1weld at aol dot com 2009-01-06 07:55 --- (In reply to comment #3) > And this is documented in the installation documentation. > (Confusion may also result if the compiler finds the GNU assembler but has > not > been configured with --with-gnu-as.) > > http://gcc.gnu.org/install/configure.html There is also this (which needs correcting / proofreading): # info gccinstall i?86-*-solaris2.10 == Use this for Solaris 10 or later on x86 and x86-64 systems. This configuration is supported by GCC 4.0 and later versions only. It is recommended that you configure GCC to use the GNU assembler in `/usr/sfw/bin/gas' but the Sun linker, using the options `--with-gnu-as --with-as=/usr/sfw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld'. Should that say: It is recommended that you configure GCC to use the GNU assembler in `/usr/sfw/bin/gas' _WITH_ the Sun linker... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38693
Re: [Bug bootstrap/38693] gcc 4.4.0 20090101 - gcc/config/i386/sol2-10.h uses "USE_GAS" which is undefined
On Jan 5, 2009, at 7:01 PM, "rob1weld at aol dot com" > wrote: --- Comment #4 from rob1weld at aol dot com 2009-01-06 03:01 --- (In reply to comment #3) And this is documented in the installation documentation. (Confusion may also result if the compiler finds the GNU assembler but has not been configured with --with-gnu-as.) http://gcc.gnu.org/install/configure.html # ../gcc_trunk/configure --help | grep with-gnu-as It is an option for the gcc subdirctory configure and not the toplevel configure. Since "--with-gnu-as" is removed from the help I though you were trying to encourage "automatic detection" (and thus the testing of same) so I left off "-with-gnu-as" thinking that since configure chose it's "as" it ought to know which one it picked ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38693