Hi. This is my first "bug" report, so don't shoot at me if it not in the rules of art, better teach me.. Compiling snapshots gcc-4.1 core & g++ of 20051029 and 20051223 on : SunOS xxxx 5.8 Generic_117350-24 sun4u sparc SUNW,Sun-Fire-880 gave the same error message at the same place : when compiling gcc/config/sparc/sol2-c1.asm : Error: invalid architecture -xarch=v8 Executed like this : cd gcc ./xgcc -B./ -B/home/wjaouad/Tools/gcc-v4.1/sparc-sun-solaris2.8/bin/ -isystem /home/wjaouad/Tools/gcc-v4.1/sparc-sun-solaris2.8/include -isystem /home/wjaouad/Tools/gcc-v4.1/sparc-sun-solaris2.8/sys-include -L/home/mount/wjaouad/tmp/compile/gcc-v4.1/objdir/gcc/../ld -c -o crt1.o -x assembler-with-cpp /home/wjaouad/tmp/compile/gcc-v4.1/gcc-4.1-20051223/gcc/config/sparc/sol2-c1.asm it gives the same error. All I did is : cd objdir {full path}/configure --prefix=home/wjaouad/Tools/gcc-v4.1 make bootstrap Using : gcc-3.4.5 (compiled with no problem gcc-2.95.2 on the same machine) make-3.80 Wasfi.
Do you have the GNU binutils installed or are you using the Sun provided one?
(In reply to comment #1) I am using a mix : gcc (GCC) 3.4.5 GNU assembler 2.10 Solaris /usr/ccs/bin/ld, ar, nm, strip <--- bison (GNU Bison) 1.35 GNU Make 2.80 But this worked when I compiled gcc-3.4.5. ---- When compiling gcc-3.4.5 with gcc-2.95.2 : Needed Make version > 2.78: libjava/libgcj.objectlist generated using a Make function (call) imlemented in v>=2.78 Needed bison version <= 1.35 : duplicates are warnings and do not make Make abort
(In reply to comment #2) > (In reply to comment #1) > I am using a mix : > gcc (GCC) 3.4.5 > GNU assembler 2.10 So you are using GNU as. Can you add to you configure options, --with-gnu-as and see what happens?
(In reply to comment #3) > Can you add to you configure options, --with-gnu-as and see what happens? > I compiled and installed latest core and binutils so to use gnu tools only. I just started a clean run with a SVN co of 2005.12.29. If it fails, I'll make realclean and start it over --with-gnu-as. I'll report results here. Thank you for your suggestion.
(In reply to comment #4) > (In reply to comment #3) OK, GNU As did it. That was a bug in .. SUN's As(s) ! Now I'am hitting a ".. binutils-2.16/bin/ld:libgcc/./libgcc.map: file format not recognized .." when creating libgcc_s.so.1.tmp.. but that's an other story. This time I'll double check before creating a bug report ;--) Maybe my binutils are too recent ! Thank you Andrew. Wasfi.
Closed