This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Binaries compiled with gcc-2.95.2 won't execute.
- To: didier at ece dot gatech dot edu
- Subject: Re: Binaries compiled with gcc-2.95.2 won't execute.
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Thu, 30 Dec 1999 19:28:08 +0100
- CC: bug-gcc at gnu dot org
- References: <Pine.GSO.4.21.9912301257340.18608-100000@didier.ee.gatech.edu>
> Here is the results from gcc -v:
>
> >gcc -v
> Reading specs from
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
This is not what I meant. Please put '-v' into *each* invocation when
compiling cfengine, e.g.
gcc -v -o foo foo.c
>
> >grep xarch specs
> %{mcpu=v8plus:-xarch=v8plus} %{mcpu=ultrasparc:-xarch=v8plusa}
> %{!mcpu*:%(asm_cpu_default)}
>
> What I do not understand is why this is passed to the assembler in case of
> cfengine, and not in the case of the compilation of other programs
> like nmap:
I'm not certain whether this is really the case, only gcc -v can tell
what the compiler actually does. With 'gcc -dumpspecs', you can find
out the value of asm_cpu_default.
Also, if you link in a library that contains SPARC32PLUS binaries, the
resulting binary will also be SPARC32PLUS.
Regards,
Martin
P.S. I removed bug-cfengine@gnu.org from the CC: