Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crossdev always tries to emerge old 2.4 headers
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
ranma37
n00b
n00b


Joined: 21 Feb 2003
Posts: 30

PostPosted: Mon Apr 17, 2006 3:35 am    Post subject: crossdev always tries to emerge old 2.4 headers Reply with quote

I tried to use crossdev to build a toolchain for mips.
I specified gcc version, uclibc version, and kernel header version.
But crossdev always ignores my kernel header version.
Code:

$ crossdev -pv -t mipsel-pc-linux-uclibc --b 2.16.1 --g 3.4.5 --k 2.6.11 --l 0.9.28
--------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   mips
 * Target System:         mipsel-pc-linux-uclibc
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-2.16.1
 * gcc:                   gcc-3.4.5
 * headers:               mips-headers-2.6.11
 * libc:                  uclibc-0.9.28

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/mipsel-pc-linux-uclibc
 * PORTAGE_TMPDIR:        /var/tmp/cross/mipsel-pc-linux-uclibc
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  - 
 * Forcing the latest versions of binutils-config/gcc-config ...
  [ ok ]
 * Log: /var/log/portage/cross-mipsel-pc-linux-uclibc-binutils.log
 * Emerging cross-binutils ...

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

Calculating dependencies    ...done!
[ebuild  N    ] cross-mipsel-pc-linux-uclibc/binutils-2.16.1  -multislot -multitarget +nls -test -vanilla 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
  [ ok ]
 * Log: /var/log/portage/cross-mipsel-pc-linux-uclibc-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...

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

Calculating dependencies    ...done!
[ebuild  N    ] cross-mipsel-pc-linux-uclibc/gcc-3.4.5  (-altivec) -bootstrap -boundschecking -build -doc -fortran -gcj -gtk -hardened -ip28 (-multilib) -multislot (-n32) (-n64) +nls +nocxx -nopie -nossp -objc -vanilla 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
  [ ok ]
 * Log: /var/log/portage/cross-mipsel-pc-linux-uclibc-mips-headers.log
 * Emerging cross-mips-headers ...

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

Calculating dependencies    ...done!
[ebuild  N    ] cross-mipsel-pc-linux-uclibc/mips-headers-2.4.28-r1  -build 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
  [ ok ]
 * Log: /var/log/portage/cross-mipsel-pc-linux-uclibc-uclibc.log
 * Emerging cross-uclibc ...

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

Calculating dependencies    ...done!
[ebuild  N    ] cross-mipsel-pc-linux-uclibc/uclibc-0.9.28  -build -debug -hardened -iconv +ipv6 -minimal +nls -pregen -savedconfig -uclibc-compat -userlocales -wordexp 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
  [ ok ]
 * Log: /var/log/portage/cross-mipsel-pc-linux-uclibc-gcc-stage2.log
 * Emerging cross-gcc-stage2 ...

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

Calculating dependencies    ...done!
[ebuild  N    ] cross-mipsel-pc-linux-uclibc/gcc-3.4.5  (-altivec) -bootstrap -boundschecking -build -doc +fortran -gcj -gtk -hardened -ip28 (-multilib) -multislot (-n32) (-n64) +nls -nocxx -nopie -nossp -objc -vanilla 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
  [ ok ]
Back to top
View user's profile Send private message
a7thson
Apprentice
Apprentice


Joined: 08 Apr 2006
Posts: 176
Location: your pineal gland

PostPosted: Mon Apr 17, 2006 7:03 pm    Post subject: Reply with quote

Quote:
I tried to use crossdev to build a toolchain for mips.
I specified gcc version, uclibc version, and kernel header version.
But crossdev always ignores my kernel header version.


mips-heaaders are hard-masked, something like
Code:
echo "cross-mipsel-unknown-linux-uclibc/mips-headers * ~* -*" >> /etc/portage/package.keywords
]echo ">cross-mipsel-unknown-linux-uclibc/mips-headers-2.6" >> /etc/portage/package.unmask

may be required, though I thought crossdev inserted some of that for you. I think crossdev needs you to
specify a full build (i.e. 2.6.11) but I couldn't get it to work. In my case I inserted
Code:
echo "<cross-mipsel-unknown-linux-uclibc/mips-headers-2.5" >> /etc/portage/package.unmask

to get crossdev to emerge the latest 2.4.xx kernel. I don't know if this is specific to mips, but with arm arch I was
able to specify a kernel version without incident, whereas for mips it iseemed like it gnored my settings.
You might be able to force >=2.6.11 in a similar way if the unmask doesn't help.
_________________
i7-3610QM | E5-2670 | FX-8300
Back to top
View user's profile Send private message
ranma37
n00b
n00b


Joined: 21 Feb 2003
Posts: 30

PostPosted: Tue Apr 18, 2006 11:03 am    Post subject: Reply with quote

Thanks.
I noticed that crossdev didn't modify /etc/portage/package.unmask automatically.
So I put my desired package into it.
Code:
=cross-mipsel-pc-linux-uclibc/mips-headers-2.6.11-r1

Now it works. :D
Back to top
View user's profile Send private message
a7thson
Apprentice
Apprentice


Joined: 08 Apr 2006
Posts: 176
Location: your pineal gland

PostPosted: Tue Apr 18, 2006 1:43 pm    Post subject: Reply with quote

Quote:
Thanks.
I noticed that crossdev didn't modify /etc/portage/package.unmask automatically.
So I put my desired package into it.
Code:
=cross-mipsel-pc-linux-uclibc/mips-headers-2.6.11-r1

Now it works. :D


Cool! I'm still curious as to why mips-headers are hard masked and probably would be scared off by the answer :-)
Generally things aren't hard-masked without good reason.

Out of curiousity, what platform are you building for?

Btw, if you weren't aware, a nice feature of the 0.28 uClibc ebuild is the addition of the "savedconfig" USE flag, before which we had to settle for either a generic unoptimized toolchain or manual installs of uClibc. It's a *very* nice feature in fact, for making crossdev automation a lot more feasible for real applications. Just noticed savedconfig wasn't in your crossdev output, apologies if you already knew about the "savedconfig" option.
_________________
i7-3610QM | E5-2670 | FX-8300
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