I have been searching through the archive and I can't find the answer to my question. I currently have a scratchbox system setup. I am able to compile code and copy it over to my ARM embedded system and the code runs. I am now trying to build a package system for the embedded system and one of the first packages I need to create is Glibc. The version that my scratchbox uses is 2.3.2 so I am putting that on my embedded system for the moment. I have downloaded the debian sources, as I have read that most people do. The GCC Compiler version on my scratchbox is 4.0.1, so In addition to installing the Debian v11 patches for Glibc-2.3.2, I also install the patch to allow gcc4 to compile glibc 2.3.2. I've pasted the output from the configure and the make.
CFLAGS="-g -O2" \ > ../glibc-2.3.2/configure --prefix=/usr \ > --enable-add-ons=linuxthreads \ > --without-cvs \ > --with-headers=/home/developer/SBC_Dist/linux/kernel- 2.6.19-ts.at91sam9260ek.1/include checking build system type... arm-unknown-linux-gnu checking host system type... arm-unknown-linux-gnu checking sysdep dirs... sysdeps/arm/elf linuxthreads/sysdeps/unix/sysv/linux/arm linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread sysdeps/pthread linuxthreads/sysdeps/unix/sysv linuxthreads/sysdeps/unix linuxthreads/sysdeps/arm sysdeps/unix/sysv/linux/arm sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/arm sysdeps/unix sysdeps/posix sysdeps/arm/fpu sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic checking for a BSD-compatible install... /scratchbox/tools/bin/install -c checking whether ln -s works... yes checking for gcc... gcc checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether /scratchbox/compilers/arm-linux-ct401-2.3/bin/../lib/gcc/arm-unknown-linux-gnu/4.0.1/../../../../arm-unknown-linux-gnu/bin/as is GNU as... yes checking whether /scratchbox/compilers/arm- linux-ct401-2.3/bin/../lib/gcc/arm-unknown-linux-gnu/4.0.1/../../../../arm-unknown-linux-gnu/bin/ld is GNU ld... yes checking for /scratchbox/compilers/arm-linux-ct401-2.3/bin/../lib/gcc/arm-unknown-linux-gnu/4.0.1/../../../../arm-unknown-linux-gnu/bin/as... /scratchbox/compilers/arm- linux-ct401-2.3 /bin/../lib/gcc/arm-unknown-linux-gnu/4.0.1/../../../../arm-unknown-linux-gnu/bin/as checking version of /scratchbox/compilers/arm-linux-ct401-2.3/bin/../lib/gcc/arm-unknown-linux-gnu/4.0.1/../../../../arm-unknown-linux-gnu/bin/as... 2.16.1, ok checking for /scratchbox/compilers/arm-linux-ct401-2.3/bin/../lib/gcc/arm-unknown-linux-gnu/4.0.1/../../../../arm-unknown-linux-gnu/bin/ld... /scratchbox/compilers/arm-linux-ct401-2.3/bin/../lib/gcc/arm-unknown-linux-gnu/4.0.1/../../../../arm-unknown-linux-gnu/bin/ld checking version of /scratchbox/compilers/arm-linux-ct401-2.3/bin/../lib/gcc/arm-unknown-linux-gnu/4.0.1/../../../../arm-unknown-linux-gnu/bin/ld... 2.16.1, ok checking for pwd... /scratchbox/tools/bin/pwd checking for gcc... gcc checking version of gcc... 4.0.1, ok checking for gnumake... no checking for gmake... no checking for make... make checking version of make... 3.80, ok checking for gnumsgfmt... no checking for gmsgfmt... no checking for msgfmt... msgfmt checking version of msgfmt... 0.14.1, ok checking for makeinfo... no checking for sed... sed checking version of sed... 4.1.2, ok checking for autoconf... autoconf checking whether autoconf works... yes configure: WARNING: *** These auxiliary programs are missing or incompatible versions: makeinfo *** some features will be disabled. *** Check the INSTALL file for required versions. checking whether ranlib is necessary... no checking LD_LIBRARY_PATH variable... ok checking whether GCC supports -static-libgcc... -static-libgcc checking for bash... /scratchbox/tools/bin/sh checking for gawk... gawk checking for perl... /scratchbox/tools/bin/perl checking for install-info... no checking for bison... /scratchbox/tools/bin/bison checking for signed size_t type... no checking for libc-friendly stddef.h... yes checking whether we need to use -P to assemble .S files... no checking whether .text pseudo-op must be used... yes checking for assembler global-symbol directive... .globl checking for .set assembler directive... yes checking for assembler .type directive prefix... % checking for .symver assembler directive... yes checking for ld --version-script... yes checking for .previous assembler directive... yes checking for .protected and .hidden assembler directive... yes checking whether __attribute__((visibility())) is supported... yes checking for broken __attribute__((visibility()))... no checking for broken __attribute__((alias()))... no checking whether to put _rtld_local into .sdata section... no checking for .preinit_array/.init_array/.fini_array support... yes checking for -z nodelete option... yes checking for -z nodlopen option... yes checking for -z initfirst option... yes checking for -Bgroup option... yes checking whether --noexecstack is desirable for .S files... no checking for -z combreloc... yes checking whether cc puts quotes around section names... no checking for assembler .weak directive... yes checking whether CFI directives are supported... no checking if -g produces usable source locations for assembler-with-cpp... yes checking for ld --no-whole-archive... yes checking for gcc -fexceptions... yes checking for DWARF2 unwind info support... no_registry_needed checking for __builtin_expect... yes checking for __builtin_memset... no checking for redirection of built-in functions... yes checking for local label subtraction... yes checking for __thread... no checking for libgd... no checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h.. . yes checking for stdint.h... yes checking for unistd.h... yes checking for long double... yes checking size of long double... 8 running configure fragment for sysdeps/pthread running configure fragment for sysdeps/unix/sysv/linux checking for egrep... (cached) grep -E checking installed Linux kernel header files... 2.0.10 or later checking for symlinks in /usr/include... ok running configure fragment for sysdeps/unix/common running configure fragment for sysdeps/unix running configure fragment for sysdeps/generic checking for old glibc 2.0.x headers... no checking whether -fPIC is default... no configure: creating ./config.status config.status: creating config.make config.status: creating glibcbug config.status: creating Makefile config.status: creating config.h config.status: executing default commands configure: configuring in linuxthreads configure: running /bin/sh '../../glibc- 2.3.2/linuxthreads/configure' --prefix=/usr '--prefix=/usr' '--enable-add-ons=linuxthreads' '--without-cvs' '--with-headers=/home/developer/SBC_Dist/linux/kernel- 2.6.19-ts.at91sam9260ek.1/include' 'CFLAGS=-g -O2' --cache-file=/dev/null --srcdir=../../glibc- 2.3.2/linuxthreads I'll just skip to the error in make. [sbox-SBC_TOOLKIT_ARM: ~/glibc/glibc-2.3.2/build] > make ... gcc ../sysdeps/generic/initfini.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -g0 -fPIC -fno-inline-functions -I../include -I. -I/home/developer/glibc/glibc- 2.3.2/build/csu -I.. -I../libio -I/home/developer/glibc/glibc-2.3.2/build -I../sysdeps/arm/elf -I../linuxthreads/sysdeps/unix/sysv/linux/arm -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/arm -I../sysdeps/unix/sysv/linux/arm -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm/fpu -I../sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /scratchbox/compilers/arm- linux-ct401-2.3/bin/../lib/gcc/arm-unknown-linux-gnu/4.0.1/include -isystem /home/developer/SBC_Dist/linux/kernel-2.6.19-ts.at91sam9260ek.1/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -S -g0 -fPIC -fno-inline-functions -finhibit-size-directive \ -fno-exceptions -o /home/developer/glibc/glibc-2.3.2 /build/csu/initfini.s sed -n -e '1,/@HEADER_ENDS/p' \ -e '/@_.*_PROLOG_BEGINS/,/@_.*_PROLOG_ENDS/p' \ -e '/@TRAILER_BEGINS/,$p' /home/developer/glibc/glibc- 2.3.2/build/csu/initfini.s > /home/developer/glibc/glibc-2.3.2/build/csu/crti.S sed -n -e '/@TESTS_BEGIN/,/@TESTS_END/p' /home/developer/glibc/glibc-2.3.2/build/csu/initfini.s | \ gawk -f defs.awk > /home/developer/glibc/glibc- 2.3.2/build/csu/defs.h gcc /home/developer/glibc/glibc-2.3.2/build/csu/crti.S -c -I../include -I. -I/home/developer/glibc/glibc-2.3.2/build/csu -I.. -I../libio -I/home/developer/glibc/glibc-2.3.2/build -I../sysdeps/arm/elf -I../linuxthreads/sysdeps/unix/sysv/linux/arm -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/arm -I../sysdeps/unix/sysv/linux/arm -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm/fpu -I../sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /scratchbox/compilers/arm- linux-ct401-2.3/bin/../lib/gcc/arm-unknown-linux-gnu/4.0.1/include -isystem /home/developer/SBC_Dist/linux/kernel-2.6.19-ts.at91sam9260ek.1/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -DASSEMBLER -I/home/developer/glibc/glibc- 2.3.2/build/csu/. -g -g0 -o /home/developer/glibc/glibc-2.3.2/build/csu/crti.o /home/developer/glibc/glibc-2.3.2/build/csu/crti.S: Assembler messages: /home/developer/glibc/glibc-2.3.2/build/csu/crti.S:96: Error: can't resolve `_GLOBAL_OFFSET_TABLE_' {*UND* section} - `.L10' {.text section} /home/developer/glibc/glibc-2.3.2/build/csu/crti.S:61: Error: internal_relocation (type: OFFSET_IMM) not fixed up /home/developer/glibc/glibc-2.3.2/build/csu/crti.S:62: Error: internal_relocation (type: OFFSET_IMM) not fixed up /home/developer/glibc/glibc-2.3.2/build/csu/crti.S:63: Error: internal_relocation (type: OFFSET_IMM) not fixed up /home/developer/glibc/glibc-2.3.2/build/csu/crti.S:64: Error: internal_relocation (type: OFFSET_IMM) not fixed up make[2]: *** [/home/developer/glibc/glibc-2.3.2/build/csu/crti.o] Error 1 make[2]: Leaving directory `/home/developer/glibc/glibc-2.3.2/glibc-2.3.2 /csu' make[1]: *** [csu/subdir_lib] Error 2 make[1]: Leaving directory `/home/developer/glibc/glibc- 2.3.2/glibc-2.3.2' make: *** [all] Error 2 [sbox-SBC_TOOLKIT_ARM: ~/glibc/glibc-2.3.2/build] > Just want to make sure that the reader is clear, I am trying to build glibc to install on the embedded system, all ARM binaries that will exist on the system. These are not being built to work along with the cross compiler. -- ------------------------------------------------------------------ Jeff Parent Computer Engineer
_______________________________________________ Scratchbox-users mailing list Scratchbox-users@lists.scratchbox.org http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users