* xgcc build: -Dinhibit_libc appears not to work
@ 2001-03-21 9:11 Sean Callanan
2001-03-21 14:36 ` Alexandre Oliva
0 siblings, 1 reply; 2+ messages in thread
From: Sean Callanan @ 2001-03-21 9:11 UTC (permalink / raw)
To: gcc-help
Dear mailing list,
I have been having issues compiling gcc as a cross-compiler.
Specifically, my problems center around -Dinhibit_libc.
I am trying to compile gcc 3.1 (from Mar 17 CVS) using gcc-2.95.2 under
SuSE Linux 7.0/sparc on a Sun Ultra 5 with an UltraSparc IIi processor.
The build and host platform is sparc[32]-linux, the target platform is
sparc64-linux (I'm basically trying to build a full sparc64 userland and
distro).
I have the March 14th CVS of binutils, and the March 17th CVS of gcc. My
environment is set up as follows:
BUILD="sparc-linux"
HOST="sparc-linux"
PREFIX="/usr/local"
TARGET="sparc64-linux"
I am following instructions from the CrossGCC HOWTO, and have separate
build directories for each of the packages. I am not using the
"one-tree" build method.
First, I configured binutils:
> ../binutils/configure --build=$BUILD --host=$HOST --target=$TARGET --prefix=$PREFIX -v
Then, I built it (make; make install) successfully. I now have sparc64-*
in /usr/local/bin.
Then, I configured gcc:
> ../gcc/configure --build=$BUILD --host=$HOST --target=$TARGET --prefix=$PREFIX -v
Subsequently, I issued the command
> make cross LANGUAGES=c
(this has also been tried with "make cross", "make LANGUAGES=c", "make"
and "make all", since that's every build method I could find on the
Internet. Error messages do not vary between these methods.)
The build fails with the messages below. How can I build GCC without
requiring libc for my target platform? This must be possible or else
we'd have a chicken-and-egg problem. In addition, why is the
-Dinhibit_libc in the xgcc command not preventing these errors from
happening?
Sincerely,
Sean Callanan
... lots more messages ...
make GCC_FOR_TARGET="/usr/local/src/build-gcc/gcc/xgcc
-B/usr/local/src/build-gcc/gcc/ -B/usr/local/sparc64-linux/bin/
-B/usr/local/sparc64-linux/lib/ -isystem
/usr/local/sparc64-linux/include" \
HOST_PREFIX="" HOST_PREFIX_1="loser-" \
AR_FOR_TARGET="sparc64-linux-ar" \
AR_CREATE_FOR_TARGET="sparc64-linux-ar rc" \
AR_FLAGS_FOR_TARGET="" \
OLDCC="cc" CCLIBFLAGS="-O" \
CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long" \
RANLIB_FOR_TARGET="sparc64-linux-ranlib" \
RANLIB_TEST_FOR_TARGET="[ -f sparc64-linux-ranlib ] || ( [
"sparc-unknown-linux-gnu" = "sparc64-unknown-linux-gnu" ] && [ -f
/usr/bin/ranlib -o -f /bin/ranlib ] )" \
NM_FOR_TARGET="sparc64-linux-nm" AWK="gawk" \
LIBGCC2_CFLAGS="-O2 -DCROSS_COMPILE -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include
-fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc" \
INCLUDES="-I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
-I../../gcc/gcc/config -I../../gcc/gcc/../include" MAYBE_USE_COLLECT2=""
\
CONFIG_H="config.h auto-host.h
gansidecl.h ../../gcc/gcc/config/sparc/linux64.h defaults.h
insn-codes.h"
MACHMODE_H="machmode.h machmode.def" \
LIB1ASMSRC='' \
MAKEOVERRIDES= \
-f libgcc.mk all
make[2]: Entering directory `/usr/local/src/build-gcc/gcc'
for d in libgcc; do \
if [ -d $d ]; then true; else mkdir $d; fi \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
make GCC_FOR_TARGET="/usr/local/src/build-gcc/gcc/xgcc
-B/usr/local/src/build-gcc/gcc/ -B/usr/local/sparc64-linux/bin/
-B/usr/local/sparc64-linux/lib/ -isystem
/usr/local/sparc64-linux/include" \
AR_FOR_TARGET="sparc64-linux-ar" \
AR_CREATE_FOR_TARGET="sparc64-linux-ar rc" \
AR_EXTRACT_FOR_TARGET="" \
AR_FLAGS_FOR_TARGET="" \
CC="gcc" CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long" \
HOST_PREFIX="" \
HOST_PREFIX_1="loser-" \
LANGUAGES="c c++" \
LIBGCC2_CFLAGS="-O2 -DCROSS_COMPILE -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include
-fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc " \
MULTILIB_CFLAGS="" T= crtbegin.o
make[3]: Entering directory `/usr/local/src/build-gcc/gcc'
make[3]: `crtbegin.o' is up to date.
make[3]: Leaving directory `/usr/local/src/build-gcc/gcc'
/usr/local/src/build-gcc/gcc/xgcc -B/usr/local/src/build-gcc/gcc/
-B/usr/local/sparc64-linux/bin/ -B/usr/local/sparc64-linux/lib/ -isystem
/usr/local/sparc64-linux/include -O2 -DCROSS_COMPILE -DIN_GCC -W
-Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include
-fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -shared
-nodefaultlibs -Wl,--soname=libgcc_s.so.0
-Wl,--version-script=libgcc.map
-o libgcc_s.so libgcc/./_muldi3.o libgcc/./_divdi3.o
libgcc/./_moddi3.o
libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_negdi2.o
libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o
libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_udiv_w_sdiv.o
libgcc/./_udivmoddi4.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o
libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o
libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o
libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o
libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o
libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o libgcc/./_floatditf.o
libgcc/./__gcc_bcmp.o libgcc/./_varargs.o libgcc/./__dummy.o
libgcc/./_eprintf.o libgcc/./_bb.o libgcc/./_clear_cache.o
libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_exit.o
libgcc/./_absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o
libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o
libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o libgcc/./_negvsi2.o
libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_eh.o
libgcc/./frame-dwarf2.o -lc && rm -f libgcc_s.so.0 && ln -s libgcc_s.so
libgcc_s.so.0
/usr/local/sparc64-linux/bin/ld: skipping incompatible /lib/libc.so.6
when
searching for /lib/libc.so.6
/usr/local/sparc64-linux/bin/ld: skipping incompatible /lib/libc.so.6
when
searching for /lib/libc.so.6
/usr/local/sparc64-linux/bin/ld: skipping incompatible /lib/libc.so.6
when
searching for /lib/libc.so.6
/usr/local/sparc64-linux/bin/ld: skipping incompatible /lib/libc.so.6
when
searching for /lib/libc.so.6
/usr/local/sparc64-linux/bin/ld: skipping incompatible /lib/libc.so.6
when
searching for /lib/libc.so.6
/usr/local/sparc64-linux/bin/ld: skipping incompatible /lib/libc.so.6
when
searching for /lib/libc.so.6
/usr/local/sparc64-linux/bin/ld: skipping incompatible /lib/libc.so.6
when
searching for /lib/libc.so.6
/usr/local/sparc64-linux/bin/ld: skipping incompatible /lib/libc.so.6
when
searching for /lib/libc.so.6
/usr/local/sparc64-linux/bin/ld: skipping incompatible /lib/libc.so.6
when
searching for /lib/libc.so.6
/usr/local/sparc64-linux/bin/ld: cannot find /lib/libc.so.6
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory `/usr/local/src/build-gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/usr/local/src/build-gcc/gcc'
make: *** [cross] Error 2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: xgcc build: -Dinhibit_libc appears not to work
2001-03-21 9:11 xgcc build: -Dinhibit_libc appears not to work Sean Callanan
@ 2001-03-21 14:36 ` Alexandre Oliva
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2001-03-21 14:36 UTC (permalink / raw)
To: Sean Callanan; +Cc: gcc-help
On Mar 21, 2001, Sean Callanan <sc843@bard.edu> wrote:
> The build fails with the messages below. How can I build GCC without
> requiring libc for my target platform?
Try --disable-shared until you have built a libc that libgcc.so could
be linked with.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-03-21 14:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-21 9:11 xgcc build: -Dinhibit_libc appears not to work Sean Callanan
2001-03-21 14:36 ` Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).