Problems building toolchain
Hi
I am trying to build just the toolchain, using svn revision 20210. following the instruction from here:
http://www.uclibc.org/toolchains.html
# Point your web browser here <http://buildroot.uclibc.org/>,
# Download of copy of buildroot
# Unpack the tarball on your Linux system somewhere # Edit the Makefile as needed if you wish to change anything.
# run 'unset CC'. Then run 'unset CXX'. Some Linux systems (i.e. Gentoo) set variables such as 'CC' in the system environment which really messes things up when cross compiling. # run 'make menuconfig' # Select the things you want to build. If you /only/ want a toolchain, leave everything except the toolchain disabled. # save your buildroot configuration. # run 'make'
and I end up with this error msg. every time I try to build it.
make[1]: Leaving directory `/home/cz2/Crossdev/buildroot/toolchain_build_arm/gcc-4.2.1-initial' touch /home/cz2/Crossdev/buildroot/toolchain_build_arm/gcc-4.2.1-initial/.installed /usr/bin/make MAKE="/usr/bin/make -j1" -C
/home/cz2/Crossdev/buildroot/toolchain_build_arm/uClibc \
PREFIX= \
DEVEL_PREFIX=/ \
RUNTIME_PREFIX=/ \
HOSTCC="/usr/lib/distcc/bin/gcc" \
allmake[1]: Entering directory /home/cz2/Crossdev/buildroot/toolchain_build_arm/uClibc' make[2]: conf' is up to date.
CC ldso/ldso/ldso.oS
cc1: error: unrecognized command line option "-mfdpic"
make[1]: *** [ldso/ldso/ldso.oS] Error 1
make[1]: Leaving directory `/home/cz2/Crossdev/buildroot/toolchain_build_arm/uClibc'
make: *** [/home/cz2/Crossdev/buildroot/toolchain_build_arm/uClibc/lib/libc.a] Error 2
How do I get passed this point ?
Thanks, Kim S.
Quoted 1 line · Kim Str?ger
How do I get passed this point ?
What did you specify as your target CPU and other settings? If in doubt attach your toplevel .config, please.
Also please do
$ make V=1 and show me the arguments used for the command that fails.
Quoted 6 lines · Bernhard Fischer
Quoted 2 lines · Kim Str?ger
How do I get passed this point ?
Quoted 7 lines
What did you specify as your target CPU and other settings? If in doubt attach your toplevel .config, please.
Also please do
$ make V=1 and show me the arguments used for the command that fails.
The .config
BR2_HAVE_DOT_CONFIG=y
BR2_VERSION="0.10.0-svn"
# BR2_alpha is not set
BR2_arm=y
# BR2_armeb is not set
# BR2_avr32 is not set
# BR2_cris is not set
# BR2_ia64 is not set
# BR2_i386 is not set
# BR2_m68k is not set
# BR2_mips is not set
# BR2_mipsel is not set
# BR2_nios2 is not set
# BR2_powerpc is not set
# BR2_s390 is not set
# BR2_sh is not set
# BR2_sh64 is not set
# BR2_sparc is not set
# BR2_sparc64 is not set
# BR2_x86_64 is not set
# BR2_generic_arm is not set
BR2_arm7tdmi=y
# BR2_arm610 is not set
# BR2_arm710 is not set
# BR2_arm720t is not set
# BR2_arm920t is not set
# BR2_arm922t is not set
# BR2_arm926t is not set
# BR2_arm10t is not set
# BR2_arm1136jf_s is not set
# BR2_arm1176jz_s is not set
# BR2_arm1176jzf_s is not set
# BR2_sa110 is not set
# BR2_sa1100 is not set
# BR2_xscale is not set
# BR2_iwmmxt is not set
BR2_ARM_TYPE="ARM7TDMI"
BR2_ARM_OABI=y
# BR2_ARM_EABI is not set
BR2_ARCH="arm"
BR2_ENDIAN="LITTLE"
BR2_GCC_TARGET_TUNE="arm7tdmi"
$make V=1
Checking build system dependencies:
BUILDROOT_DL_DIR clean: Ok CC clean: Ok CXX clean: Ok CPP clean: Ok CFLAGS clean: Ok INCLUDES clean: Ok CXXFLAGS clean: Ok which installed: Ok sed works: Ok (/bin/sed)
GNU make version '3.81': Ok
C compiler '/usr/lib/distcc/bin/gcc'
C compiler version '4.1.2': Ok
C++ compiler '/usr/lib/distcc/bin/g++'
C++ compiler version '4.1.2': Ok bison installed: Ok flex installed: Ok gettext installed: Ok makeinfo installed: Ok Build system dependencies: Ok
and it is when I do the make that I get the error.
Quoted 5 lines · Kim Str?ger
Quoted 4 lines · Bernhard Fischer
Quoted 2 lines · Kim Str?ger
How do I get passed this point ?
Quoted 8 lines
Quoted 6 lines
What did you specify as your target CPU and other settings? If in doubt attach your toplevel .config, please.
Also please do
$ make V=1 and show me the arguments used for the command that fails.BR2_arm7tdmi=y
Sounds like this is coming from uClibc.