Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crossdev not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
m4rku5
n00b
n00b


Joined: 18 Apr 2006
Posts: 29

PostPosted: Mon Apr 24, 2006 4:14 pm    Post subject: crossdev not working Reply with quote

Hi, i cant get crossdev to work:
Code:
[ebuild   R   ] sys-devel/crossdev-0.9.15  0 kB


Code:
dorm ~ # crossdev -t i686-pc-linux-gnu
 * Sorry, but your host system needs to have binutils-config
 * in order to keep from screwing things up.
 * That means you must be running unstable versions of
 * both binutils and binutils-config.


Code:
dorm ~ # emerge -pv binutils binutils-config

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-devel/binutils-2.16.1-r2  -multislot (-multitarget) +nls -test -vanilla 0 kB
[ebuild   R   ] sys-devel/binutils-config-1.8-r7  0 kB

Total size of downloads: 0 kB


I have masked binutils and binutils-config for ~amd64 and still get the same result
and for some reason i cant enable the multitarget flag and have no clue why :(

I'd really appreciate help as i really need distcc to work here :/
Back to top
View user's profile Send private message
lostboy1
n00b
n00b


Joined: 03 Sep 2003
Posts: 12
Location: Chicago, IL

PostPosted: Mon Apr 24, 2006 5:08 pm    Post subject: Reply with quote

I just ran into the same problem here. I was trying to build a crossdev environment on my amd64 for hppa1.1 and the build failed in libc (couldn't find a patch file). I then decided to update my portage tree, and now I get this error:
Code:
homer ~ # crossdev --b 2.16.1 --g 3.3.6 --k 2.6.11-r2 --l 2.3.4.20040808-r1 -t hppa1.1-unknown-linux-gnu
 * Sorry, but your host system needs to have binutils-config
 * in order to keep from screwing things up.
 * That means you must be running unstable versions of
 * both binutils and binutils-config.

I too have updated my /etc/portage/package.keywords:
Code:
homer ~ # grep binutils /etc/portage/package.keywords
sys-devel/binutils ~amd64
sys-devel/binutils-config ~amd64
cross-hppa-unknown-linux-gnu/binutils hppa ~hppa
cross-hppa1.1-unknown-linux-gnu/binutils * ~* -*

and rebuilt both packages:
Code:
homer ~ # eix -I binutils
* sys-devel/binutils
     Available versions:  [P]2.14 [P]2.14.90.0.8-r3 [P]2.15 2.15.90.0.1.1-r5 *2.15.90.0.3-r5 *2.15.91.0.2-r2 2.15.92.0.2-r10 *2.15.94.0.2.2 2.16-r1 2.16.1 2.16.1-r1 2.16.1-r2 *2.16.90.0.3 *2.16.91.0.1 *2.16.91.0.2 *2.16.91.0.3 *2.16.91.0.4 *2.16.91.0.5 *2.16.91.0.6 *2.16.91.0.7
     Installed:           2.16.1-r2
     Homepage:            http://sources.redhat.com/binutils/
     Description:         Tools necessary to build programs

* sys-devel/binutils-config
     Available versions:  1.8-r6
     Installed:           1.8-r7
     Homepage:            http://www.gentoo.org/
     Description:         Utility to change the binutils version being used

What is weird is the available version for binutils-config is 1.8.r6, but I have 1.8.r7 installed. I'm not sure if this is a bug in eix...

And my binutils-config output:
Code:
homer ~ # binutils-config  -c
x86_64-pc-linux-gnu-2.16.1

homer ~ # binutils-config  -l
 [1] hppa1.1-unknown-linux-gnu-2.16.1 *

 [2] x86_64-pc-linux-gnu-2.16.1 *

Not sure what happened after the emerge --sync, maybe I have to unmask binutils...
_________________
AMD Athlon64 3400+ -- Asus K8V SE Deluxe
HP9000 819/K200
Back to top
View user's profile Send private message
m4rku5
n00b
n00b


Joined: 18 Apr 2006
Posts: 29

PostPosted: Mon Apr 24, 2006 6:33 pm    Post subject: Reply with quote

So i have to get
Quote:
cross-hppa-unknown-linux-gnu/binutils hppa ~hppa
cross-hppa1.1-unknown-linux-gnu/binutils * ~* -*

just for i586 / i686 (the cross environments im going to use)

would that be

cross-i586-pc-linux-gnu/binutils x86 ~x86
cross-i686-pc-linux-gnu/binutils x86 ~x86

to mask and install in my case ?
Back to top
View user's profile Send private message
lostboy1
n00b
n00b


Joined: 03 Sep 2003
Posts: 12
Location: Chicago, IL

PostPosted: Mon Apr 24, 2006 7:06 pm    Post subject: Reply with quote

I did not add the cross-hppa-unknown-linux-gnu/binutils lines, so I am assuming the first time I ran crossdev, it did it.

This, however, has nothing to do with the problem. After reviewing the crossdev and binutils-config scripts, it appears crossdev tries to determine the version of binutils, but binutils does not support this paramter:
Code:
/usr/sbin/crossdev
#####################
### sanity checks ###
if ! binutils-config -v &> /dev/null ; then
        eerror "Sorry, but your host system needs to have binutils-config"
        eerror "in order to keep from screwing things up."
        eerror "That means you must be running unstable versions of"
        eerror "both binutils and binutils-config."
        exit 1
fi


and the ouput from binutils-config:
Code:
homer ~ # binutils-config -v
 * binutils-config: Invalid switch!  Try '--help'.


So that seems to be the root cause, what changed, I'm not sure yet. I think I'm just going to hack the scripts to get this to work for now. If I have more time to look into it, I will file a bug report. Right now, I'm not sure if the bug goes against crossdev or binutils-config...
_________________
AMD Athlon64 3400+ -- Asus K8V SE Deluxe
HP9000 819/K200


Last edited by lostboy1 on Mon Apr 24, 2006 7:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
m4rku5
n00b
n00b


Joined: 18 Apr 2006
Posts: 29

PostPosted: Mon Apr 24, 2006 7:10 pm    Post subject: Reply with quote

Well i guess crossdev needs an update then to work with new binutils(-config) or they need to re-add the -v parameter
I guess you could just play around with crossdev to get a workaround - I'll try that later
Back to top
View user's profile Send private message
lostboy1
n00b
n00b


Joined: 03 Sep 2003
Posts: 12
Location: Chicago, IL

PostPosted: Mon Apr 24, 2006 7:37 pm    Post subject: Reply with quote

Here is the bug report
and a patch
_________________
AMD Athlon64 3400+ -- Asus K8V SE Deluxe
HP9000 819/K200
Back to top
View user's profile Send private message
m4rku5
n00b
n00b


Joined: 18 Apr 2006
Posts: 29

PostPosted: Mon Apr 24, 2006 10:00 pm    Post subject: Reply with quote

Well theres another problem now :(
It doesnt want to build the glibc for i686 :/

I used crossdev -t i686-pc-linux-gnu --k 2.6.15-r7 --g 3.4.5 --l 2.3.5-r2
(In order to match the versions i currently have on my AMD64 System)
I thought adding the kernel version might help it but it doesnt

I'm tryin to run crossdev again so i guess i can post the errorlog in some minutes

*EDIT*
Code:
dorm ~ # cat /var/log/portage/cross-i686-pc-linux-gnu-glibc.log
Calculating dependencies   * Warning! Gentoo's GLIBC with NPTL enabled now behaves like the
 * glibc from almost every other distribution out there. This means
 * that glibc is compiled -twice-, once with linuxthreads and once
 * with nptl. The NPTL version is installed to lib/tls and is still
 * used by default. If you do not need nor want the linuxthreads
 * fallback, you can disable this behavior by adding nptlonly to
 * USE to save yourself some compile time.
>>> Unpacking source...

 * Checking gcc for __thread support ... yes
 * Checking kernel version (>=2.6.6) ... yes
 * Checking linux-headers version (>=2.6.6) ... no

 * You need linux-headers of at least version 2.6.6
 * for NPTL support!

!!! ERROR: cross-i686-pc-linux-gnu/glibc-2.3.5-r2 failed.
!!! Function check_nptl_support, Line 733, Exitcode 0
!!! linux-headers version too low!
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
m4rku5
n00b
n00b


Joined: 18 Apr 2006
Posts: 29

PostPosted: Mon Apr 24, 2006 10:51 pm    Post subject: Reply with quote

looks like
http://forums.gentoo.org/viewtopic-t-452498-highlight-crossdev+glibc.html
is the solution to that problem :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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