* [gentoo-embedded] C compiler cannot create executables
@ 2007-11-05 18:55 Jean-Claude Gervais
2007-11-05 22:41 ` Peter Stuge
0 siblings, 1 reply; 27+ messages in thread
From: Jean-Claude Gervais @ 2007-11-05 18:55 UTC (permalink / raw
To: Gentoo-Embedded
I installed Gentoo on an AMD Geode by chrooting its flashcard hard-disk
on a pentium4 machine.
After installing everything and booting the system, I have exported
the /usr/portage folder on my workstation so the Geode can continue to
emerge programs without being taken offline and chrooted.
But whatever program I try to emerge, the system gives the following
error.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
checking for i586-gentoo-linux-uclibc-gcc...
i586-gentoo-linux-uclibc-gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
config log:
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
/var/tmp/portage/sys-devel/distcc-2.18.3-r10/work/distcc-2.18.3/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 distcc configure 2.18.3, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --prefix=/usr --host=i586-gentoo-linux-uclibc
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --with-included-popt
--build=i586-gentoo-linux-uclibc
## --------- ##
## Platform. ##
## --------- ##
hostname = puma
uname -m = i586
uname -r = 2.6.22-gentoo-r8
uname -s = Linux
uname -v = #2 Mon Nov 5 16:26:05 UTC 2007
/usr/bin/uname -p = Geode(TM) Integrated Processor by National Semi
/bin/uname -X = unknown
/bin/arch = i586
/usr/bin/arch -k = i586
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/i586-gentoo-linux-uclibc/gcc-bin/4.1.2
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1358: checking build system type
configure:1376: result: i586-gentoo-linux-uclibc
configure:1384: checking host system type
configure:1398: result: i586-gentoo-linux-uclibc
configure:1443: checking for i586-gentoo-linux-uclibc-gcc
configure:1459: found /usr/bin/i586-gentoo-linux-uclibc-gcc
configure:1469: result: i586-gentoo-linux-uclibc-gcc
configure:1751: checking for C compiler version
configure:1754: i586-gentoo-linux-uclibc-gcc --version </dev/null >&5
i586-gentoo-linux-uclibc-gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.0.2)
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:1757: $? = 0
configure:1759: i586-gentoo-linux-uclibc-gcc -v </dev/null >&5
Using built-in specs.
Target: i586-gentoo-linux-uclibc
Configured
with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure
--prefix=/usr --bindir=/usr/i586-gentoo-linux-uclibc/gcc-bin/4.1.2
--includedir=/usr/lib/gcc/i586-gentoo-linux-uclibc/4.1.2/include
--datadir=/usr/share/gcc-data/i586-gentoo-linux-uclibc/4.1.2
--mandir=/usr/share/gcc-data/i586-gentoo-linux-uclibc/4.1.2/man
--infodir=/usr/share/gcc-data/i586-gentoo-linux-uclibc/4.1.2/info
--with-gxx-include-dir=/usr/lib/gcc/i586-gentoo-linux-uclibc/4.1.2/include/g++-v4 --host=i586-gentoo-linux-uclibc --build=i586-gentoo-linux-uclibc --disable-altivec --disable-nls --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --with-arch=i586 --enable-languages=c,c++ --enable-shared --enable-threads=posix --disable-__cxa_atexit --enable-target-optspace --enable-clocale=uclibc
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)
configure:1762: $? = 0
configure:1764: i586-gentoo-linux-uclibc-gcc -V </dev/null >&5
i586-gentoo-linux-uclibc-gcc: '-V' option must have argument
configure:1767: $? = 1
configure:1790: checking for C compiler default output file name
configure:1793: i586-gentoo-linux-uclibc-gcc -Os conftest.c >&5
i586-gentoo-linux-uclibc-gcc: Internal error: Segmentation fault
(program as)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
configure:1796: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "distcc"
| #define PACKAGE_TARNAME "distcc"
| #define PACKAGE_VERSION "2.18.3"
| #define PACKAGE_STRING "distcc 2.18.3"
| #define PACKAGE_BUGREPORT "distcc@lists.samba.org"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1835: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i586-gentoo-linux-uclibc
ac_cv_build_alias=i586-gentoo-linux-uclibc
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-Os
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=
ac_cv_env_LDFLAGS_value=
ac_cv_env_PYTHON_set=
ac_cv_env_PYTHON_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i586-gentoo-linux-uclibc
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i586-gentoo-linux-uclibc
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i586-gentoo-linux-uclibc
ac_cv_host_alias=i586-gentoo-linux-uclibc
ac_cv_prog_CC=i586-gentoo-linux-uclibc-gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
BUILD_POPT=''
CC='i586-gentoo-linux-uclibc-gcc'
CFLAGS='-Os'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GNOME_BIN=''
GNOME_CFLAGS=''
GNOME_LIBS=''
GNOME_PACKAGES=''
INSTALL_DATA=''
INSTALL_GNOME=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT='distcc@lists.samba.org'
PACKAGE_NAME='distcc'
PACKAGE_STRING='distcc 2.18.3'
PACKAGE_TARNAME='distcc'
PACKAGE_VERSION='2.18.3'
PATH_SEPARATOR=':'
PYTHON=''
SET_MAKE=''
SHELL='/bin/sh'
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build='i586-gentoo-linux-uclibc'
build_alias='i586-gentoo-linux-uclibc'
build_cpu='i586'
build_os='linux-uclibc'
build_vendor='gentoo'
datadir='/usr/share'
docdir='${datadir}/doc/distcc'
exec_prefix='NONE'
host='i586-gentoo-linux-uclibc'
host_alias='i586-gentoo-linux-uclibc'
host_cpu='i586'
host_os='linux-uclibc'
host_vendor='gentoo'
includedir='${prefix}/include'
infodir='/usr/share/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='/var/lib'
mandir='/usr/share/man'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT "distcc@lists.samba.org"
#define PACKAGE_NAME "distcc"
#define PACKAGE_STRING "distcc 2.18.3"
#define PACKAGE_TARNAME "distcc"
#define PACKAGE_VERSION "2.18.3"
configure: exit 77
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
emerge --info:
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Portage 2.1.3.9 (uclibc/x86/2005.1, gcc-4.1.2, uclibc-0.9.28.3-r0,
2.6.22-gentoo-r8 i586)
=================================================================
System uname: 2.6.22-gentoo-r8 i586 Geode(TM) Integrated Processor by
National Semi
Timestamp of tree: Thu, 25 Oct 2007 17:30:01 +0000
app-shells/bash: 3.2_p17
dev-lang/python: 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox: 1.2.18.1-r1
sys-devel/autoconf: 2.61-r1
sys-devel/automake: 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i586-gentoo-linux-uclibc"
CFLAGS="-Os"
CHOST="i586-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer nodoc noinfo
noman sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --delete-after --stats
--timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="alsa bitmap-fonts cli cracklib dri midi minimal mmx mudflap ncurses
openmp pcre readline reflection session spl truetype-fonts type1-fonts
uclibc x86 xorg zlib" ALSA_CARDS="cs5535audio" ALSA_PCM_PLUGINS="adpcm
alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug
ladspa lfloat linear meter mulaw multi null plug rate route share shm
softvol" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216
lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="chips"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
gcc-config -l:
[1] i586-gentoo-linux-uclibc-4.1.2 *
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
What did I do wrong / what is not set properly?
Thanks.
J
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-05 18:55 Jean-Claude Gervais
@ 2007-11-05 22:41 ` Peter Stuge
2007-11-05 23:50 ` Ned Ludd
2007-11-06 0:50 ` Mike Frysinger
0 siblings, 2 replies; 27+ messages in thread
From: Peter Stuge @ 2007-11-05 22:41 UTC (permalink / raw
To: Gentoo-Embedded
The error message in subject is fairly good.
On Mon, Nov 05, 2007 at 01:55:37PM -0500, Jean-Claude Gervais wrote:
> I installed Gentoo on an AMD Geode by chrooting its flashcard hard-disk
> on a pentium4 machine.
>
> After installing everything and booting the system, I have exported
> the /usr/portage folder on my workstation so the Geode can continue to
> emerge programs without being taken offline and chrooted.
..
> configure:1790: checking for C compiler default output file name
> configure:1793: i586-gentoo-linux-uclibc-gcc -Os conftest.c >&5
> i586-gentoo-linux-uclibc-gcc: Internal error: Segmentation fault
> (program as)
as crashes.
> CHOST="i586-gentoo-linux-uclibc"
Is this really right?
How was binutils built? Perhaps try a different version.
Try pc instead of gentoo?
Try gnu instead of uclibc?
//Peter
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-05 22:41 ` Peter Stuge
@ 2007-11-05 23:50 ` Ned Ludd
2007-11-06 17:26 ` Jean-Claude Gervais
2007-11-06 0:50 ` Mike Frysinger
1 sibling, 1 reply; 27+ messages in thread
From: Ned Ludd @ 2007-11-05 23:50 UTC (permalink / raw
To: gentoo-embedded
On Mon, 2007-11-05 at 23:41 +0100, Peter Stuge wrote:
> The error message in subject is fairly good.
>
>
> On Mon, Nov 05, 2007 at 01:55:37PM -0500, Jean-Claude Gervais wrote:
> > I installed Gentoo on an AMD Geode by chrooting its flashcard hard-disk
> > on a pentium4 machine.
> >
> > After installing everything and booting the system, I have exported
> > the /usr/portage folder on my workstation so the Geode can continue to
> > emerge programs without being taken offline and chrooted.
>
> ..
>
> > configure:1790: checking for C compiler default output file name
> > configure:1793: i586-gentoo-linux-uclibc-gcc -Os conftest.c >&5
> > i586-gentoo-linux-uclibc-gcc: Internal error: Segmentation fault
> > (program as)
>
> as crashes.
>
>
> > CHOST="i586-gentoo-linux-uclibc"
>
> Is this really right?
Nothing wrong with that.. It's a perfectly valid CHOST= combo on Gentoo.
> How was binutils built? Perhaps try a different version.
Good suggestion. binutils-2.18 may be the cause of the problem..
>
> Try pc instead of gentoo?
>
> Try gnu instead of uclibc?
These two would probably be a complete waste of his time/resources.
>
> //Peter
--
Ned Ludd <solar@gentoo.org>
Gentoo Linux
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-05 22:41 ` Peter Stuge
2007-11-05 23:50 ` Ned Ludd
@ 2007-11-06 0:50 ` Mike Frysinger
1 sibling, 0 replies; 27+ messages in thread
From: Mike Frysinger @ 2007-11-06 0:50 UTC (permalink / raw
To: gentoo-embedded; +Cc: Peter Stuge
[-- Attachment #1: Type: text/plain, Size: 192 bytes --]
On Monday 05 November 2007, Peter Stuge wrote:
> Try pc instead of gentoo?
ignoring "softfloat", the vendor field has 0 meaning. even "softfloat" is
specific to Gentoo ebuilds.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-05 23:50 ` Ned Ludd
@ 2007-11-06 17:26 ` Jean-Claude Gervais
2007-11-06 17:46 ` Jason
0 siblings, 1 reply; 27+ messages in thread
From: Jean-Claude Gervais @ 2007-11-06 17:26 UTC (permalink / raw
To: gentoo-embedded
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@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-06 17:26 ` Jean-Claude Gervais
@ 2007-11-06 17:46 ` Jason
2007-11-06 17:55 ` Jean-Claude Gervais
0 siblings, 1 reply; 27+ messages in thread
From: Jason @ 2007-11-06 17:46 UTC (permalink / raw
To: gentoo-embedded
Jean-Claude Gervais wrote:
> 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
[snip]
> 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
This doesn't look right. Did you setup ${SYSROOT}/etc/make.conf and
${SYSROOT}/etc/make.profile ?
hth,
Jason.
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-06 17:46 ` Jason
@ 2007-11-06 17:55 ` Jean-Claude Gervais
2007-11-06 17:59 ` Jean-Claude Gervais
2007-11-06 18:11 ` Jason
0 siblings, 2 replies; 27+ messages in thread
From: Jean-Claude Gervais @ 2007-11-06 17:55 UTC (permalink / raw
To: gentoo-embedded
On Tue, 2007-11-06 at 12:46 -0500, Jason wrote:
> Jean-Claude Gervais wrote:
> > 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
> [snip]
> > 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
>
> This doesn't look right. Did you setup ${SYSROOT}/etc/make.conf and
> ${SYSROOT}/etc/make.profile ?
I think I did; here is the contents of
/usr/arm-softfloat-linux-uclibc/etc/make.conf
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ACCEPT_KEYWORDS="arm"
ARCH="arm"
CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
CHOST="i686-softfloat-linux-uclibc"
CXXFLAGS="${CFLAGS}"
#GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo
http://prometheus.cs.wmich.edu/gentoo http://mirror.datapipe.net/gentoo
http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
INPUT_DEVICES="keyboard"
MAKEOPTS="-j2"
USE="minimal symlink"
UCLIBC_CPU="ARM920T"
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-06 17:55 ` Jean-Claude Gervais
@ 2007-11-06 17:59 ` Jean-Claude Gervais
2007-11-06 18:11 ` Jason
1 sibling, 0 replies; 27+ messages in thread
From: Jean-Claude Gervais @ 2007-11-06 17:59 UTC (permalink / raw
To: gentoo-embedded
On Tue, 2007-11-06 at 12:55 -0500, Jean-Claude Gervais wrote:
> > This doesn't look right. Did you setup ${SYSROOT}/etc/make.conf and
> > ${SYSROOT}/etc/make.profile ?
>
Whoops, forgot one; Here is the contents of
/usr/arm-softfloat-linux-uclibc/etc/make.profile
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
drwxr-xr-x 2 root root 120 Apr 1 2006 2.4
drwxr-xr-x 3 root root 160 Aug 18 2005 armeb
-rw-r--r-- 1 root root 109 Sep 19 2005 make.defaults
-rw-r--r-- 1 root root 3 Jul 23 2004 parent
-rw-r--r-- 1 root root 38 Feb 24 2006 virtuals
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-06 17:55 ` Jean-Claude Gervais
2007-11-06 17:59 ` Jean-Claude Gervais
@ 2007-11-06 18:11 ` Jason
2007-11-06 19:55 ` Jean-Claude Gervais
1 sibling, 1 reply; 27+ messages in thread
From: Jason @ 2007-11-06 18:11 UTC (permalink / raw
To: gentoo-embedded
Jean-Claude Gervais wrote:
> On Tue, 2007-11-06 at 12:46 -0500, Jason wrote:
>> Jean-Claude Gervais wrote:
>>> 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
>> [snip]
>>> 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
>> This doesn't look right. Did you setup ${SYSROOT}/etc/make.conf and
>> ${SYSROOT}/etc/make.profile ?
>
> I think I did; here is the contents of
> /usr/arm-softfloat-linux-uclibc/etc/make.conf
>
> .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> ACCEPT_KEYWORDS="arm"
> ARCH="arm"
>
> CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
> CHOST="i686-softfloat-linux-uclibc"
This line should be:
CHOST="arm-softfloat-linux-uclibc"
hth,
Jason.
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-06 18:11 ` Jason
@ 2007-11-06 19:55 ` Jean-Claude Gervais
2007-11-06 20:19 ` Jason
0 siblings, 1 reply; 27+ messages in thread
From: Jean-Claude Gervais @ 2007-11-06 19:55 UTC (permalink / raw
To: gentoo-embedded
On Tue, 2007-11-06 at 13:11 -0500, Jason wrote:
> Jean-Claude Gervais wrote:
> > On Tue, 2007-11-06 at 12:46 -0500, Jason wrote:
> >> Jean-Claude Gervais wrote:
> >>> 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
> >> [snip]
> >>> 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
> >> This doesn't look right. Did you setup ${SYSROOT}/etc/make.conf and
> >> ${SYSROOT}/etc/make.profile ?
> >
> > I think I did; here is the contents of
> > /usr/arm-softfloat-linux-uclibc/etc/make.conf
> >
> > .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> > ACCEPT_KEYWORDS="arm"
> > ARCH="arm"
> >
> > CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
> > CHOST="i686-softfloat-linux-uclibc"
>
> This line should be:
> CHOST="arm-softfloat-linux-uclibc"
OK, I changed that line, performed a
crossdev -C arm-softfloat-linux-uclibc
And then re-ran the toolchain build procedure I am using;
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
Which concluded with no errors.
However, when I run any xmerge, I still get the same error
"C compiler cannot create executables"
I have no idea what I am missing, surely something small, but I am
clueless.
Thanks.
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-06 19:55 ` Jean-Claude Gervais
@ 2007-11-06 20:19 ` Jason
2007-11-06 20:31 ` Jean-Claude Gervais
0 siblings, 1 reply; 27+ messages in thread
From: Jason @ 2007-11-06 20:19 UTC (permalink / raw
To: gentoo-embedded
Jean-Claude Gervais wrote:
> On Tue, 2007-11-06 at 13:11 -0500, Jason wrote:
>> Jean-Claude Gervais wrote:
>>> On Tue, 2007-11-06 at 12:46 -0500, Jason wrote:
>>>> Jean-Claude Gervais wrote:
>>>>> 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
>>>> [snip]
>>>>> 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
>>>> This doesn't look right. Did you setup ${SYSROOT}/etc/make.conf and
>>>> ${SYSROOT}/etc/make.profile ?
>>> I think I did; here is the contents of
>>> /usr/arm-softfloat-linux-uclibc/etc/make.conf
>>>
>>> .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>>> ACCEPT_KEYWORDS="arm"
>>> ARCH="arm"
>>>
>>> CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
>>> CHOST="i686-softfloat-linux-uclibc"
>> This line should be:
>> CHOST="arm-softfloat-linux-uclibc"
>
> OK, I changed that line, performed a
> crossdev -C arm-softfloat-linux-uclibc
>
> And then re-ran the toolchain build procedure I am using;
judging by your initial ncurses build error, you haven't successfully
xmerge'd anything into SYSROOT, so all you had to do was change CHOST in
${SYSROOT}/etc/make.conf, then try xmerge ncurses again.
> 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
crossdev doesn't use SYSROOT, it creates it. So there is no need to set it.
> Which concluded with no errors.
>
> However, when I run any xmerge, I still get the same error
> "C compiler cannot create executables"
Did you repeat Section 3 of the cross-development guide after blowing
away SYSROOT with crossdev -C <target>? And set CHOST correctly?
hth,
Jason.
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-06 20:19 ` Jason
@ 2007-11-06 20:31 ` Jean-Claude Gervais
2007-11-06 20:38 ` Jason
0 siblings, 1 reply; 27+ messages in thread
From: Jean-Claude Gervais @ 2007-11-06 20:31 UTC (permalink / raw
To: gentoo-embedded
On Tue, 2007-11-06 at 15:19 -0500, Jason wrote:
> Jean-Claude Gervais wrote:
> > On Tue, 2007-11-06 at 13:11 -0500, Jason wrote:
> >> Jean-Claude Gervais wrote:
> >>> On Tue, 2007-11-06 at 12:46 -0500, Jason wrote:
> >>>> Jean-Claude Gervais wrote:
> >>>>> 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
> >>>> [snip]
> >>>>> 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
> >>>> This doesn't look right. Did you setup ${SYSROOT}/etc/make.conf and
> >>>> ${SYSROOT}/etc/make.profile ?
> >>> I think I did; here is the contents of
> >>> /usr/arm-softfloat-linux-uclibc/etc/make.conf
> >>>
> >>> .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> >>> ACCEPT_KEYWORDS="arm"
> >>> ARCH="arm"
> >>>
> >>> CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
> >>> CHOST="i686-softfloat-linux-uclibc"
> >> This line should be:
> >> CHOST="arm-softfloat-linux-uclibc"
> >
> > OK, I changed that line, performed a
> > crossdev -C arm-softfloat-linux-uclibc
> >
> > And then re-ran the toolchain build procedure I am using;
>
> judging by your initial ncurses build error, you haven't successfully
> xmerge'd anything into SYSROOT, so all you had to do was change CHOST in
> ${SYSROOT}/etc/make.conf, then try xmerge ncurses again.
>
> > 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
>
> crossdev doesn't use SYSROOT, it creates it. So there is no need to set it.
>
> > Which concluded with no errors.
> >
> > However, when I run any xmerge, I still get the same error
> > "C compiler cannot create executables"
>
> Did you repeat Section 3 of the cross-development guide after blowing
> away SYSROOT with crossdev -C <target>?
Yes, absolutely.
> And set CHOST correctly?
You mean in /usr/arm-softfloat-linux-uclibc/etc/make.conf ?
Yes.
The make.conf at that location is
ACCEPT_KEYWORDS="arm"
ARCH="arm"
CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
CHOST="arm-softfloat-linux-uclibc"
CXXFLAGS="${CFLAGS}"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo
http://prometheus.cs.wmich.edu/gentoo http://mirror.datapipe.net/gentoo
http://ftp.ucsb.edu/pub/m$
INPUT_DEVICES="keyboard"
MAKEOPTS="-j2"
USE="minimal symlink"
UCLIBC_CPU="ARM920T"
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-06 20:31 ` Jean-Claude Gervais
@ 2007-11-06 20:38 ` Jason
2007-11-06 20:48 ` Jean-Claude Gervais
0 siblings, 1 reply; 27+ messages in thread
From: Jason @ 2007-11-06 20:38 UTC (permalink / raw
To: gentoo-embedded
Jean-Claude Gervais wrote:
> On Tue, 2007-11-06 at 15:19 -0500, Jason wrote:
>> Jean-Claude Gervais wrote:
>>> On Tue, 2007-11-06 at 13:11 -0500, Jason wrote:
>>>> Jean-Claude Gervais wrote:
>>>>> On Tue, 2007-11-06 at 12:46 -0500, Jason wrote:
>>>>>> Jean-Claude Gervais wrote:
>>>>>>> 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
>>>>>> [snip]
>>>>>>> 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
>>>>>> This doesn't look right. Did you setup ${SYSROOT}/etc/make.conf and
>>>>>> ${SYSROOT}/etc/make.profile ?
>>>>> I think I did; here is the contents of
>>>>> /usr/arm-softfloat-linux-uclibc/etc/make.conf
>>>>>
>>>>> .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>>>>> ACCEPT_KEYWORDS="arm"
>>>>> ARCH="arm"
>>>>>
>>>>> CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
>>>>> CHOST="i686-softfloat-linux-uclibc"
>>>> This line should be:
>>>> CHOST="arm-softfloat-linux-uclibc"
>>> OK, I changed that line, performed a
>>> crossdev -C arm-softfloat-linux-uclibc
>>>
>>> And then re-ran the toolchain build procedure I am using;
>> judging by your initial ncurses build error, you haven't successfully
>> xmerge'd anything into SYSROOT, so all you had to do was change CHOST in
>> ${SYSROOT}/etc/make.conf, then try xmerge ncurses again.
>>
>>> 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
>> crossdev doesn't use SYSROOT, it creates it. So there is no need to set it.
>>
>>> Which concluded with no errors.
>>>
>>> However, when I run any xmerge, I still get the same error
>>> "C compiler cannot create executables"
>> Did you repeat Section 3 of the cross-development guide after blowing
>> away SYSROOT with crossdev -C <target>?
>
> Yes, absolutely.
>
>> And set CHOST correctly?
>
> You mean in /usr/arm-softfloat-linux-uclibc/etc/make.conf ?
> Yes.
>
> The make.conf at that location is
>
> ACCEPT_KEYWORDS="arm"
> ARCH="arm"
>
> CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
> CHOST="arm-softfloat-linux-uclibc"
> CXXFLAGS="${CFLAGS}"
> GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo
> http://prometheus.cs.wmich.edu/gentoo http://mirror.datapipe.net/gentoo
> http://ftp.ucsb.edu/pub/m$
> INPUT_DEVICES="keyboard"
> MAKEOPTS="-j2"
> USE="minimal symlink"
> UCLIBC_CPU="ARM920T"
>
Okay, I suspect you fixed the error you were getting before
(configure:1286: result: i686-softfloat-linux-uclibc), so let's take a
look at the config.log again and see what's tripping it up this time.
thx,
Jason.
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-06 20:38 ` Jason
@ 2007-11-06 20:48 ` Jean-Claude Gervais
2007-11-06 20:55 ` Jason
0 siblings, 1 reply; 27+ messages in thread
From: Jean-Claude Gervais @ 2007-11-06 20:48 UTC (permalink / raw
To: gentoo-embedded
On Tue, 2007-11-06 at 15:38 -0500, Jason wrote:
> Jean-Claude Gervais wrote:
> > On Tue, 2007-11-06 at 15:19 -0500, Jason wrote:
> >> Jean-Claude Gervais wrote:
> >>> On Tue, 2007-11-06 at 13:11 -0500, Jason wrote:
> >>>> Jean-Claude Gervais wrote:
> >>>>> On Tue, 2007-11-06 at 12:46 -0500, Jason wrote:
> >>>>>> Jean-Claude Gervais wrote:
> >>>>>>> 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
> >>>>>> [snip]
> >>>>>>> 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
> >>>>>> This doesn't look right. Did you setup ${SYSROOT}/etc/make.conf and
> >>>>>> ${SYSROOT}/etc/make.profile ?
> >>>>> I think I did; here is the contents of
> >>>>> /usr/arm-softfloat-linux-uclibc/etc/make.conf
> >>>>>
> >>>>> .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> >>>>> ACCEPT_KEYWORDS="arm"
> >>>>> ARCH="arm"
> >>>>>
> >>>>> CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
> >>>>> CHOST="i686-softfloat-linux-uclibc"
> >>>> This line should be:
> >>>> CHOST="arm-softfloat-linux-uclibc"
> >>> OK, I changed that line, performed a
> >>> crossdev -C arm-softfloat-linux-uclibc
> >>>
> >>> And then re-ran the toolchain build procedure I am using;
> >> judging by your initial ncurses build error, you haven't successfully
> >> xmerge'd anything into SYSROOT, so all you had to do was change CHOST in
> >> ${SYSROOT}/etc/make.conf, then try xmerge ncurses again.
> >>
> >>> 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
> >> crossdev doesn't use SYSROOT, it creates it. So there is no need to set it.
> >>
> >>> Which concluded with no errors.
> >>>
> >>> However, when I run any xmerge, I still get the same error
> >>> "C compiler cannot create executables"
> >> Did you repeat Section 3 of the cross-development guide after blowing
> >> away SYSROOT with crossdev -C <target>?
> >
> > Yes, absolutely.
> >
> >> And set CHOST correctly?
> >
> > You mean in /usr/arm-softfloat-linux-uclibc/etc/make.conf ?
> > Yes.
> >
> > The make.conf at that location is
> >
> > ACCEPT_KEYWORDS="arm"
> > ARCH="arm"
> >
> > CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
> > CHOST="arm-softfloat-linux-uclibc"
> > CXXFLAGS="${CFLAGS}"
> > GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo
> > http://prometheus.cs.wmich.edu/gentoo http://mirror.datapipe.net/gentoo
> > http://ftp.ucsb.edu/pub/m$
> > INPUT_DEVICES="keyboard"
> > MAKEOPTS="-j2"
> > USE="minimal symlink"
> > UCLIBC_CPU="ARM920T"
> >
>
> Okay, I suspect you fixed the error you were getting before
> (configure:1286: result: i686-softfloat-linux-uclibc), so let's take a
> look at the config.log again and see what's tripping it up this time.
Eureka! Or maybe I should say D'OH!
I had some invalid compiler options: -mfloat-abi=softfp -mfpu=vfp
in my CFLAGS!
I scanned the config.log too quickly last time. Sorry!
and
Thanks Jason!
J
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2007-11-06 20:48 ` Jean-Claude Gervais
@ 2007-11-06 20:55 ` Jason
0 siblings, 0 replies; 27+ messages in thread
From: Jason @ 2007-11-06 20:55 UTC (permalink / raw
To: gentoo-embedded
Jean-Claude Gervais wrote:
> On Tue, 2007-11-06 at 15:38 -0500, Jason wrote:
>> Jean-Claude Gervais wrote:
>>> On Tue, 2007-11-06 at 15:19 -0500, Jason wrote:
>>>> Jean-Claude Gervais wrote:
>>>>> On Tue, 2007-11-06 at 13:11 -0500, Jason wrote:
>>>>>> Jean-Claude Gervais wrote:
>>>>>>> On Tue, 2007-11-06 at 12:46 -0500, Jason wrote:
>>>>>>>> Jean-Claude Gervais wrote:
>>>>>>>>> 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
>>>>>>>> [snip]
>>>>>>>>> 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
>>>>>>>> This doesn't look right. Did you setup ${SYSROOT}/etc/make.conf and
>>>>>>>> ${SYSROOT}/etc/make.profile ?
>>>>>>> I think I did; here is the contents of
>>>>>>> /usr/arm-softfloat-linux-uclibc/etc/make.conf
>>>>>>>
>>>>>>> .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>>>>>>> ACCEPT_KEYWORDS="arm"
>>>>>>> ARCH="arm"
>>>>>>>
>>>>>>> CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
>>>>>>> CHOST="i686-softfloat-linux-uclibc"
>>>>>> This line should be:
>>>>>> CHOST="arm-softfloat-linux-uclibc"
>>>>> OK, I changed that line, performed a
>>>>> crossdev -C arm-softfloat-linux-uclibc
>>>>>
>>>>> And then re-ran the toolchain build procedure I am using;
>>>> judging by your initial ncurses build error, you haven't successfully
>>>> xmerge'd anything into SYSROOT, so all you had to do was change CHOST in
>>>> ${SYSROOT}/etc/make.conf, then try xmerge ncurses again.
>>>>
>>>>> 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
>>>> crossdev doesn't use SYSROOT, it creates it. So there is no need to set it.
>>>>
>>>>> Which concluded with no errors.
>>>>>
>>>>> However, when I run any xmerge, I still get the same error
>>>>> "C compiler cannot create executables"
>>>> Did you repeat Section 3 of the cross-development guide after blowing
>>>> away SYSROOT with crossdev -C <target>?
>>> Yes, absolutely.
>>>
>>>> And set CHOST correctly?
>>> You mean in /usr/arm-softfloat-linux-uclibc/etc/make.conf ?
>>> Yes.
>>>
>>> The make.conf at that location is
>>>
>>> ACCEPT_KEYWORDS="arm"
>>> ARCH="arm"
>>>
>>> CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp"
>>> CHOST="arm-softfloat-linux-uclibc"
>>> CXXFLAGS="${CFLAGS}"
>>> GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo
>>> http://prometheus.cs.wmich.edu/gentoo http://mirror.datapipe.net/gentoo
>>> http://ftp.ucsb.edu/pub/m$
>>> INPUT_DEVICES="keyboard"
>>> MAKEOPTS="-j2"
>>> USE="minimal symlink"
>>> UCLIBC_CPU="ARM920T"
>>>
>> Okay, I suspect you fixed the error you were getting before
>> (configure:1286: result: i686-softfloat-linux-uclibc), so let's take a
>> look at the config.log again and see what's tripping it up this time.
>
> Eureka! Or maybe I should say D'OH!
>
> I had some invalid compiler options: -mfloat-abi=softfp -mfpu=vfp
> in my CFLAGS!
Damn, I though those looked funny. I personally don't use them, but I
thought you had a good reason... :-)
> I scanned the config.log too quickly last time. Sorry!
>
> and
> Thanks Jason!
No problem. Glad I could help.
Jason.
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 27+ messages in thread
* [gentoo-embedded] C compiler cannot create executables
@ 2009-09-17 18:30 Stephen Feyrer
2009-09-17 23:28 ` Peter Stuge
0 siblings, 1 reply; 27+ messages in thread
From: Stephen Feyrer @ 2009-09-17 18:30 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 1644 bytes --]
Hi.
I'm still trying to build Dovecot for a Qnap network attached storage
device. Below is my latest attempt. The significant detail in all of
that is that I'm using libc-2.3.4.so (which I'm borrowing from the nas).
The thing being that when I have compiled Dovecot against my version of
Glibc it will not run on the nas.
Please help.
# i_cv_epoll_works=no i_cv_inotify_works=no
i_cv_posix_fallocate_works=no i_cv_signed_size_t=no
i_cv_gmtime_max_time_t=32 i_cv_signed_time_t=yes
i_cv_mmap_plays_with_write=yes i_cv_fd_passing=yes
i_cv_c99_vsnprintf=yes lib_cv_va_copy=yes lib_cv___va_copy=yes
lib_cv_va_val_copy=yes SSL_LIBS='-lssl' SSL_CFLAGS=' ' ./configure
LIBS="/usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so"
--prefix=/opt --sysconfdir=/opt/etc --sysconfdir=/opt/etc/dovecot
--target=armv5tel-softfloat-linux-gnueabi
--host=armv5tel-softfloat-linux-gnueabi --build=x86_64-pc-linux-gnu
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... gawk
checking whether make sets $(MAKE)... yes
checking for armv5tel-softfloat-linux-gnueabi-strip...
armv5tel-softfloat-linux-gnueabi-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for armv5tel-softfloat-linux-gnueabi-gcc...
armv5tel-softfloat-linux-gnueabi-gcc
checking for C compiler default output file name...
configure: error: in `/root/dovecot/dovecot-1.2.3':
configure: error: C compiler cannot create executables
--
Kind regards
Stephen Feyrer.
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3322 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2009-09-17 18:30 [gentoo-embedded] C compiler cannot create executables Stephen Feyrer
@ 2009-09-17 23:28 ` Peter Stuge
2009-09-18 8:49 ` Stephen Feyrer
0 siblings, 1 reply; 27+ messages in thread
From: Peter Stuge @ 2009-09-17 23:28 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 1699 bytes --]
Stephen Feyrer wrote:
> The thing being that when I have compiled Dovecot against my
> version of Glibc it will not run on the nas.
Can you build it statically? It will be large of course, but you
should have enough disk space, right?
> Please help.
..
> # i_cv_epoll_works=no i_cv_inotify_works=no
> i_cv_posix_fallocate_works=no i_cv_signed_size_t=no
> i_cv_gmtime_max_time_t=32 i_cv_signed_time_t=yes
> i_cv_mmap_plays_with_write=yes i_cv_fd_passing=yes
> i_cv_c99_vsnprintf=yes lib_cv_va_copy=yes lib_cv___va_copy=yes
> lib_cv_va_val_copy=yes SSL_LIBS='-lssl' SSL_CFLAGS=' ' ./configure
> LIBS="/usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so"
> --prefix=/opt --sysconfdir=/opt/etc --sysconfdir=/opt/etc/dovecot
> --target=armv5tel-softfloat-linux-gnueabi
> --host=armv5tel-softfloat-linux-gnueabi --build=x86_64-pc-linux-gnu
>
>
> 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... gawk
> checking whether make sets $(MAKE)... yes
> checking for armv5tel-softfloat-linux-gnueabi-strip...
> armv5tel-softfloat-linux-gnueabi-strip
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for style of include used by make... GNU
> checking for armv5tel-softfloat-linux-gnueabi-gcc...
> armv5tel-softfloat-linux-gnueabi-gcc
> checking for C compiler default output file name...
> configure: error: in `/root/dovecot/dovecot-1.2.3':
> configure: error: C compiler cannot create executables
Impossible to help without more detail. Please provide e.g.
config.log
//Peter
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2009-09-17 23:28 ` Peter Stuge
@ 2009-09-18 8:49 ` Stephen Feyrer
2009-09-18 13:03 ` David Ford
0 siblings, 1 reply; 27+ messages in thread
From: Stephen Feyrer @ 2009-09-18 8:49 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1.1: Type: text/plain, Size: 660 bytes --]
Peter Stuge wrote:
> Stephen Feyrer wrote:
>> The thing being that when I have compiled Dovecot against my
>> version of Glibc it will not run on the nas.
> Can you build it statically? It will be large of course, but you
> should have enough disk space, right?
I'd certainly have enough disc space but it would make it too big to put
in an ipackage though that is not my primary goal. At this time I don't
actually know how (but with a little help from google, I'm sure I'll
find out).
[snip]
> Impossible to help without more detail. Please provide e.g.
> config.log
Please see the attached file.
> //Peter
--
Greatest Regards and Thanks
Stephen
[-- Attachment #1.2: config.log.tar.gz --]
[-- Type: application/x-gzip, Size: 3616 bytes --]
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3322 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2009-09-18 8:49 ` Stephen Feyrer
@ 2009-09-18 13:03 ` David Ford
2009-09-19 8:35 ` Stephen Feyrer
2009-09-19 14:15 ` Mike Frysinger
0 siblings, 2 replies; 27+ messages in thread
From: David Ford @ 2009-09-18 13:03 UTC (permalink / raw
To: gentoo-embedded
[...]
configure:4134: checking for C compiler version
configure:4142: armv5tel-softfloat-linux-gnueabi-gcc --version >&5
armv5tel-softfloat-linux-gnueabi-gcc (Gentoo 4.4.1 p1.0) 4.4.1
Copyright (C) 2009 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:4146: $? = 0
configure:4153: armv5tel-softfloat-linux-gnueabi-gcc -v >&5
Using built-in specs.
Target: armv5tel-softfloat-linux-gnueabi
Configured with:
/var/tmp/portage/cross-armv5tel-softfloat-linux-gnueabi/gcc-4.4.1/work/gcc-4.4.1/configure
--prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/armv5tel-softfloat-linux-gnueabi/gcc-bin/4.4.1
--includedir=/usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/4.4.1/include
--datadir=/usr/share/gcc-data/armv5tel-softfloat-linux-gnueabi/4.4.1
--mandir=/usr/share/gcc-data/armv5tel-softfloat-linux-gnueabi/4.4.1/man
--infodir=/usr/share/gcc-data/armv5tel-softfloat-linux-gnueabi/4.4.1/info
--with-gxx-include-dir=/usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/4.4.1/include/g++-v4
--host=x86_64-pc-linux-gnu --target=armv5tel-softfloat-linux-gnueabi
--build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point
--without-ppl --without-cloog --with-float=soft --enable-nls
--without-included-gettext --with-system-zlib --disable-checking
--disable-werror --enable-secureplt --disable-multilib
--disable-libmudflap --disable-libssp --disable-libgomp --enable-cld
--with-python-dir=/share/gcc-data/armv5tel-softfloat-linux-gnueabi/4.4.1/python
--disable-libgcj --enable-languages=c,c++,fortran
--with-sysroot=/usr/armv5tel-softfloat-linux-gnueabi --disable-bootstrap
--disable-libgomp --enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.1 p1.0'
Thread model: posix
gcc version 4.4.1 (Gentoo 4.4.1 p1.0)
configure:4157: $? = 0
configure:4164: armv5tel-softfloat-linux-gnueabi-gcc -V >&5
armv5tel-softfloat-linux-gnueabi-gcc: '-V' option must have argument
configure:4168: $? = 1
configure:4191: checking for C compiler default output file name
configure:4213: armv5tel-softfloat-linux-gnueabi-gcc conftest.c
/usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so >&5
/usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so: undefined
reference to `_dl_out_of_memory@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
configure:4217: $? = 1
configure:4255: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Dovecot"
| #define PACKAGE_TARNAME "dovecot"
| #define PACKAGE_VERSION "1.2.rc5"
| #define PACKAGE_STRING "Dovecot 1.2.rc5"
| #define PACKAGE_BUGREPORT "dovecot@dovecot.org"
| #define PACKAGE "dovecot"
| #define VERSION "1.2.rc5"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4261: error: in `/root/dovecot/dovecot-1.2.3':
configure:4264: error: C compiler cannot create executables
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2009-09-18 13:03 ` David Ford
@ 2009-09-19 8:35 ` Stephen Feyrer
2009-09-19 15:26 ` David Ford
2009-09-19 14:15 ` Mike Frysinger
1 sibling, 1 reply; 27+ messages in thread
From: Stephen Feyrer @ 2009-09-19 8:35 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 1511 bytes --]
David Ford wrote:
>
> [...]
> configure:4191: checking for C compiler default output file name
> configure:4213: armv5tel-softfloat-linux-gnueabi-gcc conftest.c
> /usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so >&5
> /usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so: undefined
> reference to `_dl_out_of_memory@GLIBC_PRIVATE'
> collect2: ld returned 1 exit status
> configure:4217: $? = 1
> configure:4255: result:
> configure: failed program was:
> | /* confdefs.h. */
> | #define PACKAGE_NAME "Dovecot"
> | #define PACKAGE_TARNAME "dovecot"
> | #define PACKAGE_VERSION "1.2.rc5"
> | #define PACKAGE_STRING "Dovecot 1.2.rc5"
> | #define PACKAGE_BUGREPORT "dovecot@dovecot.org"
> | #define PACKAGE "dovecot"
> | #define VERSION "1.2.rc5"
> | /* end confdefs.h. */
> |
> | int
> | main ()
> | {
> |
> | ;
> | return 0;
> | }
> configure:4261: error: in `/root/dovecot/dovecot-1.2.3':
> configure:4264: error: C compiler cannot create executables
>
Sorry, I can only guess at what's going on here (except of cause that it
doesn't work). I imagine from this excerpt of my config.log that it
should be obvious and staring me in the face.
If this has a specific mean that I should know, please tell me.
Better yet, if there is away making my build environment target the host
system with that version glibc, tell me that instead.
Indeed all I really need to know is how to build a working version of
dovecot for the qnap network attached storage device.
--
Hopefully yours
Stephen.
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3322 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2009-09-18 13:03 ` David Ford
2009-09-19 8:35 ` Stephen Feyrer
@ 2009-09-19 14:15 ` Mike Frysinger
2009-09-19 15:28 ` David Ford
` (2 more replies)
1 sibling, 3 replies; 27+ messages in thread
From: Mike Frysinger @ 2009-09-19 14:15 UTC (permalink / raw
To: gentoo-embedded; +Cc: David Ford
[-- Attachment #1: Type: Text/Plain, Size: 345 bytes --]
On Friday 18 September 2009 09:03:09 David Ford wrote:
> /usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so: undefined
> reference to `_dl_out_of_memory@GLIBC_PRIVATE'
you have a mismatch between the glibc files you're importing. you must
include all of the libraries from the exact same glibc build, not just one or
two.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2009-09-19 8:35 ` Stephen Feyrer
@ 2009-09-19 15:26 ` David Ford
2009-09-20 8:55 ` Stephen Feyrer
0 siblings, 1 reply; 27+ messages in thread
From: David Ford @ 2009-09-19 15:26 UTC (permalink / raw
To: gentoo-embedded
my apologies for the nearly blank reply, i was interrupted and needed
to leave quite promptly.
it looks like you have a variance in your toolchain. did you perhaps
rebuild your toolchain in parts? try re-emerging your entire arm tool
chain so your headers and libraries match up properly.
-david
Stephen Feyrer wrote:
> David Ford wrote:
>
>> [...]
>> configure:4191: checking for C compiler default output file name
>> configure:4213: armv5tel-softfloat-linux-gnueabi-gcc conftest.c
>> /usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so >&5
>> /usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so: undefined
>> reference to `_dl_out_of_memory@GLIBC_PRIVATE'
>> [...]
>> configure:4261: error: in `/root/dovecot/dovecot-1.2.3':
>> configure:4264: error: C compiler cannot create executables
>>
>>
>
> Sorry, I can only guess at what's going on here (except of cause that it
> doesn't work). I imagine from this excerpt of my config.log that it
> should be obvious and staring me in the face.
>
> If this has a specific mean that I should know, please tell me.
>
> Better yet, if there is away making my build environment target the host
> system with that version glibc, tell me that instead.
>
> Indeed all I really need to know is how to build a working version of
> dovecot for the qnap network attached storage device.
>
>
> --
> Hopefully yours
>
> Stephen.
>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2009-09-19 14:15 ` Mike Frysinger
@ 2009-09-19 15:28 ` David Ford
2009-09-20 9:10 ` Stephen Feyrer
2009-09-20 8:51 ` Stephen Feyrer
2009-09-22 21:40 ` Stephen Feyrer
2 siblings, 1 reply; 27+ messages in thread
From: David Ford @ 2009-09-19 15:28 UTC (permalink / raw
To: gentoo-embedded
at least my thoughts were in the right direction :)
Mike Frysinger wrote:
> On Friday 18 September 2009 09:03:09 David Ford wrote:
>
>> /usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so: undefined
>> reference to `_dl_out_of_memory@GLIBC_PRIVATE'
>>
>
> you have a mismatch between the glibc files you're importing. you must
> include all of the libraries from the exact same glibc build, not just one or
> two.
> -mike
>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2009-09-19 14:15 ` Mike Frysinger
2009-09-19 15:28 ` David Ford
@ 2009-09-20 8:51 ` Stephen Feyrer
2009-09-22 21:40 ` Stephen Feyrer
2 siblings, 0 replies; 27+ messages in thread
From: Stephen Feyrer @ 2009-09-20 8:51 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 530 bytes --]
Hi.
Mike Frysinger wrote:
> On Friday 18 September 2009 09:03:09 David Ford wrote:
>> /usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so: undefined
>> reference to `_dl_out_of_memory@GLIBC_PRIVATE'
>
> you have a mismatch between the glibc files you're importing. you must
> include all of the libraries from the exact same glibc build, not just one or
> two.
> -mike
Hi and thanks!
So far the only file which I've taken from the nas is the libc-2.3.4.so
which others should I be looking for?
--
Gratefully
Stephen
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3322 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2009-09-19 15:26 ` David Ford
@ 2009-09-20 8:55 ` Stephen Feyrer
0 siblings, 0 replies; 27+ messages in thread
From: Stephen Feyrer @ 2009-09-20 8:55 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 383 bytes --]
David Ford wrote:
> my apologies for the nearly blank reply, i was interrupted and needed
> to leave quite promptly.
Not a problem, life is never straight forward.
> it looks like you have a variance in your toolchain. did you perhaps
> rebuild your toolchain in parts? try re-emerging your entire arm tool
> chain so your headers and libraries match up properly.
>
> -david
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3322 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2009-09-19 15:28 ` David Ford
@ 2009-09-20 9:10 ` Stephen Feyrer
0 siblings, 0 replies; 27+ messages in thread
From: Stephen Feyrer @ 2009-09-20 9:10 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 544 bytes --]
David Ford wrote:
> at least my thoughts were in the right direction :)
Thank you. I hope we're all going in the right direction.
> Mike Frysinger wrote:
>> On Friday 18 September 2009 09:03:09 David Ford wrote:
>>
>>> /usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so: undefined
>>> reference to `_dl_out_of_memory@GLIBC_PRIVATE'
>> you have a mismatch between the glibc files you're importing. you must
>> include all of the libraries from the exact same glibc build, not just one or
>> two.
>> -mike
--
Gratefully
Stephen
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3322 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [gentoo-embedded] C compiler cannot create executables
2009-09-19 14:15 ` Mike Frysinger
2009-09-19 15:28 ` David Ford
2009-09-20 8:51 ` Stephen Feyrer
@ 2009-09-22 21:40 ` Stephen Feyrer
2 siblings, 0 replies; 27+ messages in thread
From: Stephen Feyrer @ 2009-09-22 21:40 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 3170 bytes --]
Hi.
After the careful abuse of a Star Trek Plot, I have managed to
discovered that there are a number of files *-2.3.4.so on the target
machine.
So far I have install all these files into
/usr/armv5tel-softfloat-linux-gnueabi/lib/ .
Thus ./configure has complete properly, then make and make
DESTDIR="qnap-D-1.2.3" install also!
Now the product of this seems to still use Glibc 2.7... So I'm now
explicitly targeting all the Glibc 2.3.4 libraries.
I'll see how that goes.
That fails in the configure with
configure:4213: armv5tel-softfloat-linux-gnueabi-gcc conftest.c
/usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so
/usr/armv5tel-softfloat-linux-gnueabi/lib/ld-2.3.4.so
/usr/armv5tel-softfloat-linux-gnueabi/lib/libcrypt-2.3.4.so
/usr/armv5tel-softfloat-linux-gnueabi/lib/libdl-2.3.4.so
/usr/armv5tel-softfloat-linux-gnueabi/lib/libm-2.3.4.so
/usr/armv5tel-softfloat-linux-gnueabi/lib/libnsl-2.3.4.so
/usr/armv5tel-softfloat-linux-gnueabi/lib/libnss_dns-2.3.4.so
/usr/armv5tel-softfloat-linux-gnueabi/lib/libnss_files-2.3.4.so
/usr/armv5tel-softfloat-linux-gnueabi/lib/libresolv-2.3.4.so
/usr/armv5tel-softfloat-linux-gnueabi/lib/librt-2.3.4.so
/usr/armv5tel-softfloat-linux-gnueabi/lib/libutil-2.3.4.so >&5
/usr/armv5tel-softfloat-linux-gnueabi/lib/librt-2.3.4.so: undefined
reference to `__librt_enable_asynccancel@GLIBC_PRIVATE'
/usr/armv5tel-softfloat-linux-gnueabi/lib/libpthread.so.0: undefined
reference to `_dl_allocate_tls@GLIBC_PRIVATE'
/usr/armv5tel-softfloat-linux-gnueabi/lib/libpthread.so.0: undefined
reference to `_dl_get_tls_static_info@GLIBC_PRIVATE'
/usr/armv5tel-softfloat-linux-gnueabi/lib/libc.so.6: undefined reference
to `__tls_get_addr@GLIBC_2.4'
/usr/armv5tel-softfloat-linux-gnueabi/lib/librt-2.3.4.so: undefined
reference to `__librt_disable_asynccancel@GLIBC_PRIVATE'
/usr/armv5tel-softfloat-linux-gnueabi/lib/libdl-2.3.4.so: undefined
reference to `_dl_open@GLIBC_PRIVATE'
/usr/armv5tel-softfloat-linux-gnueabi/lib/libpthread.so.0: undefined
reference to `_dl_allocate_tls_init@GLIBC_PRIVATE'
/usr/armv5tel-softfloat-linux-gnueabi/lib/libdl-2.3.4.so: undefined
reference to `_dl_close@GLIBC_PRIVATE'
/usr/armv5tel-softfloat-linux-gnueabi/lib/libpthread.so.0: undefined
reference to `_dl_deallocate_tls@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
configure:4217: $? = 1
configure:4255: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Dovecot"
| #define PACKAGE_TARNAME "dovecot"
| #define PACKAGE_VERSION "1.2.rc5"
| #define PACKAGE_STRING "Dovecot 1.2.rc5"
| #define PACKAGE_BUGREPORT "dovecot@dovecot.org"
| #define PACKAGE "dovecot"
| #define VERSION "1.2.rc5"
| /* end confdefs.h. */
I think I must have missed something when copying glibc... But I don't
know yet.
Thank you for your patience.
Mike Frysinger wrote:
> On Friday 18 September 2009 09:03:09 David Ford wrote:
>> /usr/armv5tel-softfloat-linux-gnueabi/lib/libc-2.3.4.so: undefined
>> reference to `_dl_out_of_memory@GLIBC_PRIVATE'
>
> you have a mismatch between the glibc files you're importing. you must
> include all of the libraries from the exact same glibc build, not just one or
> two.
> -mike
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3322 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
end of thread, other threads:[~2009-09-22 21:40 UTC | newest]
Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-17 18:30 [gentoo-embedded] C compiler cannot create executables Stephen Feyrer
2009-09-17 23:28 ` Peter Stuge
2009-09-18 8:49 ` Stephen Feyrer
2009-09-18 13:03 ` David Ford
2009-09-19 8:35 ` Stephen Feyrer
2009-09-19 15:26 ` David Ford
2009-09-20 8:55 ` Stephen Feyrer
2009-09-19 14:15 ` Mike Frysinger
2009-09-19 15:28 ` David Ford
2009-09-20 9:10 ` Stephen Feyrer
2009-09-20 8:51 ` Stephen Feyrer
2009-09-22 21:40 ` Stephen Feyrer
-- strict thread matches above, loose matches on Subject: below --
2007-11-05 18:55 Jean-Claude Gervais
2007-11-05 22:41 ` Peter Stuge
2007-11-05 23:50 ` Ned Ludd
2007-11-06 17:26 ` Jean-Claude Gervais
2007-11-06 17:46 ` Jason
2007-11-06 17:55 ` Jean-Claude Gervais
2007-11-06 17:59 ` Jean-Claude Gervais
2007-11-06 18:11 ` Jason
2007-11-06 19:55 ` Jean-Claude Gervais
2007-11-06 20:19 ` Jason
2007-11-06 20:31 ` Jean-Claude Gervais
2007-11-06 20:38 ` Jason
2007-11-06 20:48 ` Jean-Claude Gervais
2007-11-06 20:55 ` Jason
2007-11-06 0:50 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox