More linux->sun problems

Gabriel Rocha
Fri Jul 13 02:54:00 GMT 2001

,----[ On Fri, Jul 13, at 09:54AM, David Korn wrote: ]--------------
|   Oops, sorry, didn't spot you were using newlib.  newlib doesn't work
| with solaris; glibc might but in any case it's irrelevant; you don't
| actually want or need either because you already have the C library (that
| you preinstalled into $prefix/$target/lib) and header set (that is copied
| into $prefix/$target/sys-include by the configure --with-headers option
| and patched into $prefix/$target/include by fixincs).  Ditch newlib
| altogether from the build tree and ditch the --with-newlib option if you
| were using it.
`----[ End Quote ]---------------------------

Ok, I kind of give up trying blindliy here, I have read both FAQ's
(which arent totally useless, but pretty close to it, if you're trying
to use a target that isnt listed...for example, solaris. I am using this
line for my gcc configure 

../gcc-2.95.3/configure --target=sparc-sun-solaris2.6
--prefix=/usr/local/ --with-headers --with-gnu-ld --with-gnu-as -v

binutils builds fine, same target. I tarred up /usr/lib and /usr/include
in my solaris machine, untarred them onto my freebsd machine under
$prefix/$target I get the following error on gmake all-gcc:

<---error start--->

gmake[2]: Leaving directory `/data/gcc/build-gcc/gcc/intl'
rm -f tmplibgcc2.a
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
_ashldi3 _ashrdi3 _ffsdi2 _ud
iv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi
_fixunssfsi _fixunsdfdi _fi
xdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi
_fixtfdi _fixunstfdi _floatdi
tf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache
_trampoline __main _exit _ctors _pur
e; \
do \
  echo ${name}; \
  /data/gcc/build-gcc/gcc/xgcc -B/data/gcc/build-gcc/gcc/
-B/usr/local//sparc-sun-solaris2.6/bin/ -I
/usr/local//sparc-sun-solaris2.6/include -O2  -DCROSS_COMPILE -DIN_GCC
-DHAIFA    -g -O2 -I./include
-I. -I../../gcc-2.95.3/gcc -
I../../gcc-2.95.3/gcc/config -I../../gcc-2.95.3/gcc/../include -c
-DL${name} \
       ../../gcc-2.95.3/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  sparc-sun-solaris2.6-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
../../gcc-2.95.3/gcc/libgcc2.c:42: unistd.h: No such file or directory
gmake[1]: *** [libgcc2.a] Error 1
gmake[1]: Leaving directory `/data/gcc/build-gcc/gcc'
gmake: *** [all-gcc] Error 2

<---error end--->

please help. thanks. --gabe
"It's not brave, if you're not scared."

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list