Ticket #122 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

Error: crossdev --binutils 2.18-r4 --target armv4tl-softfloat-linux-gnueabi

Reported by: zelegolas Owned by:
Priority: major Milestone: unsorted
Component: target Keywords:
Cc: zelegolas@…

Description

When I run this command i have this error:

# crossdev --binutils 2.18-r4 --target armv4tl-softfloat-linux-gnueabi
-------------------------------------------------------------------------------------------------------------------------------------------
* Host Portage ARCH:     amd64
* Target Portage ARCH:   arm
* Target System:         armv4tl-softfloat-linux-gnueabi
* Stage:                 4 (C/C++ compiler)

* binutils:              binutils-2.18-r4
* gcc:                   gcc-[latest]
* headers:               linux-headers-[latest]
* libc:                  glibc-[latest]

* PORTDIR_OVERLAY:       /usr/local/portage/layman/openmoko/trunk/openmoko-target
* PORT_LOGDIR:           /var/log/portage
* PKGDIR:                /usr/portage/packages/cross/armv4tl-softfloat-linux-gnueabi
* PORTAGE_TMPDIR:        /var/tmp/cross/armv4tl-softfloat-linux-gnueabi
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -
* Using sys-devel/gcc from /usr/local/portage/layman/openmoko/trunk/openmoko-target instead of /usr/portage
* Forcing the latest versions of {binutils,gcc}-config/gnuconfig...                                                                  [ ok ]
* Log: /var/log/portage/cross-armv4tl-softfloat-linux-gnueabi-binutils.log
* Emerging cross-binutils...                                                                                                         [ ok ]
* Log: /var/log/portage/cross-armv4tl-softfloat-linux-gnueabi-linux-headers-quick.log
* Emerging cross-linux-headers-quick...

* linux-headers failed :(
* If you file a bug, please attach the following logfiles:
* /var/log/portage/cross-armv4tl-softfloat-linux-gnueabi-info.log
* /var/log/portage/cross-armv4tl-softfloat-linux-gnueabi-linux-headers-quick.log

I followed this guide, step 6: Cross-compilation with portage

Attachments

cross-armv4tl-softfloat-linux-gnueabi-info.log (13.2 kB) - added by zelegolas 3 years ago.
/var/log/portage/cross-armv4tl-softfloat-linux-gnueabi-info.log
cross-armv4tl-softfloat-linux-gnueabi-linux-headers-quick.log (6.8 kB) - added by zelegolas 3 years ago.
/var/log/portage/cross-armv4tl-softfloat-linux-gnueabi-linux-headers-quick.log

Change History

Changed 3 years ago by zelegolas

/var/log/portage/cross-armv4tl-softfloat-linux-gnueabi-info.log

Changed 3 years ago by zelegolas

/var/log/portage/cross-armv4tl-softfloat-linux-gnueabi-linux-headers-quick.log

  Changed 3 years ago by zelegolas

  • cc zelegolas@… added

  Changed 3 years ago by sleipnir

Please ask upstream (means #gentoo-embedded, forums.gentoo.org or bugs.gentoo.org) as this is not a bug of the overlay. However, you could try to execute e.g.

crossdev --kernel 2.8.28-r1 --binutils 2.18-r4 --gcc 4.3.2-r3 --libc 2.7-r2 --target armv4tl-softfloat-linux-gnueabi

OR

crossdev --kernel 2.8.28-r1 --binutils 2.19.1-r1 --gcc 4.3.3-r1 --libc 2.8_p20080602-r1 --target armv4tl-softfloat-linux-gnueabi

This config works for me

  Changed 3 years ago by zelegolas

I tried both same error

  Changed 3 years ago by zelegolas

I found a solution (i don't know if it's the best one).

I just execute crossdev without binutils option like this

# crossdev --target armv4tl-softfloat-linux-gnueabi

Now i have another error with libxml2:

 armv4tl-softfloat-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.5 -I../include -I../include -I../python -Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/ -I/usr/armv4tl-softfloat-linux-gnueabi/include/ -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT libxml.lo -MD -MP -MF .deps/libxml.Tpo -c libxml.c  -fPIC -DPIC -o .libs/libxml.o                       
In file included from /usr/include/python2.5/Python.h:62,                                                                                  
                 from libxml.c:14:                                                                                                         
/usr/include/python2.5/pyport.h:761:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."             
In file included from /usr/include/python2.5/Python.h:89,                                                                                  
                 from libxml.c:14:                                                                                                         
/usr/include/python2.5/intobject.h:44: warning: ISO C90 does not support 'long long'                                                       
In file included from /usr/include/python2.5/Python.h:91,                                                                                  
                 from libxml.c:14:                                                                                                         
/usr/include/python2.5/longobject.h:43: warning: ISO C90 does not support 'long long'                                                      
/usr/include/python2.5/longobject.h:44: warning: ISO C90 does not support 'long long'                                                      
/usr/include/python2.5/longobject.h:45: warning: ISO C90 does not support 'long long'                                                      
/usr/include/python2.5/longobject.h:46: warning: ISO C90 does not support 'long long'                                                      
/usr/include/python2.5/longobject.h:47: warning: ISO C90 does not support 'long long'                                                      
libxml.c: In function 'libxml_xmlValidCtxtGenericErrorFuncHandler':                                                                        
libxml.c:1748: warning: unused parameter 'severity'                                                                                        
libxml.c: In function 'libxml_xmlValidCtxtGenericWarningFuncHandler':                                                                      
libxml.c:1775: warning: unused parameter 'severity'                                                                                        
libxml.c: At top level:                                                                                                                    
libxml.c:2676: warning: no previous prototype for 'libxml_xmlNodeRemoveNsDef'                                                              
libxml.c: In function 'libxml_serializeNode':                                                                                              
libxml.c:2764: warning: unused variable 'len'

I don't know if it's related or not

follow-up: ↓ 6   Changed 3 years ago by sleipnir

  • status changed from new to closed
  • resolution set to invalid

Did you follow the guide on the wiki? It seems like you didn't install the overlay python version to your host! If this doesn't solve your problem, please open a new ticket!

in reply to: ↑ 5   Changed 3 years ago by zelegolas

Replying to sleipnir:

Did you follow the guide on the wiki? It seems like you didn't install the overlay python version to your host! If this doesn't solve your problem, please open a new ticket!

Yes i follow the guide on the wiki and yes i install the overlay python. Right now i have an other error with gettext and libtool (message "/usr/libexec/gcc/armv4tl-softfloat-linux-gnueabi/ld: skipping incompatible /usr/lib/libc.so when searching for -lc"). I continue to investigate this issu before to open a new ticket.

If you want to close this ticket as you wish.

Note: See TracTickets for help on using tickets.