4.2.0 tool chain build on Solaris 2.7

John Morrison JMorrison@printronix.com
Fri Mar 14 17:25:00 GMT 2008

Hi all.

I'm obviously doing something wrong (stupid?).

I'm trying to build a gnu 4.2.0 tool chain on Solaris 2.7 host for a
powerpc-eabi target.  The sources are:

The source, build and install directories are all separate from each

The binutils build and install appears to be ok.  The GCC build and
install appears to be ok.

But when I do a compile, it appears that the wrong assembler is used.
Here is a snippet of the "-v" output (I've "trimmed" out stuff due to

Using built-in specs.
Target: powerpc-eabi
Configured with:
/home/morr_jo/work/ToolChain/sunCross/src/gcc-4.2.0/configure -v
n --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib
Thread model: single
gcc version 4.2.0
bi/4.2.0/cc1 -quiet -nostdinc -v ...snipped..... -I
/rel/software/psa/ecos_2/repos/ecos2_install/include/cyg/io -I
/rel/software/psa/ecos_2/repos/ecos2_install/include/sys -iprefix
/opt/gnu/gcc.ppc/lib/gcc-lib/powerpc-eabi/4.2.0/ ....snipped.... -D
MANUAL_GTPA_ADJUST /rel/software/psa/ptxdrvr/c/snoopdrv.c -quiet
-dumpbase snoopdrv.c -mcpu=603 -mstrict-align -auxbase-strip snoopdrv.o
-g -O0 -Wall -Wno-format -version -fno-builtin -fno-for-scope -o
cc1: note: obsolete option -I- used, please use -iquote instead
cc1: warning: command line option "-fno-for-scope" is valid for
C++/ObjC++ but not for C
ignoring nonexistent directory "../src"
ignoring nonexistent directory "/rel/software/psa/sl/h"
ignoring nonexistent directory "/rel/software/psa/ppl/h"
#include "..." search starts here:
#include <...> search starts here:
...... snipped out the search list due to size  .......
GNU C version 4.2.0 (powerpc-eabi)
	compiled by GNU C version 2.95.2 19991024 (release).
GGC heuristics: --param ggc-min-expand=65 --param ggc-min-heapsize=65536
Compiler executable checksum: d11f24170b8b94a58948dac4d826ba1f
-mppc -many -V -Qy -o snoopdrv.o /tmp/ccjEp2aQ.s
GNU assembler version 2.10.1 (powerpc-eabi) using BFD version 2.10.1
/tmp/ccjEp2aQ.s: Assembler messages:
/tmp/ccjEp2aQ.s:35: Warning: Missing string
/tmp/ccjEp2aQ.s:35: Error: Rest of line ignored. First ignored character
is `1'.
/tmp/ccjEp2aQ.s:36: Error: Unknown pseudo-op:  `.loc'
/tmp/ccjEp2aQ.s:43: Error: Unknown pseudo-op:  `.loc'

I've already done a successful install of the same tool chain on a Linux
i686 system.
The Sun uname info:  SunOS merlin 5.7 Generic_106541-11 sun4u sparc
The PATH variable value during the GCC build and install was:

No where in that path is the path to the assembler identified in the
listing above.

I obiously do not understand something about Sun (no jokes please) or
unix in general.
Any help would be appreciated. If you need more info, please let me

John Morrison
Printronix, Inc

More information about the Gcc-help mailing list