Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
toolchain arm-unknown-linux-gnu linux headers error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
mattwood2000
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2005
Posts: 146

PostPosted: Tue Oct 17, 2006 4:04 pm    Post subject: toolchain arm-unknown-linux-gnu linux headers error Reply with quote

Hi guys, for some reason I cant seem to build my toolchain. I would like to use gcc 3.4.3, libc 2.3.5 binutils 2.15, and kernel 2.6.14. Crossdev is 0.9.17-r2. I run the following command
Code:

USE="-*" crossdev -v --binutils 2.15 --gcc 3.4.3 --libc 2.3.5 --kernel 2.6.14 --ex-gdb --target arm-unknown-linux-gnu


but it fails in linux headers. Any suggestions? Thanks, Matt.

Code:

.
.
.
 * Applying 2.6.8.1-strict-ansi-fix.patch (-p0+) ...
  [ ok ]
QA Notice: USE Flag 'crosscompile_opts_headers-only' not in IUSE for cross-arm-unknown-linux-gnu/linux-headers-2.6
.11-r6
 * make defconfig failed.
 * assuming you dont have any headers installed yet and continuing
  CHK     include/linux/version.h
  UPD     include/linux/version.h
>>> Source unpacked.
>>> Compiling source in /var/tmp/cross/arm-unknown-linux-gnu/portage/cross-arm-unknown-linux-gnu/linux-headers-2.6
.11-r6/work/linux-2.6.11 ...
QA Notice: USE Flag 'crosscompile_opts_headers-only' not in IUSE for cross-arm-unknown-linux-gnu/linux-headers-2.6
.11-r6
QA Notice: USE Flag 'crosscompile_opts_headers-only' not in IUSE for cross-arm-unknown-linux-gnu/linux-headers-2.6
.11-r6
make: arm-unknown-linux-gnu-gcc: Command not found
make: arm-unknown-linux-gnu-gcc: Command not found
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/sys/types.h:31,
                 from scripts/basic/fixdep.c:105:
/usr/include/bits/types.h:31:20: stddef.h: No such file or directory
In file included from scripts/basic/fixdep.c:107:
/usr/include/sys/mman.h:58: error: parse error before "size_t"
/usr/include/sys/mman.h:77: error: parse error before "size_t"
/usr/include/sys/mman.h:82: error: parse error before "size_t"
/usr/include/sys/mman.h:90: error: parse error before "size_t"
/usr/include/sys/mman.h:95: error: parse error before "size_t"
/usr/include/sys/mman.h:99: error: parse error before "size_t"
/usr/include/sys/mman.h:104: error: parse error before "size_t"
/usr/include/sys/mman.h:107: error: parse error before "size_t"
/usr/include/sys/mman.h:124: error: parse error before "size_t"
In file included from scripts/basic/fixdep.c:108:
/usr/include/unistd.h:325: error: parse error before "size_t"
/usr/include/unistd.h:331: error: parse error before "size_t"
/usr/include/unistd.h:469: error: parse error before "size_t"
In file included from scripts/basic/fixdep.c:108:
/usr/include/unistd.h:566: error: parse error before "confstr"
/usr/include/unistd.h:566: error: parse error before "size_t"
/usr/include/unistd.h:738: error: parse error before "size_t"
/usr/include/unistd.h:774: error: parse error before "size_t"
.
.
.
/usr/include/sys/socket.h: At top level:
/usr/include/sys/socket.h:136: error: parse error before "size_t"
/usr/include/sys/socket.h:143: error: parse error before "size_t"
/usr/include/sys/socket.h:150: error: parse error before "size_t"
/usr/include/sys/socket.h:161: error: parse error before "size_t"
In file included from scripts/basic/fixdep.c:115:
/usr/include/arpa/inet.h:78: error: parse error before "size_t"
/usr/include/arpa/inet.h:84: error: parse error before "size_t"
/usr/include/arpa/inet.h:90: error: parse error before "size_t"
scripts/basic/fixdep.c:220: error: parse error before "size_t"
scripts/basic/fixdep.c:221: warning: function declaration isn't a prototype
scripts/basic/fixdep.c: In function `parse_config_file':
scripts/basic/fixdep.c:222: error: `map' undeclared (first use in this function)
scripts/basic/fixdep.c:222: error: `len' undeclared (first use in this function)
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:292: error: parse error before "size_t"
scripts/basic/fixdep.c:293: warning: function declaration isn't a prototype
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:294: error: `map' undeclared (first use in this function)
scripts/basic/fixdep.c:295: error: `len' undeclared (first use in this function)
scripts/basic/fixdep.c: At top level:
/usr/include/gconv.h:176: warning: array '__data' assumed to have one element
/usr/include/bits/socket.h:243: warning: array '__cmsg_data' assumed to have one element
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

!!! ERROR: cross-arm-unknown-linux-gnu/linux-headers-2.6.11-r6 failed.
Call stack:
  ebuild.sh, line 1548:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1257:   Called kernel-2_src_compile
  kernel-2.eclass, line 1027:   Called compile_headers
  kernel-2.eclass, line 456:   Called die

!!! defconfig failed (defconfig)
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 434

PostPosted: Wed Oct 18, 2006 7:29 am    Post subject: Reply with quote

had a similar failure once with SH.
run gcc-config to select the ARM compiler, source /etc/profile and restart
crossdev.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum