LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GNU ToolChain for ARM, Linux 2.6.14-2/binutil-2.16/gcc 4.0.2/glibc-2.3.5 (https://www.linuxquestions.org/questions/linux-software-2/gnu-toolchain-for-arm-linux-2-6-14-2-binutil-2-16-gcc-4-0-2-glibc-2-3-5-a-615440/)

kumar_bst 01-22-2008 04:59 AM

GNU ToolChain for ARM, Linux 2.6.14-2/binutil-2.16/gcc 4.0.2/glibc-2.3.5
 
Hi,

I am trying to compile toolchain for Linux 2.6.14-2 for ARM 7/9.
I am using the followings,
linux kernel 2.6.14-2
binutils-2.16
gcc-4.0.2
glibc-2.3.5
glibc-linuxthread-2.3.5

My present system is RedHat 9, kernel 2.4.20-8, gcc 3.2.2

I was able to compile binutils. But I am getting problem with gcc and glibc

I modified the gcc-4.0.2/gcc/config/arm/t-linux file.
The modified t-linux file is as follows,

TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fPIC -Dinhibit_libc -D__gthr_posix_h
LIBGCC2_DEBUG_CFLAGS = -g0

LIB1ASMSRC = arm/lib1funcs.asm
LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx

EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o

LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib

$(T)crti.o: $(srcdir)/config/arm/crti.asm $(GCC_PASSES)
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
-c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/arm/crti.asm

$(T)crtn.o: $(srcdir)/config/arm/crtn.asm $(GCC_PASSES)
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
-c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/arm/crtn.asm

# Disable libc link

SHLIB_LC =



I used the following for generating Makefile

../../gcc-4.0.2/configure --target=$TARGET --prefix=$PREFIX --disable-threads --enable-lnguages=c

I am getting the following error in make command,
[after few min ]
checking if /usrA/src/build/gcc-4.0.2/gcc/xgcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/opt/armv4/arm-linux/bin/ld) supports shared libraries...
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking command to parse /opt/armv4/arm-linux/bin/nm output... failed
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
appending configuration tag "CXX" to libtool
checking for exception model to use... sjlj
checking for enabled PCH... yes
checking for compiler with PCH support... no
checking for underlying I/O to use... stdio
checking how to run the C preprocessor... /usrA/src/build/gcc-4.0.2/gcc/xgcc -B/usrA/src/build/gcc-4.0.2/gcc/ -B/opt/armv4/arm-linux/bin/ -B/opt/armv4/arm-linux/lib/ -isystem /opt/armv4/arm-linux/include -isystem /opt/armv4/arm-linux/sys-include -E
checking for egrep... grep -E
ecking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for C locale to use... generic
checking for std::allocator base class to use... new
configure: "C" header strategy set to c_std
checking for ISO C99 support in <math.h>... no
checking complex.h usability... no
checking complex.h presence... no
checking for complex.h... no
no
checking for ISO C99 support in <stdio.h>... no
checking for lldiv_t declaration... no
checking for ISO C99 support in <stdlib.h>... no
checking for additional ISO C99 support in <wchar.h>... no
checking for enabled ISO C99 support... no
checking for thread model used by GCC... single
configure: Debug build flags set to -g3 -O0
checking for additional debug build... no
checking for extra compiler flags for building...
configure: WARNING: No native atomic operations are provided for this platform.
configure: WARNING: They cannot be faked when thread support is disabled.
configure: WARNING: Thread-safety of certain classes is not guaranteed.
checking nan.h usability... no
checking nan.h presence... no
checking for nan.h... no
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking endian.h usability... no
checking endian.h presence... no
checking for endian.h... no
checking sys/isa_defs.h usability... no
checking sys/isa_defs.h presence... no
checking for sys/isa_defs.h... no
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking machine/param.h usability... no
checking machine/param.h presence... no
checking for machine/param.h... no
checking sys/machine.h usability... no
checking sys/machine.h presence... no
checking for sys/machine.h... no
checking for sys/types.h... (cached) no
checking fp.h usability... no
checking fp.h presence... no
checking for fp.h... no
checking float.h usability... no
checking float.h presence... yes
configure: WARNING: float.h: present but cannot be compiled
configure: WARNING: float.h: check for missing prerequisite headers?
configure: WARNING: float.h: see the Autoconf documentation
configure: WARNING: float.h: section "Present But Cannot Be Compiled"
configure: WARNING: float.h: proceeding with the preprocessor's result
configure: WARNING: float.h: in the future, the compiler will take precedence
configure: WARNING: ## ----------------------------------------- ##
configure: WARNING: ## Report this to the package-unused lists. ##
configure: WARNING: ## ----------------------------------------- ##
checking for float.h... yes
checking for endian.h... (cached) no
checking for inttypes.h... (cached) no
checking locale.h usability... no
checking locale.h presence... no
checking for locale.h... no
checking for float.h... (cached) yes
checking for stdint.h... (cached) no
checking for main in -lm... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make: *** [configure-target-libstdc++-v3] Error 1

I need your help.

Thanking you.

Sincerely,

Amit

PS - I followed the instructions in the below mentioned link

http://linux.omap.com/pipermail/linu...er/005665.html


All times are GMT -5. The time now is 08:25 PM.