Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: Jean-Claude Gervais <jc.gervais@...>
Subject: Re: C compiler cannot create executables
Date: Tue, 06 Nov 2007 12:26:57 -0500
Same problem, different environment:

I produced a cross-development toolkit by using the following command:

.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
SYSROOT="/usr/arm-softfloat-linux-uclibc"

UCLIBC_CPU="ARM920T" USE="-*" crossdev -v -S --binutils 2.17 --gcc
3.4.6-r2 --kernel 2.6.19-r2 --libc 0.9.28.3 --ex-gdb --target
arm-softfloat-linux-uclibc
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-

This went well; all the required tools were built.

But now when I try to use the (modified) xmerge script, I get the
"C compiler cannot create executables" error

Here is my modified xmerge script:
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
#!/bin/bash
SYSROOT="/usr/arm-softfloat-linux-uclibc"
export SYSROOT
CBUILD=$(portageq envvar CHOST)
PORTAGE_CONFIGROOT="$SYSROOT"
if [[ "$1" == "--root" ]] ; then
    ROOT="$2"
    shift 2
else
    ROOT="$SYSROOT"
fi
export CBUILD PORTAGE_CONFIGROOT ROOT

emerge $*
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-

My questions are these;

Should I have other variables set beforehand? Could that explain the
problem?

Why does the compiler seem to work when invoked to retrieve its version
but not to actually compile?

Thanks.



PS - Here's 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 configure, which was
generated by GNU Autoconf 2.52.20061216.  Invocation command line was

  $ /var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/configure
--prefix=/usr --host=i686-softfloat-linux-uclibc --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --libdir=/lib
--with-terminfo-dirs=/etc/terminfo:/usr/share/terminfo --disable-termcap
--with-shared --with-rcs-ids --enable-symlinks --enable-const
--with-chtype=long --with-mmask-t=long --with-manpage-format=normal
--without-debug --without-gpm --without-trace --build=i686-pc-linux-gnu

## ---------- ##
## Platform.  ##
## ---------- ##

hostname = jeancg-wks1
uname -m = i686
uname -r = 2.6.22-gentoo-r5
uname -s = Linux
uname -v = #14 SMP Mon Oct 29 17:04:28 EDT 2007

/usr/bin/uname -p = Intel(R) Pentium(R) 4 CPU 2.40GHz
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = i686
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH = /sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:

## ------------ ##
## Core tests.  ##
## ------------ ##

configure:1080: PATH=".;."; conftest.sh
/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/configure:
line 1081: conftest.sh: command not found
configure:1083: $? = 127
configure:1096: checking for egrep
configure:1106: result: grep -E
configure:1120: result: Configuring NCURSES 5.6 ABI 5 (Tue Nov  6
12:17:54 EST 2007)
configure:1225: checking build system type
configure:1243: result: i686-pc-linux-gnu
configure:1250: checking host system type
configure:1264: result: i686-softfloat-linux-uclibc
configure:1272: checking target system type
configure:1286: result: i686-softfloat-linux-uclibc
configure:1317: result: Configuring for linux-uclibc
configure:1341: checking for prefix
configure:1353: result: /usr
configure:1394: checking for i686-softfloat-linux-uclibc-gcc
configure:1420: result: no
configure:1429: checking for gcc
configure:1444: found /usr/bin/gcc
configure:1452: result: gcc
configure:1680: checking for C compiler version
configure:1683: gcc --version </dev/null >&5
gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.0.1)
Copyright (C) 2006 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:1686: $? = 0
configure:1688: gcc -v </dev/null >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured
with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g
++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu
--disable-altivec --enable-nls --without-included-gettext
--with-system-zlib --disable-checking --disable-werror
--enable-secureplt --disable-libunwind-exceptions --disable-multilib
--enable-libmudflap --disable-libssp --disable-libgcj --with-arch=i686
--enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2 p1.0.1)
configure:1691: $? = 0
configure:1693: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:1696: $? = 1
configure:1716: checking for C compiler default output
configure:1719: gcc -Os -pipe -mfloat-abi=softfp -mfpu=vfp   conftest.c
>&5
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
cc1: error: unrecognized command line option "-mfpu=vfp"
configure:1722: $? = 1
configure: failed program was:
#line 1700 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
configure:1745: error: C compiler cannot create executables

## ----------------- ##
## Cache variables.  ##
## ----------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-Os -pipe -mfloat-abi=softfp -mfpu=vfp'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-Os -pipe -mfloat-abi=softfp -mfpu=vfp'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
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=i686-softfloat-linux-uclibc
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-softfloat-linux-uclibc
ac_cv_host_alias=i686-softfloat-linux-uclibc
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_egrep='grep -E'
ac_cv_target=i686-softfloat-linux-uclibc
ac_cv_target_alias=i686-softfloat-linux-uclibc
cf_cv_abi_version=5
cf_cv_rel_version=5.6
cf_cv_system_name=linux-uclibc
cf_cv_timestamp='Tue Nov  6 12:17:54 EST 2007'

## ------------ ##
## confdefs.h.  ##
## ------------ ##

#define SYSTEM_NAME "linux-uclibc"


configure: exit 77


-- 
gentoo-embedded@g.o mailing list


Replies:
Re: C compiler cannot create executables
-- Jason
References:
C compiler cannot create executables
-- Jean-Claude Gervais
Re: C compiler cannot create executables
-- Peter Stuge
Re: C compiler cannot create executables
-- Ned Ludd
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: C compiler cannot create executables
Next by thread:
Re: C compiler cannot create executables
Previous by date:
Re: C compiler cannot create executables
Next by date:
Re: C compiler cannot create executables


Updated Jun 17, 2009

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.