Bug 25596 - sol2-c1.asm: Assembler messages: Error: invalid architecture -xarch=v8
Summary: sol2-c1.asm: Assembler messages: Error: invalid architecture -xarch=v8
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.1.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2005-12-29 11:41 UTC by Wasfi JAOUAD
Modified: 2006-01-02 17:13 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wasfi JAOUAD 2005-12-29 11:41:37 UTC
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.
Comment 1 Andrew Pinski 2005-12-30 06:01:51 UTC
Do you have the GNU binutils installed or are you using the Sun provided one?
Comment 2 Wasfi JAOUAD 2005-12-30 10:16:14 UTC
(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
Comment 3 Andrew Pinski 2005-12-30 16:49:24 UTC
(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?
Comment 4 Wasfi JAOUAD 2005-12-30 18:04:37 UTC
(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.
Comment 5 Wasfi JAOUAD 2005-12-30 18:56:39 UTC
(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.
Comment 6 Wasfi JAOUAD 2006-01-02 17:13:19 UTC
Closed