Debian-host build error...
Ed Sutter
esutter at alcatel-lucent.com
Wed Jun 24 18:31:33 UTC 2009
Daron & all,
Yep, that was a typo. The PATH is correct; however, I hadnt' actually
tried the cross-compiler out manually, and there is an issue...
Forget about successful cross-compilation, there are shared libs it
can't find...
els:bfin-rtems4.10-gcc --help
bfin-rtems4.10-gcc: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.4' not found
(required by bfin-rtems4.10-gcc)
A little googling seems to indicate that this is a strange issue with Debian
because it happens with other tools. Haven't figured out how to get around it
though.
Ed
Daron Chabot wrote:
> Hi Ed,
>
> Have not used alien to convert rpms to debs, but:
>
> Have you verified that your cross-compiler works ? You should get an
> "a.out" file from cross-compiling this:
> int foo(void) { return 0; }
>
> Also, I noticed you specified "export PATH=/opt/rtems-4.9/bin:$PATH"...
> i assume the "rtems-4.9" was simply a typo, and your path actually
> points to the correct tool versions...
>
>
> -- dc
>
> On Wed, Jun 24, 2009 at 12:46 PM, Ed Sutter <esutter at alcatel-lucent.com
> <mailto:esutter at alcatel-lucent.com>> wrote:
>
> Ian,
> Thanks, here's more info...
>
> I'm following the steps from the "Quick Start" wiki page.
> First I got the prebuilt tools from:
> http://www.rtems.org/ftp/pub/rtems/linux/4.10/fedora/10/i386/
> I followed the Debian-specific instructions at:
> http://www.rtems.com/wiki/index.php/RTEMS_Prebuilt_Tools
> which talk about the "alien" tool and the conversion from .rpm to .deb.
> All that appears to work just fine.
>
>
> Then, referring to the "Example Application Compiling" page
> I execute these steps...
> cvs -d :pserver:anoncvs at www.rtems.com:/usr1/CVS login
> cvs -d :pserver:anoncvs at www.rtems.com:/usr1/CVS -z 9 co -P rtems
> cd rtems
> export PATH=/opt/rtems-4.9/bin:$PATH
> ./bootstrap
> cd ..
> mkdir bf537Stamp
> cd bf537Stamp
> ../rtems/configure --target=bfin-rtems4.10
> --enable-rtemsbsp=bf537Stamp \
> --enable-tests=samples --disable-posix --disable-itron
> make all
>
>
> The error occurs in the "make all" step. It apparently runs yet another
> configure down below, and that's the point where it chokes. Attached
> is the output of the "make all", as well as the config.log file that the
> error in the make output is referring to.
> Thanks for any help you can offer! I'm bracing myself for being told
> I'm doing something really stupid. :-(
> Ed
>
> Ian Caddy wrote:
>
> Hi Ed,
>
> I am not really sure, but do you have any more details?
>
> Such as when the error occurred, I assume during configure?
>
> If so, did you look at the config.log output to see if it gave
> any clues as to why it failed the check for being able to build
> executables?
>
> regards,
>
> Ian Caddy
>
>
> Ed Sutter wrote:
>
> Folks,
> Didn't get any responses on this, so I figured I'd try again...
>
> When I reported this error, I was using pre-built tools from:
> http://www.rtems.org/ftp/pub/rtems/linux/4.9/redhat/el5/i386/
> then the other day I started over using:
>
> The exact same error occurred, so I'm still clueless.
> Even the "remotest" of suggestions at this point would not
> be in vain
> (yea, I'm begging) :-( otherwise, I suppose I have to hunt
> down a different
> Linux box (non-debian) to isolate this problem.
>
> Thanks,
> Ed
>
> Ed Sutter wrote:
>
> Folks,
> I'm walking through the quick-start procedure for
> building the
> BF537Stamp BSP. My development host is Debian, and I've
> gotten
> to the point (on the quick-start page) where it mentions
> the error:
>
> * If you experience a "C compiler cannot create
> executables" error,
> * try fixing your compiler by getting libc-dev
>
> I ran apt-get install libc-dev and got the following
> message:
>
> * root:apt-get install libc-dev
> * Reading package lists... Done
> * Building dependency tree... Done
> * Note, selecting libc6-dev instead of libc-dev
> * libc6-dev is already the newest version.
> * 0 upgraded, 0 newly installed, 0 to remove and 1 not
> upgraded.
>
> Anyone working with a Debian host that has had (and
> overcame) this
> problem?
> Thanks
> Ed
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org <mailto:rtems-users at rtems.org>
> http://www.rtems.org/mailman/listinfo/rtems-users
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org <mailto:rtems-users at rtems.org>
> http://www.rtems.org/mailman/listinfo/rtems-users
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com <http://www.avg.com> Version:
> 8.5.375 / Virus Database: 270.12.90/2198 - Release Date:
> 06/23/09 17:54:00
>
>
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by rtems-c configure 4.9.99.0, which was
> generated by GNU Autoconf 2.63. Invocation command line was
>
> $ ../../../rtems/c/configure --prefix=/opt/rtems-4.10
> --host=bfin-rtems4.10 --build=i686-pc-linux-gnu
> --target=bfin-rtems4.10 --enable-rtemsbsp=bf537Stamp
> --enable-tests=samples --disable-posix --disable-itron
> --with-target-subdir=bfin-rtems4.10
> --exec-prefix=/opt/rtems-4.10/bfin-rtems4.10
> --includedir=/opt/rtems-4.10/bfin-rtems4.10/include
> --cache-file=/dev/null --srcdir=../../../rtems/c
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = xpcelslinux1
> uname -m = i686
> uname -r = 2.6.18-6-486
> uname -s = Linux
> uname -v = #1 Mon May 4 23:59:22 UTC 2009
>
> /usr/bin/uname -p = unknown
> /bin/uname -X = unknown
>
> /bin/arch = i686
> /usr/bin/arch -k = unknown
> /usr/convex/getsysinfo = unknown
> /usr/bin/hostinfo = unknown
> /bin/machine = unknown
> /usr/bin/oslevel = unknown
> /bin/universe = unknown
>
> PATH: /home/els/bin
> PATH: /usr/local/bin
> PATH: /usr/bin
> PATH: /bin
> PATH: /usr/games
> PATH: /home/els/bin
> PATH: /sbin
> PATH: /opt/uClinux/bfin-elf/bin
> PATH: /opt/uClinux/bfin-uclinux/bin
> PATH: /opt/uClinux/bfin-linux-uclibc/bin
> PATH: /opt/arm-2007q3/bin
> PATH: /opt/rtems-4.10/bin
>
>
> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
>
> configure:1821: checking for gmake
> configure:1851: result: no
> configure:1821: checking for make
> configure:1837: found /usr/bin/make
> configure:1848: result: make
> configure:1873: checking for RTEMS Version
> configure:1875: result: 4.9.99.0
> configure:1885: checking build system type
> configure:1903: result: i686-pc-linux-gnu
> configure:1925: checking host system type
> configure:1940: result: bfin-unknown-rtems4.10
> configure:1963: checking target system type
> configure:1978: result: bfin-unknown-rtems4.10
> configure:2006: checking rtems target cpu
> configure:2029: result: bfin
> configure:2049: checking for a BSD-compatible install
> configure:2117: result: /usr/bin/install -c
> configure:2128: checking whether build environment is sane
> configure:2171: result: yes
> configure:2196: checking for a thread-safe mkdir -p
> configure:2235: result: /bin/mkdir -p
> configure:2248: checking for gawk
> configure:2278: result: no
> configure:2248: checking for mawk
> configure:2264: found /usr/bin/mawk
> configure:2275: result: mawk
> configure:2286: checking whether make sets $(MAKE)
> configure:2308: result: yes
> configure:2379: checking for bfin-rtems4.10-strip
> configure:2395: found /opt/rtems-4.10/bin/bfin-rtems4.10-strip
> configure:2406: result: bfin-rtems4.10-strip
> configure:2483: checking whether to enable maintainer-specific
> portions of Makefiles
> configure:2492: result: no
> configure:2593: checking for bf537Stamp.cfg
> configure:2607: result: ../../../rtems/c/../make/custom/bf537Stamp.cfg
> configure:2899: creating ./config.status
>
> ## ---------------------- ##
> ## Running config.status. ##
> ## ---------------------- ##
>
> This file was extended by rtems-c config.status 4.9.99.0, which was
> generated by GNU Autoconf 2.63. Invocation command line was
>
> CONFIG_FILES =
> CONFIG_HEADERS =
> CONFIG_LINKS =
> CONFIG_COMMANDS =
> $ ./config.status
>
> on xpcelslinux1
>
> config.status:690: creating Makefile
>
> ## ---------------- ##
> ## Cache variables. ##
> ## ---------------- ##
>
> ac_cv_build=i686-pc-linux-gnu
> 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=bfin-rtems4.10
> ac_cv_env_target_alias_set=set
> ac_cv_env_target_alias_value=bfin-rtems4.10
> ac_cv_host=bfin-unknown-rtems4.10
> ac_cv_path_install='/usr/bin/install -c'
> ac_cv_path_mkdir=/bin/mkdir
> ac_cv_prog_AWK=mawk
> ac_cv_prog_MAKE=make
> ac_cv_prog_STRIP=bfin-rtems4.10-strip
> ac_cv_prog_make_make_set=yes
> ac_cv_target=bfin-unknown-rtems4.10
>
> ## ----------------- ##
> ## Output variables. ##
> ## ----------------- ##
>
> ACLOCAL='${SHELL} /home/els/rtems/rtems/missing --run aclocal-1.10'
> AMTAR='${SHELL} /home/els/rtems/rtems/missing --run tar'
> AUTOCONF='${SHELL} /home/els/rtems/rtems/missing --run autoconf'
> AUTOHEADER='${SHELL} /home/els/rtems/rtems/missing --run autoheader'
> AUTOMAKE='${SHELL} /home/els/rtems/rtems/missing --run automake-1.10'
> AWK='mawk'
> CYGPATH_W='echo'
> DEFS='-DPACKAGE_NAME=\"rtems-c\" -DPACKAGE_TARNAME=\"rtems-c\"
> -DPACKAGE_VERSION=\"4.9.99.0\" -DPACKAGE_STRING=\"rtems-c\
> 4.9.99.0\" -DPACKAGE_BUGREPORT=\"http://www.rtems.org/bugzilla\"'
> ECHO_C=''
> ECHO_N='-n'
> ECHO_T=''
> INSTALL_DATA='${INSTALL} -m 644'
> INSTALL_PROGRAM='${INSTALL}'
> INSTALL_SCRIPT='${INSTALL}'
> INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
> LIBOBJS=''
> LIBS=''
> LTLIBOBJS=''
> MAINT='#'
> MAINTAINER_MODE_FALSE=''
> MAINTAINER_MODE_TRUE='#'
> MAKE='make'
> MAKEINFO='${SHELL} /home/els/rtems/rtems/missing --run makeinfo'
> MKDIR_P='/bin/mkdir -p'
> PACKAGE='rtems-c'
> PACKAGE_BUGREPORT='http://www.rtems.org/bugzilla'
> PACKAGE_NAME='rtems-c'
> PACKAGE_STRING='rtems-c 4.9.99.0'
> PACKAGE_TARNAME='rtems-c'
> PACKAGE_VERSION='4.9.99.0'
> PATH_SEPARATOR=':'
> PROJECT_ROOT='../$(top_builddir)'
> PROJECT_TOPdir='../../$(top_builddir)'
> RTEMS_BSP_LIST=' bf537Stamp'
> RTEMS_CPU='bfin'
> RTEMS_TOPdir='..'
> SET_MAKE=''
> SHELL='/bin/sh'
> STRIP='bfin-rtems4.10-strip'
> VERSION='4.9.99.0'
> am__isrc=' -I$(srcdir)'
> am__leading_dot='.'
> 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='${datarootdir}'
> datarootdir='${prefix}/share'
> docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
> dvidir='${docdir}'
> exec_prefix='/opt/rtems-4.10/bfin-rtems4.10'
> host='bfin-unknown-rtems4.10'
> host_alias='bfin-rtems4.10'
> host_cpu='bfin'
> host_os='rtems4.10'
> host_vendor='unknown'
> htmldir='${docdir}'
> includedir='/opt/rtems-4.10/bfin-rtems4.10/include'
> infodir='${datarootdir}/info'
> install_sh='$(SHELL) /home/els/rtems/rtems/install-sh'
> libdir='${exec_prefix}/lib'
> libexecdir='${exec_prefix}/libexec'
> localedir='${datarootdir}/locale'
> localstatedir='${prefix}/var'
> mandir='${datarootdir}/man'
> mkdir_p='/bin/mkdir -p'
> oldincludedir='/usr/include'
> pdfdir='${docdir}'
> prefix='/opt/rtems-4.10'
> program_transform_name='s&^&bfin-rtems4.10-&'
> psdir='${docdir}'
> rtems_bsp_configure='../../../../rtems/c/src/configure
> '\''--prefix=/opt/rtems-4.10'\'' '\''--host=bfin-rtems4.10'\''
> '\''--build=i686-pc-linux-gnu'\'' '\''--target=bfin-rtems4.10'\''
> '\''--enable-tests=samples'\'' '\''--disable-posix'\''
> '\''--disable-itron'\'' '\''--with-target-subdir=bfin-rtems4.10'\''
> '\''--exec-prefix=/opt/rtems-4.10/bfin-rtems4.10'\''
> '\''--includedir=/opt/rtems-4.10/bfin-rtems4.10/include'\''
> '\''build_alias=i686-pc-linux-gnu'\''
> '\''host_alias=bfin-rtems4.10'\''
> '\''target_alias=bfin-rtems4.10'\''
> '\''--with-project-root=../../'\'' '\''--with-project-top=../../'\'''
> sbindir='${exec_prefix}/sbin'
> sharedstatedir='${prefix}/com'
> sysconfdir='${prefix}/etc'
> target='bfin-unknown-rtems4.10'
> target_alias='bfin-rtems4.10'
> target_cpu='bfin'
> target_os='rtems4.10'
> target_vendor='unknown'
>
> ## ----------- ##
> ## confdefs.h. ##
> ## ----------- ##
>
> #define PACKAGE_NAME "rtems-c"
> #define PACKAGE_TARNAME "rtems-c"
> #define PACKAGE_VERSION "4.9.99.0"
> #define PACKAGE_STRING "rtems-c 4.9.99.0"
> #define PACKAGE_BUGREPORT "http://www.rtems.org/bugzilla"
>
> configure: exit 0
>
> Making all in make
> make[1]: Entering directory `/home/els/rtems/bf537Stamp/make'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/els/rtems/bf537Stamp/make'
> Making all in tools/build
> make[1]: Entering directory `/home/els/rtems/bf537Stamp/tools/build'
> make all-am
> make[2]: Entering directory `/home/els/rtems/bf537Stamp/tools/build'
> gcc -DHAVE_CONFIG_H -I. -I../../../rtems/tools/build -g -O2 -MT
> cklength.o -MD -MP -MF .deps/cklength.Tpo -c -o cklength.o
> ../../../rtems/tools/build/cklength.c
> mv -f .deps/cklength.Tpo .deps/cklength.Po
> gcc -g -O2 -o cklength cklength.o
> gcc -DHAVE_CONFIG_H -I. -I../../../rtems/tools/build -g -O2 -MT
> eolstrip.o -MD -MP -MF .deps/eolstrip.Tpo -c -o eolstrip.o
> ../../../rtems/tools/build/eolstrip.c
> mv -f .deps/eolstrip.Tpo .deps/eolstrip.Po
> gcc -g -O2 -o eolstrip eolstrip.o
> gcc -DHAVE_CONFIG_H -I. -I../../../rtems/tools/build -g -O2 -MT
> packhex.o -MD -MP -MF .deps/packhex.Tpo -c -o packhex.o
> ../../../rtems/tools/build/packhex.c
> mv -f .deps/packhex.Tpo .deps/packhex.Po
> gcc -g -O2 -o packhex packhex.o
> gcc -DHAVE_CONFIG_H -I. -I../../../rtems/tools/build -g -O2 -MT
> unhex.o -MD -MP -MF .deps/unhex.Tpo -c -o unhex.o
> ../../../rtems/tools/build/unhex.c
> mv -f .deps/unhex.Tpo .deps/unhex.Po
> gcc -g -O2 -o unhex unhex.o
> gcc -DHAVE_CONFIG_H -I. -I../../../rtems/tools/build -g -O2 -MT
> rtems-bin2c.o -MD -MP -MF .deps/rtems-bin2c.Tpo -c -o rtems-bin2c.o
> ../../../rtems/tools/build/rtems-bin2c.c
> mv -f .deps/rtems-bin2c.Tpo .deps/rtems-bin2c.Po
> gcc -g -O2 -o rtems-bin2c rtems-bin2c.o
> gcc -DHAVE_CONFIG_H -I. -I../../../rtems/tools/build -g -O2 -MT
> binpatch.o -MD -MP -MF .deps/binpatch.Tpo -c -o binpatch.o
> ../../../rtems/tools/build/binpatch.c
> mv -f .deps/binpatch.Tpo .deps/binpatch.Po
> gcc -g -O2 -o binpatch binpatch.o
> make[2]: Leaving directory `/home/els/rtems/bf537Stamp/tools/build'
> make[1]: Leaving directory `/home/els/rtems/bf537Stamp/tools/build'
> Making all in tools/cpu
> make[1]: Entering directory `/home/els/rtems/bf537Stamp/tools/cpu'
> Making all in generic
> make[2]: Entering directory
> `/home/els/rtems/bf537Stamp/tools/cpu/generic'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory
> `/home/els/rtems/bf537Stamp/tools/cpu/generic'
> make[2]: Entering directory `/home/els/rtems/bf537Stamp/tools/cpu'
> make[2]: Nothing to be done for `all-am'.
> make[2]: Leaving directory `/home/els/rtems/bf537Stamp/tools/cpu'
> make[1]: Leaving directory `/home/els/rtems/bf537Stamp/tools/cpu'
> Making all in testsuites/tools
> make[1]: Entering directory
> `/home/els/rtems/bf537Stamp/testsuites/tools'
> Making all in generic
> make[2]: Entering directory
> `/home/els/rtems/bf537Stamp/testsuites/tools/generic'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory
> `/home/els/rtems/bf537Stamp/testsuites/tools/generic'
> make[2]: Entering directory
> `/home/els/rtems/bf537Stamp/testsuites/tools'
> make[2]: Nothing to be done for `all-am'.
> make[2]: Leaving directory `/home/els/rtems/bf537Stamp/testsuites/tools'
> make[1]: Leaving directory `/home/els/rtems/bf537Stamp/testsuites/tools'
> Making all in bfin-rtems4.10/c
> make[1]: Entering directory
> `/home/els/rtems/bf537Stamp/bfin-rtems4.10/c'
> Making all in .
> make[2]: Entering directory
> `/home/els/rtems/bf537Stamp/bfin-rtems4.10/c'
> Configuring RTEMS_BSP=bf537Stamp
> checking for gmake... no
> checking for make... make
> checking build system type... i686-pc-linux-gnu
> checking host system type... bfin-unknown-rtems4.10
> checking rtems target cpu... bfin
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... no
> checking for mawk... mawk
> checking whether make sets $(MAKE)... yes
> checking for bfin-rtems4.10-strip... bfin-rtems4.10-strip
> checking whether to enable maintainer-specific portions of
> Makefiles... no
> checking for RTEMS_BSP... bf537Stamp
> checking for
> ../../../../rtems/c/src/../../bspkit/bfin/*/cfg/bf537Stamp.cfg... no
> checking for
> ../../../../rtems/c/src/../../make/custom/bf537Stamp.cfg... yes
> checking whether BSP supports networking... yes
> checking whether CPU supports libposix... disabled
> configure: setting up make/custom
> checking for
> ../../../../rtems/c/src/../../bspkit/bfin/*/cfg/bf537Stamp.cfg... no
> checking for
> ../../../../rtems/c/src/../../make/custom/bf537Stamp.cfg... yes
> configure: creating make/bf537Stamp.cache
> make[3]: Entering directory
> `/home/els/rtems/bf537Stamp/bfin-rtems4.10/c/bf537Stamp'
> make[3]: Leaving directory
> `/home/els/rtems/bf537Stamp/bfin-rtems4.10/c/bf537Stamp'
> checking for RTEMS_CPU_MODEL... bf537
> checking for RTEMS_BSP_FAMILY... (cached) bf537Stamp
> checking for CPU_CFLAGS... (cached)
> checking for CFLAGS_OPTIMIZE_V... (cached) -O2 -g
> checking for style of include used by make... GNU
> checking for bfin-rtems4.10-gcc... bfin-rtems4.10-gcc
> checking for bfin-rtems4.10-gcc... (cached) bfin-rtems4.10-gcc
> checking for C compiler default output file name...
> configure: error: in
> `/home/els/rtems/bf537Stamp/bfin-rtems4.10/c/bf537Stamp':
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
> make[2]: *** [bf537Stamp] Error 1
> make[2]: Leaving directory `/home/els/rtems/bf537Stamp/bfin-rtems4.10/c'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/els/rtems/bf537Stamp/bfin-rtems4.10/c'
> make: *** [all-recursive] Error 1
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org <mailto:rtems-users at rtems.org>
> http://www.rtems.org/mailman/listinfo/rtems-users
>
>
More information about the users
mailing list