Jivin Ramón Flores Acedo lays it down ...
> Thanks David,
> 
> I see the output of the usr/init linker:

Which toolchain is this ?  I noticed you have an arm-linux
toolchain doing elf2flt stuff.  If you are using the snapgear
toolcain then you need to disable XIP (edit config.arch),  the
arm-linux toolchain cannot do XIP as it has not been fulled multilibed.
Once you have disabled it you need to do a full clean and rebuild,

Cheers,
Davidm

> make[3]: se ingresa al directorio `/media/work/ADSL2+/uClinux/user/init'
> ucfront-gcc arm-linux-gcc  -O2 -g -fomit-frame-pointer -pipe
> -msoft-float -fno-common -fno-builtin -Wall   -DEMBED -D__PIC__ -fpic
> -msingle-pic-base -Dlinux -D__linux__ -Dunix -D__uClinux__
> -DCONSOLE_BAUD_RATE=9600   -c -o simpleinit.o simpleinit.c
> ucfront-gcc arm-linux-gcc  -Wl,--fatal-warnings -Wl,-elf2flt -msoft-float
> -D__PIC__ -fpic -msingle-pic-base -Wl,--fatal-warnings -Wl,-elf2flt
> -msoft-float -D__PIC__ -fpic -msingle-pic-base -o init simpleinit.o -lcrypt
> cp init simpleinit ucfront-gcc arm-linux-gcc  -O2 -g -fomit-frame-pointer
> -pipe
> -msoft-float -fno-common -fno-builtin -Wall   -DEMBED -D__PIC__ -fpic
> -msingle-pic-base -Dlinux -D__linux__ -Dunix -D__uClinux__
> -DCONSOLE_BAUD_RATE=9600   -c -o expand.o expand.c
> ucfront-gcc arm-linux-gcc  -Wl,--fatal-warnings -Wl,-elf2flt -msoft-float
> -D__PIC__ -fpic -msingle-pic-base -Wl,--fatal-warnings -Wl,-elf2flt
> -msoft-float -D__PIC__ -fpic -msingle-pic-base -o expand expand.o
> make[3]: se sale del directorio `/media/work/ADSL2+/uClinux/user/init'
> [ ! -d "login" ] || ( touch login/.sgbuilt_user && make -j1 -C login )
> || exit $?
> 
> But I don't view differences with the quagga linker output. Sorry I don't
> understand correctly the makefiles and configurations files and I don't know
> the files that I need configured correctly.
> 
> Thanks,
> 
> Saludos, Ramón 
> 
> 
> -----Mensaje original-----
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> En nombre de David McCullough
> Enviado el: jueves, 15 de noviembre de 2007 12:25
> Para: uClinux development list
> Asunto: Re: [uClinux-dev] RV: Compiler error in Quagga
> 
> 
> Jivin Ramón Flores Acedo lays it down ...
> > 
> > Hi all,
> > 
> > Sorry, the last message have in HTML format, the following is in plain
> text.
> > 
> > I'm trying to compile an bulid Quagga under uClinux-dist 20070130, kernel
> > 2.4.32-uc0 in an armnommu architecture. But i have some errors:
> 
> Ok,  it appears that your compiler options are different in the normal
> application build versus the configure build.
> 
> Check how another app is linked (ie., user/init).
> 
> and then compare the compiler flags used there with:
> 
>       ucfront-gcc arm-linux-gcc  -O2 -g -fomit-frame-pointer
>       -pipe -msoft-float -fno-common -fno-builtin -Wall   -DEMBED
> -D__PIC__
>       -fpic -msingle-pic-base -Dlinux -D__linux__ -Dunix -D__uClinux__ 
>       -Wl,--fatal-warnings -Wl,-elf2flt -msoft-float -D__PIC__ -fpic
>       -msingle-pic-base -Wl,--fatal-warnings -Wl,-elf2flt -msoft-float
> -D__PIC__
>       -fpic -msingle-pic-base conftest.c  >&5
> 
> particularly and cpu specific options and so on,
> 
> Cheers,
> Davidm
> 
> 
> > mkdir build
> > (cd build; sh ../configure --host=arm-linux --build=i686-pc-linux-gnu
> > --target=arm-linux  --prefix= --sbindir=/bin --program-transform-name=
> > --disable-shared --sysconfdir=/etc)
> > checking build system type... i686-pc-linux-gnu
> > checking host system type... arm-unknown-linux-gnu
> > checking target system type... arm-unknown-linux-gnu
> > checking for a BSD-compatible install... /usr/bin/install -c
> > checking whether build environment is sane... yes
> > checking for gawk... gawk
> > checking whether make sets $(MAKE)... yes
> > checking for arm-linux-strip... arm-linux-strip
> > checking for arm-linux-gcc... ucfront-gcc arm-linux-gcc
> > checking for C compiler default output file name... configure: error: C
> > compiler cannot create executables
> > See `config.log' for more details.
> > make[3]: *** [build/build] Error 77
> > make[3]: se sale del directorio `/media/work/ADSL2+/uClinux/user/quagga'
> > make[2]: *** [quagga] Error 2
> > make[2]: se sale del directorio `/media/work/ADSL2+/uClinux/user'
> > make[1]: *** [all] Error 2
> > make[1]: se sale del directorio `/media/work/ADSL2+/uClinux/user'
> > make: *** [subdirs] Error 1
> > 
> > And the config.log:
> > This file contains any messages produced by compilers while
> > running configure, to aid debugging if configure makes a mistake.
> > 
> > It was created by Quagga configure 0.98.5, which was
> > generated by GNU Autoconf 2.59.  Invocation command line was
> > 
> >   $ ../configure --host=arm-linux --build=i686-pc-linux-gnu
> > --target=arm-linux --prefix= --sbindir=/bin --program-transform-name=
> > --disable-shared --sysconfdir=/etc
> > 
> > ## --------- ##
> > ## Platform. ##
> > ## --------- ##
> > 
> > hostname = localhost.localdomain
> > uname -m = i686
> > uname -r = 2.6.18-1.2798.fc6
> > uname -s = Linux
> > uname -v = #1 SMP Mon Oct 16 14:54:20 EDT 2006
> > 
> > /usr/bin/uname -p = unknown
> > /bin/uname -X     = unknown
> > 
> > /bin/arch              = i686
> > /usr/bin/arch -k       = unknown
> > /usr/convex/getsysinfo = unknown
> > hostinfo               = unknown
> > /bin/machine           = unknown
> > /usr/bin/oslevel       = unknown
> > /bin/universe          = unknown
> > 
> > PATH: /usr/kerberos/sbin
> > PATH: /usr/kerberos/bin
> > PATH: /usr/local/sbin
> > PATH: /usr/sbin
> > PATH: /sbin
> > PATH: /usr/local/bin
> > PATH: /bin
> > PATH: /usr/bin
> > PATH: /home/rflores/bin
> > PATH: /media/work/ADSL2+/uClinux/tools
> > 
> > 
> > ## ----------- ##
> > ## Core tests. ##
> > ## ----------- ##
> > 
> > configure:1551: checking build system type
> > configure:1569: result: i686-pc-linux-gnu
> > configure:1577: checking host system type
> > configure:1591: result: arm-unknown-linux-gnu
> > configure:1599: checking target system type
> > configure:1613: result: arm-unknown-linux-gnu
> > configure:1642: checking for a BSD-compatible install
> > configure:1697: result: /usr/bin/install -c
> > configure:1708: checking whether build environment is sane
> > configure:1751: result: yes
> > configure:1816: checking for gawk
> > configure:1832: found /bin/gawk
> > configure:1842: result: gawk
> > configure:1852: checking whether make sets $(MAKE)
> > configure:1872: result: yes
> > configure:1948: checking for arm-linux-strip
> > configure:1974: result: arm-linux-strip
> > configure:2081: checking for arm-linux-gcc
> > configure:2107: result: ucfront-gcc arm-linux-gcc
> > configure:2389: checking for C compiler version
> > configure:2392: ucfront-gcc arm-linux-gcc  --version </dev/null >&5
> > arm-linux-gcc (GCC) 3.4.4
> > Copyright (C) 2004 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions.  There is NO
> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> > 
> > configure:2395: $? = 0
> > configure:2397: ucfront-gcc arm-linux-gcc  -v </dev/null >&5
> > Reading specs from /usr/local/lib/gcc/arm-linux/3.4.4/specs
> > Configured with: ../configure --target=arm-linux --disable-shared
> > --prefix=/usr/local
> > --with-headers=/home/gerg/new-wave.ixdp425/linux-2.4.x/include
> > --with-gnu-as --with-gnu-ld --enable-multilib
> > Thread model: posix
> > gcc version 3.4.4
> > configure:2400: $? = 0
> > configure:2402: ucfront-gcc arm-linux-gcc  -V </dev/null >&5
> > arm-linux-gcc: `-V' option must have argument
> > configure:2405: $? = 1
> > configure:2428: checking for C compiler default output file name
> > configure:2431: ucfront-gcc arm-linux-gcc  -O2 -g -fomit-frame-pointer
> > -pipe -msoft-float -fno-common -fno-builtin -Wall   -DEMBED -D__PIC__
> > -fpic -msingle-pic-base -Dlinux -D__linux__ -Dunix -D__uClinux__ 
> > -Wl,--fatal-warnings -Wl,-elf2flt -msoft-float -D__PIC__ -fpic
> > -msingle-pic-base -Wl,--fatal-warnings -Wl,-elf2flt -msoft-float -D__PIC__
> > -fpic -msingle-pic-base conftest.c  >&5
> > /media/work/ADSL2+/uClinux/uClibc/lib/libc.a(__uClibc_main.o): In function
> > `__uClibc_init':
> > __uClibc_main.c:(.text+0x5c): warning: internal error: unsupported
> > relocation error
> > __uClibc_main.c:(.text+0x60): warning: internal error: unsupported
> > relocation error
> > __uClibc_main.c:(.text+0x64): warning: internal error: unsupported
> > relocation error
> > __uClibc_main.c:(.text+0x68): warning: internal error: unsupported
> > relocation error
> > /media/work/ADSL2+/uClinux/uClibc/lib/libc.a(__uClibc_main.o): In function
> > `__uClibc_start_main':
> > __uClibc_main.c:(.text+0x114): warning: internal error: unsupported
> > relocation error
> > __uClibc_main.c:(.text+0x118): warning: internal error: unsupported
> > relocation error
> > __uClibc_main.c:(.text+0x11c): warning: internal error: unsupported
> > relocation error
> > __uClibc_main.c:(.text+0x120): warning: internal error: unsupported
> > relocation error
> > __uClibc_main.c:(.text+0x124): warning: internal error: unsupported
> > relocation error
> > /media/work/ADSL2+/uClinux/uClibc/lib/libc.a(exit.o): In function `exit':
> > atexit.c:(.text+0x80): warning: internal error: unsupported relocation
> error
> > atexit.c:(.text+0x84): warning: internal error: unsupported relocation
> error
> > atexit.c:(.text+0x88): warning: internal error: unsupported relocation
> error
> > atexit.c:(.text+0x8c): warning: internal error: unsupported relocation
> error
> > /media/work/ADSL2+/uClinux/uClibc/lib/libc.a(abort.o): In function
> `abort':
> > abort.c:(.text+0x128): warning: internal error: unsupported relocation
> error
> > abort.c:(.text+0x12c): warning: internal error: unsupported relocation
> error
> > /media/work/ADSL2+/uClinux/uClibc/lib/libc.a(__errno_location.o): In
> > function `__errno_location':
> > __errno_location.c:(.text+0xc): warning: internal error: unsupported
> > relocation error
> > /media/work/ADSL2+/uClinux/uClibc/lib/libc.a(sigaction.o): In function
> > `__libc_sigaction':
> > sigaction.c:(.text+0xe0): warning: internal error: unsupported relocation
> > error
> > sigaction.c:(.text+0xe4): warning: internal error: unsupported relocation
> > error
> > collect2: ld returned 1 exit status
> > configure:2434: $? = 1
> > configure: failed program was:
> > | /* confdefs.h.  */
> > |
> > | #define PACKAGE_NAME "Quagga"
> > | #define PACKAGE_TARNAME "quagga"
> > | #define PACKAGE_VERSION "0.98.5"
> > | #define PACKAGE_STRING "Quagga 0.98.5"
> > | #define PACKAGE_BUGREPORT "http://bugzilla.quagga.net";
> > | #define PACKAGE "quagga"
> > | #define VERSION "0.98.5"
> > | /* end confdefs.h.  */
> > |
> > | int
> > | main ()
> > | {
> > |
> > |   ;
> > |   return 0;
> > | }
> > configure:2473: error: C compiler cannot create executables
> > See `config.log' for more details.
> > 
> > ## ---------------- ##
> > ## Cache variables. ##
> > ## ---------------- ##
> > 
> > ac_cv_build=i686-pc-linux-gnu
> > ac_cv_build_alias=i686-pc-linux-gnu
> > ac_cv_env_CC_set=set
> > ac_cv_env_CC_value='ucfront-gcc arm-linux-gcc '
> > ac_cv_env_CFLAGS_set=set
> > ac_cv_env_CFLAGS_value='-O2 -g -fomit-frame-pointer -pipe -msoft-float
> > -fno-common -fno-builtin -Wall   -DEMBED -D__PIC__ -fpic -msingle-pic-base
> > -Dlinux -D__linux__ -Dunix -D__uClinux__'
> > ac_cv_env_CPPFLAGS_set=
> > ac_cv_env_CPPFLAGS_value=
> > ac_cv_env_CPP_set=
> > ac_cv_env_CPP_value=
> > ac_cv_env_LDFLAGS_set=set
> > ac_cv_env_LDFLAGS_value='-Wl,--fatal-warnings -Wl,-elf2flt -msoft-float
> > -D__PIC__ -fpic -msingle-pic-base -Wl,--fatal-warnings -Wl,-elf2flt
> > -msoft-float -D__PIC__ -fpic -msingle-pic-base'
> > ac_cv_env_build_alias_set=set
> > ac_cv_env_build_alias_value=i686-pc-linux-gnu
> > ac_cv_env_host_alias_set=set
> > ac_cv_env_host_alias_value=arm-linux
> > ac_cv_env_target_alias_set=set
> > ac_cv_env_target_alias_value=arm-linux
> > ac_cv_host=arm-unknown-linux-gnu
> > ac_cv_host_alias=arm-linux
> > ac_cv_path_install='/usr/bin/install -c'
> > ac_cv_prog_AWK=gawk
> > ac_cv_prog_CC='ucfront-gcc arm-linux-gcc '
> > ac_cv_prog_STRIP=arm-linux-strip
> > ac_cv_prog_make_make_set=yes
> > ac_cv_target=arm-unknown-linux-gnu
> > ac_cv_target_alias=arm-linux
> > 
> > ## ----------------- ##
> > ## Output variables. ##
> > ## ----------------- ##
> > 
> > ACLOCAL='${SHELL} /media/work/ADSL2+/uClinux/user/quagga/missing --run
> > aclocal-1.9'
> > AMDEPBACKSLASH=''
> > AMDEP_FALSE=''
> > AMDEP_TRUE=''
> > AMTAR='${SHELL} /media/work/ADSL2+/uClinux/user/quagga/missing --run tar'
> > AR='arm-linux-ar'
> > AUTOCONF='${SHELL} /media/work/ADSL2+/uClinux/user/quagga/missing --run
> > autoconf'
> > AUTOHEADER='${SHELL} /media/work/ADSL2+/uClinux/user/quagga/missing --run
> > autoheader'
> > AUTOMAKE='${SHELL} /media/work/ADSL2+/uClinux/user/quagga/missing --run
> > automake-1.9'
> > AWK='gawk'
> > BGPD=''
> > CC='ucfront-gcc arm-linux-gcc '
> > CCDEPMODE=''
> > CFLAGS='-O2 -g -fomit-frame-pointer -pipe -msoft-float -fno-common
> > -fno-builtin -Wall   -DEMBED -D__PIC__ -fpic -msingle-pic-base -Dlinux
> > -D__linux__ -Dunix -D__uClinux__'
> > CONFDATE=''
> > CPP=''
> > CPPFLAGS=''
> > CURSES=''
> > CYGPATH_W='echo'
> > DEFS=''
> > DEPDIR=''
> > ECHO='echo'
> > ECHO_C=''
> > ECHO_N='-n'
> > ECHO_T=''
> > EGREP=''
> > EXEEXT=''
> > IF_METHOD=''
> > IF_PROC=''
> > INCLUDES=''
> > INSTALL_DATA='${INSTALL} -m 644'
> > INSTALL_PROGRAM='${INSTALL}'
> > INSTALL_SCRIPT='${INSTALL}'
> > INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
> > IOCTL_METHOD=''
> > IPFORWARD=''
> > ISISD=''
> > KERNEL_METHOD=''
> > LD='ucfront-ld arm-linux-ld'
> > LDFLAGS='-Wl,--fatal-warnings -Wl,-elf2flt -msoft-float -D__PIC__ -fpic
> > -msingle-pic-base -Wl,--fatal-warnings -Wl,-elf2flt -msoft-float -D__PIC__
> > -fpic -msingle-pic-base'
> > LIBCAP=''
> > LIBOBJS=''
> > LIBPAM=''
> > LIBS=''
> > LIBTOOL=''
> > LIB_IPV6=''
> > LIB_REGEX=''
> > LN_S=''
> > LTLIBOBJS=''
> > MAKEINFO='${SHELL} /media/work/ADSL2+/uClinux/user/quagga/missing --run
> > makeinfo'
> > MULTIPATH_NUM=''
> > NM=''
> > OBJEXT=''
> > OSPF6D=''
> > OSPFAPI=''
> > OSPFCLIENT=''
> > OSPFD=''
> > OTHER_METHOD=''
> > PACKAGE='quagga'
> > PACKAGE_BUGREPORT='http://bugzilla.quagga.net'
> > PACKAGE_NAME='Quagga'
> > PACKAGE_STRING='Quagga 0.98.5'
> > PACKAGE_TARNAME='quagga'
> > PACKAGE_VERSION='0.98.5'
> > PATH_SEPARATOR=':'
> > PERL=''
> > RANLIB='arm-linux-ranlib'
> > RIPD=''
> > RIPNGD=''
> > RTREAD_METHOD=''
> > RT_METHOD=''
> > SED=''
> > SET_MAKE=''
> > SHELL='/bin/sh'
> > STRIP='arm-linux-strip'
> > VERSION='0.98.5'
> > VTYSH=''
> > WATCHQUAGGA=''
> > ZEBRA=''
> > ac_ct_AR=''
> > ac_ct_CC=''
> > ac_ct_RANLIB=''
> > ac_ct_SED=''
> > ac_ct_STRIP=''
> > am__fastdepCC_FALSE=''
> > am__fastdepCC_TRUE=''
> > am__include=''
> > am__leading_dot='.'
> > am__quote=''
> > am__tar='${AMTAR} chof - "$$tardir"'
> > am__untar='${AMTAR} xf -'
> > bindir='${exec_prefix}/bin'
> > build='i686-pc-linux-gnu'
> > build_alias='i686-pc-linux-gnu'
> > build_cpu='i686'
> > build_os='linux-gnu'
> > build_vendor='pc'
> > datadir='${prefix}/share'
> > enable_group=''
> > enable_user=''
> > enable_vty_group=''
> > exampledir='/etc'
> > exec_prefix='NONE'
> > host='arm-unknown-linux-gnu'
> > host_alias='arm-linux'
> > host_cpu='arm'
> > host_os='linux-gnu'
> > host_vendor='unknown'
> > includedir='${prefix}/include'
> > infodir='${prefix}/info'
> > install_sh='/media/work/ADSL2+/uClinux/user/quagga/install-sh'
> > libdir='${exec_prefix}/lib'
> > libexecdir='${exec_prefix}/libexec'
> > localstatedir='${prefix}/var'
> > mandir='${prefix}/man'
> > mkdir_p='mkdir -p --'
> > oldincludedir='/usr/include'
> > pkgsrcdir=''
> > pkgsrcrcdir=''
> > prefix=''
> > program_transform_name=''
> > quagga_statedir=''
> > sbindir='/bin'
> > sharedstatedir='${prefix}/com'
> > sysconfdir='/etc'
> > target='arm-unknown-linux-gnu'
> > target_alias='arm-linux'
> > target_cpu='arm'
> > target_os='linux-gnu'
> > target_vendor='unknown'
> > 
> > ## ----------- ##
> > ## confdefs.h. ##
> > ## ----------- ##
> > 
> > #define PACKAGE "quagga"
> > #define PACKAGE_BUGREPORT "http://bugzilla.quagga.net";
> > #define PACKAGE_NAME "Quagga"
> > #define PACKAGE_STRING "Quagga 0.98.5"
> > #define PACKAGE_TARNAME "quagga"
> > #define PACKAGE_VERSION "0.98.5"
> > #define VERSION "0.98.5"
> > 
> > configure: exit 77
> > 
> > What's happens?
> > 
> > Thanks in advance,
> > 
> > Saludos, Ramón Flores
> > 
> > 
> > _______________________________________________
> > uClinux-dev mailing list
> > [email protected]
> > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> > This message was resent by [email protected]
> > To unsubscribe see:
> > http://mailman.uclinux.org/mailman/options/uclinux-dev
> > 
> 
> -- 
> David McCullough,  [EMAIL PROTECTED],   Ph:+61 734352815
> Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com
> _______________________________________________
> uClinux-dev mailing list
> [email protected]
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by [email protected]
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
> 
> _______________________________________________
> uClinux-dev mailing list
> [email protected]
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by [email protected]
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
> 

-- 
David McCullough,  [EMAIL PROTECTED],   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to