infecticide Apprentice
Joined: 10 Mar 2004 Posts: 262 Location: Regina, SK Canada
|
Posted: Mon Feb 07, 2011 12:47 am Post subject: ARM7 - Neuvoo - Unable to compile talloc under crossdev |
|
|
I am attempting to hand craft an image using the Neuvoo method.
I am attempting this step:
ROOT=$NZ emerge-armv7a-unknown-linux-gnueabi system
and it fails....
Code: |
>>> Emerging (6 of 186) sys-libs/talloc-2.0.5 for /usr/armv7a-unknown-linux-gnueabi/
* talloc-2.0.5.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* Package: sys-libs/talloc-2.0.5
* Repository: gentoo
* Maintainer: patrick@gentoo.org samba@gentoo.org
* USE: arm elibc_glibc kernel_linux python userland_GNU
>>> Unpacking source...
>>> Unpacking talloc-2.0.5.tar.gz to /usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work
>>> Source unpacked in /usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work
>>> Preparing source in /usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5 ...
>>> Source prepared.
>>> Configuring source in /usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5 ...
CCFLAGS="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fomit-frame-pointer -Os -pipe" LINKFLAGS="-L/usr/armv7a-unknown-linux-gnueabi/lib -L/usr/armv7a-unknown-linux-gnueabi/usr/lib" "/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5/buildtools/bin/waf" --prefix=/usr --libdir=/usr/lib configure
Checking for program gcc or cc : /usr/bin/gcc
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for program git : /usr/bin/git
Check for -MD : no
Checking for program gdb : not found
Checking build system : Linux steven-laptop 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 Intel(R) Atom(TM) CPU N280 @ 1.66GHz GenuineIntel GNU/Linux
Checking for header sys/utsname.h : no
Checking uname sysname type : not found
Checking uname machine type : not found
Checking uname release type : not found
Checking uname version type : not found
Checking for header stdio.h : no
Checking simple C program : /usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5/lib/replace/../../buildtools/wafsamba/wscript:267: error: the configuration failed (see '/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5/bin/config.log')
* ERROR: sys-libs/talloc-2.0.5 failed:
* configure failed
*
* Call stack:
* ebuild.sh, line 56: Called src_configure
* environment, line 2420: Called waf-utils_src_configure
* environment, line 3005: Called die
* The specific snippet of code:
* CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" "${WAF_BINARY}" --prefix=/usr --libdir=/usr/$(get_libdir) $@ configure || die "configure failed"
*
* If you need support, post the output of 'emerge --info =sys-libs/talloc-2.0.5',
* the complete build log and the output of 'emerge -pqv =sys-libs/talloc-2.0.5'.
* The complete build log is located at '/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/temp/build.log'.
* The ebuild environment file is located at '/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/temp/environment'.
* S: '/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5'
>>> Failed to emerge sys-libs/talloc-2.0.5 for /usr/armv7a-unknown-linux-gnueabi/, Log file:
>>> '/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/temp/build.log'
* Messages for package sys-libs/talloc-2.0.5 merged to /usr/armv7a-unknown-linux-gnueabi/:
* ERROR: sys-libs/talloc-2.0.5 failed:
* configure failed
*
* Call stack:
* ebuild.sh, line 56: Called src_configure
* environment, line 2420: Called waf-utils_src_configure
* environment, line 3005: Called die
* The specific snippet of code:
* CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" "${WAF_BINARY}" --prefix=/usr --libdir=/usr/$(get_libdir) $@ configure || die "configure failed"
*
* If you need support, post the output of 'emerge --info =sys-libs/talloc-2.0.5',
* the complete build log and the output of 'emerge -pqv =sys-libs/talloc-2.0.5'.
* The complete build log is located at '/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/temp/build.log'.
* The ebuild environment file is located at '/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/temp/environment'.
* S: '/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5'
|
config.log
Code: |
# project talloc (2.0.5) configured on Mon Feb 7 01:01:13 2011 by
# waf 1.5.19 (abi 7, python 20606f0 on linux2)
# using /usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5/buildtools/bin/waf --prefix=/usr --libdir=/usr/lib configure
#
----------------------------------------
Checking for program gcc or cc
find program=['gcc', 'cc'] paths=[] var='CC'
-> '/usr/bin/gcc'
----------------------------------------
Checking for program cpp
find program=['cpp'] paths=[] var='CPP'
-> '/usr/bin/cpp'
----------------------------------------
Checking for program ar
find program=['ar'] paths=[] var='AR'
-> '/usr/bin/ar'
----------------------------------------
Checking for program ranlib
find program=['ranlib'] paths=[] var='RANLIB'
-> '/usr/bin/ranlib'
----------------------------------------
Checking for gcc
ok
----------------------------------------
Checking for program git
find program=['git'] paths=[] var='GIT'
-> '/usr/bin/git'
----------------------------------------
Check for -MD
==>
int main() {return 0;}
<==
[1/1] Compiling test.c
cc1: error: unrecognized command line option "-mfpu=neon"
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
../test.c:1: error: bad value (armv7-a) for -march= switch
../test.c:1: error: bad value (cortex-a8) for -mtune= switch
['/usr/bin/gcc', '-march=armv7-a', '-mtune=cortex-a8', '-mfpu=neon', '-mfloat-abi=softfp', '-fomit-frame-pointer', '-Os', '-pipe', '-MD', '../test.c', '-c', '-o', '/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5/bin/.conf_check_0/testbuild/default/test_1.o']
command returned 'Build failed: -> task failed (err #1): \n\t{task: cc test.c -> test_1.o,test_1.d}'no
----------------------------------------
Checking for program gdb
find program=['gdb'] paths=[] var=None
-> ''
----------------------------------------
Checking build system
Linux steven-laptop 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 Intel(R) Atom(TM) CPU N280 @ 1.66GHz GenuineIntel GNU/Linux
----------------------------------------
Checking for header sys/utsname.h
==>
#include <sys/utsname.h>
int main(void) { return 0; }
<==
[1/1] Compiling test.c
cc1: error: unrecognized command line option "-mfpu=neon"
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
../test.c:1: error: bad value (armv7-a) for -march= switch
../test.c:1: error: bad value (cortex-a8) for -mtune= switch
['/usr/bin/gcc', '-march=armv7-a', '-mtune=cortex-a8', '-mfpu=neon', '-mfloat-abi=softfp', '-fomit-frame-pointer', '-Os', '-pipe', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Build failed: -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}'no
----------------------------------------
Checking uname sysname type
==>
#define BUILD_SYSTEM "Linux steven-laptop 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 Intel(R) Atom(TM) CPU N280 @ 1.66GHz GenuineIntel GNU/Linux"
int main(void) {
struct utsname n;
if (uname(&n) == -1) return -1;
printf("%s", n.sysname);
; return 0; }
<==
[1/2] Compiling test.c
cc1: error: unrecognized command line option "-mfpu=neon"
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
../test.c:1: error: bad value (armv7-a) for -march= switch
../test.c:1: error: bad value (cortex-a8) for -mtune= switch
['/usr/bin/gcc', '-march=armv7-a', '-mtune=cortex-a8', '-mfpu=neon', '-mfloat-abi=softfp', '-fomit-frame-pointer', '-Os', '-pipe', '-Idefault', '-I..', '-Idefault', '-I..', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Build failed: -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}'not found
----------------------------------------
Checking uname machine type
==>
#define BUILD_SYSTEM "Linux steven-laptop 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 Intel(R) Atom(TM) CPU N280 @ 1.66GHz GenuineIntel GNU/Linux"
/* #undef SYSTEM_UNAME_SYSNAME */
int main(void) {
struct utsname n;
if (uname(&n) == -1) return -1;
printf("%s", n.machine);
; return 0; }
<==
[1/2] Compiling test.c
cc1: error: unrecognized command line option "-mfpu=neon"
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
../test.c:1: error: bad value (armv7-a) for -march= switch
../test.c:1: error: bad value (cortex-a8) for -mtune= switch
['/usr/bin/gcc', '-march=armv7-a', '-mtune=cortex-a8', '-mfpu=neon', '-mfloat-abi=softfp', '-fomit-frame-pointer', '-Os', '-pipe', '-Idefault', '-I..', '-Idefault', '-I..', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Build failed: -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}'not found
----------------------------------------
Checking uname release type
==>
#define BUILD_SYSTEM "Linux steven-laptop 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 Intel(R) Atom(TM) CPU N280 @ 1.66GHz GenuineIntel GNU/Linux"
/* #undef SYSTEM_UNAME_SYSNAME */
/* #undef SYSTEM_UNAME_MACHINE */
int main(void) {
struct utsname n;
if (uname(&n) == -1) return -1;
printf("%s", n.release);
; return 0; }
<==
[1/2] Compiling test.c
cc1: error: unrecognized command line option "-mfpu=neon"
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
../test.c:1: error: bad value (armv7-a) for -march= switch
../test.c:1: error: bad value (cortex-a8) for -mtune= switch
['/usr/bin/gcc', '-march=armv7-a', '-mtune=cortex-a8', '-mfpu=neon', '-mfloat-abi=softfp', '-fomit-frame-pointer', '-Os', '-pipe', '-Idefault', '-I..', '-Idefault', '-I..', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Build failed: -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}'not found
----------------------------------------
Checking uname version type
==>
#define BUILD_SYSTEM "Linux steven-laptop 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 Intel(R) Atom(TM) CPU N280 @ 1.66GHz GenuineIntel GNU/Linux"
/* #undef SYSTEM_UNAME_SYSNAME */
/* #undef SYSTEM_UNAME_MACHINE */
/* #undef SYSTEM_UNAME_RELEASE */
int main(void) {
struct utsname n;
if (uname(&n) == -1) return -1;
printf("%s", n.version);
; return 0; }
<==
[1/2] Compiling test.c
cc1: error: unrecognized command line option "-mfpu=neon"
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
../test.c:1: error: bad value (armv7-a) for -march= switch
../test.c:1: error: bad value (cortex-a8) for -mtune= switch
['/usr/bin/gcc', '-march=armv7-a', '-mtune=cortex-a8', '-mfpu=neon', '-mfloat-abi=softfp', '-fomit-frame-pointer', '-Os', '-pipe', '-Idefault', '-I..', '-Idefault', '-I..', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Build failed: -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}'not found
----------------------------------------
Checking for header stdio.h
==>
#include <stdio.h>
int main(void) { return 0; }
<==
[1/1] Compiling test.c
cc1: error: unrecognized command line option "-mfpu=neon"
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
../test.c:1: error: bad value (armv7-a) for -march= switch
../test.c:1: error: bad value (cortex-a8) for -mtune= switch
['/usr/bin/gcc', '-march=armv7-a', '-mtune=cortex-a8', '-mfpu=neon', '-mfloat-abi=softfp', '-fomit-frame-pointer', '-Os', '-pipe', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Build failed: -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}'no
----------------------------------------
Checking simple C program
==>
#define BUILD_SYSTEM "Linux steven-laptop 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 Intel(R) Atom(TM) CPU N280 @ 1.66GHz GenuineIntel GNU/Linux"
/* #undef SYSTEM_UNAME_SYSNAME */
/* #undef SYSTEM_UNAME_MACHINE */
/* #undef SYSTEM_UNAME_RELEASE */
/* #undef SYSTEM_UNAME_VERSION */
int main(void) { printf("hello world"); return 0; }
<==
[1/2] Compiling test.c
cc1: error: unrecognized command line option "-mfpu=neon"
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
../test.c:1: error: bad value (armv7-a) for -march= switch
../test.c:1: error: bad value (cortex-a8) for -mtune= switch
['/usr/bin/gcc', '-march=armv7-a', '-mtune=cortex-a8', '-mfpu=neon', '-mfloat-abi=softfp', '-fomit-frame-pointer', '-Os', '-pipe', '-I/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5/lib/replace/../../buildtools/wafsamba', '-Idefault', '-I..', '-Idefault', '-I..', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Build failed: -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}'
|
build.log
Code: |
* Package: sys-libs/talloc-2.0.5
* Repository: gentoo
* Maintainer: patrick@gentoo.org samba@gentoo.org
* USE: arm elibc_glibc kernel_linux python userland_GNU
>>> Unpacking source...
>>> Unpacking talloc-2.0.5.tar.gz to /usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work
>>> Source unpacked in /usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work
>>> Preparing source in /usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5 ...
>>> Source prepared.
>>> Configuring source in /usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5 ...
CCFLAGS="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fomit-frame-pointer -Os -pipe" LINKFLAGS="-L/usr/armv7a-unknown-linux-gnueabi/lib -L/usr/armv7a-unknown-linux-gnueabi/usr/lib" "/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5/buildtools/bin/waf" --prefix=/usr --libdir=/usr/lib configure
Checking for program gcc or cc : /usr/bin/gcc
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for program git : /usr/bin/git
Check for -MD : no
Checking for program gdb : not found
Checking build system : Linux steven-laptop 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 Intel(R) Atom(TM) CPU N280 @ 1.66GHz GenuineIntel GNU/Linux
Checking for header sys/utsname.h : no
Checking uname sysname type : not found
Checking uname machine type : not found
Checking uname release type : not found
Checking uname version type : not found
Checking for header stdio.h : no
Checking simple C program : /usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5/lib/replace/../../buildtools/wafsamba/wscript:267: error: the configuration failed (see '/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5/bin/config.log')
* ERROR: sys-libs/talloc-2.0.5 failed:
* configure failed
*
* Call stack:
* ebuild.sh, line 56: Called src_configure
* environment, line 2420: Called waf-utils_src_configure
* environment, line 3005: Called die
* The specific snippet of code:
* CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" "${WAF_BINARY}" --prefix=/usr --libdir=/usr/$(get_libdir) $@ configure || die "configure failed"
*
* If you need support, post the output of 'emerge --info =sys-libs/talloc-2.0.5',
* the complete build log and the output of 'emerge -pqv =sys-libs/talloc-2.0.5'.
* The complete build log is located at '/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/temp/build.log'.
* The ebuild environment file is located at '/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/temp/environment'.
* S: '/usr/armv7a-unknown-linux-gnueabi/tmp/portage/sys-libs/talloc-2.0.5/work/talloc-2.0.5'
|
I had read somewhere that this can be fixed in the Make or configure files somewhere but I have no clue how to do it or how to fix this problem. |
|