This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

glibc-2.12.1 solaris2.10 cross-compile for x86_64. gnu/lib-names.h:No such file or directory


Hi, I'm trying to build a cross toolchain for x86_64-pc-linux-gnu
hosted on sparc-sun-solaris2.10. I have managed to build the cross gcc
without libc.

Trying to build glibc yields errors when linking it all together :(

I'm configuring it with
...
CTARGET:=x86_64-pc-linux-gnu
CBUILD:=$(shell gcc -dumpmachine)
CHOST:=$(CBUILD)
...
KERNELVER:=2.6.33
...
BUILD_CC=gcc CC="$(CTARGET)-gcc -m64" AR="$(CTARGET)-ar"
RANLIB="$(CTARGET)-ranlib" \
$(SRCDIR)/$(GLIBC)/configure --target=$(CTARGET) --build=$(CBUILD)
--host=$(CTARGET) --prefix=$(PREFIX) --with-headers=$(PREFIX)/include
--disable-profile --enable-addons --with-tls
--enable-kernel=$(KERNELVER) --with-binutils=$(PREFIX)/bin
--with-__thread --disable-shared libc_cv_forced_unwind=yes
libc_cv_c_cleanup=yes

config.log in glibc root here: http://pastebin.com/wgVgdTm9

The rest of how the toolchain commands can be found in my Makefile:
http://pastebin.com/ZkmryDb3

I get the following error as a result:
make  subdir=libidn -C libidn ..=../ subdir_lib
make[3]: Entering directory `/tmp/axl-cross/src/glibc-2.12.1/libidn'
.././scripts/mkinstalldirs /tmp/axl-cross/build/glibc-2.12.1/libidn
mkdir /tmp/axl-cross/build/glibc-2.12.1/libidn
x86_64-pc-linux-gnu-gcc -m64 idn-stub.c -c -std=gnu99 -fgnu89-inline
-O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g
-Wstrict-prototypes      -I../include
-I/tmp/axl-cross/build/glibc-2.12.1/libidn
-I/tmp/axl-cross/build/glibc-2.12.1 -I../sysdeps/x86_64/elf
-I../nptl/sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/wordsize-64
-I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread
-I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/x86_64/fpu
-I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64
-I../sysdeps/x86_64 -I../sysdeps/wordsize-64
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic
-I../nptl  -I.. -I../libio -I. -nostdinc -isystem
/tmp/axl-cross/prefix/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include
-isystem /tmp/axl-cross/prefix/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include-fixed
-isystem /tmp/axl-cross/prefix/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h       -o
/tmp/axl-cross/build/glibc-2.12.1/libidn/idn-stub.o -MD -MP -MF
/tmp/axl-cross/build/glibc-2.12.1/libidn/idn-stub.o.dt -MT
/tmp/axl-cross/build/glibc-2.12.1/libidn/idn-stub.o
idn-stub.c:26:27: error: gnu/lib-names.h: No such file or directory
idn-stub.c: In function 'load_dso':
idn-stub.c:51: error: 'LIBCIDN_SO' undeclared (first use in this function)
idn-stub.c:51: error: (Each undeclared identifier is reported only once
idn-stub.c:51: error: for each function it appears in.)


How do I fix this?


- Thomas Axelsson


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]