public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: sc843@bard.edu
To: gcc-gnats@gcc.gnu.org
Subject: target/2314: -Dinhibit_libc doesn't work for gcc cross-compiler
Date: Sun, 18 Mar 2001 14:36:00 -0000	[thread overview]
Message-ID: <20010318222610.23982.qmail@sourceware.cygnus.com> (raw)

>Number:         2314
>Category:       target
>Synopsis:       -Dinhibit_libc doesn't work for gcc cross-compiler
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 18 14:36:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     sc843@bard.edu
>Release:        3.1 (20010317)
>Organization:
>Environment:
SuSE Linux 7.0/sparc, Sun Ultra 5, TI UltraSparc IIi
>Description:
Error messages complaining about lack of a compatible libc when linking libgcc with sparc64-ld.

... 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 
>How-To-Repeat:
Set environment variables

BUILD="sparc-linux"
HOST="sparc-linux"
PREFIX="/usr/local"
TARGET="sparc64-linux"

Configure and install binutils

> ../binutils/configure --build=$BUILD --host=$HOST --target=$TARGET --prefix=$PREFIX -v 
> make
> make install

Configure and make gcc

> ../gcc/configure --build=$BUILD --host=$HOST --target=$TARGET --prefix=$PREFIX -v 
> make cross LANGUAGES=c
  (or)
> make cross
  (or)
> make LANGUAGES=c
  (or)
> make
  (or)
> make all


>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2001-03-18 14:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-18 14:36 sc843 [this message]
2002-03-29  0:34 rth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010318222610.23982.qmail@sourceware.cygnus.com \
    --to=sc843@bard.edu \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).