Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159213 - sys-devel/crossdev-0.9.17-r2 does not install msp430 gcc
Summary: sys-devel/crossdev-0.9.17-r2 does not install msp430 gcc
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 159215 207161 (view as bug list)
Depends on:
Blocks: 208065
  Show dependency tree
 
Reported: 2006-12-27 07:58 UTC by Martin Gramatke
Modified: 2008-11-24 14:56 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mspgcc-3.2.3.ebuild (mspgcc-3.2.3.ebuild,2.04 KB, text/plain)
2008-01-29 15:32 UTC, Aurélien Francillon
Details
files/msp430-binutilsroot-fix.sh (msp430-binutilsroot-fix.sh,2.81 KB, text/plain)
2008-01-29 15:36 UTC, Aurélien Francillon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Gramatke 2006-12-27 07:58:32 UTC
crossdev with msp430 target stops after binutils installation. It does not install a libc or gcc.

# crossdev -pv -t msp430-unknown-linux-gnu
------------------------------------------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   x86
 * Target System:         msp430
 * Stage:                 0 (binutils)

 * binutils:              binutils-[latest]

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

These are the packages that would be merged, in order:

Calculating dependencies ... done!
[ebuild  N    ] cross-msp430/binutils-2.17  USE="nls -multislot -multitarget -test -vanilla" 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
 [2] /usr/portage/local/layman/sunrise
 [3] /usr/portage/local/layman/ecatmur
 [4] /usr/portage/local/layman/genstef
 [5] /usr/portage/local/layman/gentoo-de                                                                                                              [ ok ]
Comment 1 Martin Gramatke 2006-12-27 08:06:47 UTC
*** Bug 159215 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2006-12-27 08:16:03 UTC
that's because mainline gcc/libc does not support msp430

get those fixed and crossdev will support it out of the box no problem
Comment 3 J.C. Wren 2007-01-29 21:13:47 UTC
Is there any sort of time frame for when msp430 will become mainline?  Who handles  making in mainline?
Comment 4 SpanKY gentoo-dev 2007-01-29 22:28:27 UTC
no idea ... you'll have to ask the msp430 guys ... as for who those guys are, again i have no idea

i'd start at http://mspgcc.sf.net
Comment 5 SpanKY gentoo-dev 2008-01-23 16:51:02 UTC
*** Bug 207161 has been marked as a duplicate of this bug. ***
Comment 6 Ákos Maróy 2008-01-24 15:49:59 UTC
Aurelien Francillon's crossdev script builds the msp430 toolchain properly, as also documented on the TinyOS gentoo-wiki page here: http://gentoo-wiki.com/TinyOS#Step_3:_Install_native_compilers

his results might be merged into the main crossdev script, so that it works out of the box...
Comment 7 SpanKY gentoo-dev 2008-01-25 12:46:08 UTC
it isnt that easy ... crossdev itself does quite literally nothing

the important changes are in gcc itself and i'm not about to go searching through random external overlays to fold back in changes for a processor that no one cares enough about to get integrated themselves
Comment 8 Aurélien Francillon 2008-01-29 15:32:07 UTC
Created attachment 142125 [details]
mspgcc-3.2.3.ebuild

This is the ebuild for msp430 in my tinyos overlay, the really ugly part is :
bash "${FILESDIR}/msp430-binutilsroot-fix.sh" 
It creates links in /usr/msp430/bin such that gcc finds it's libs and 
binutils tools. This breaks with when built with sandbox as it creates the links in root dir...
Some parts if it are related to bug 147155 (i.e. ldscripts path not found by the compiler ).
Eventually some stolen patches from sys-devel/gcc-3.2.3-r4.ebuild are applied then the mspgccsf.net patch is eventually applied.
It's therefore not candidate for inclusion in portage as such but I 
welcome suggestions for improvement :) 

Aurelien
Comment 9 Aurélien Francillon 2008-01-29 15:36:15 UTC
Created attachment 142128 [details]
files/msp430-binutilsroot-fix.sh

This file is invoked by the ebuild in a desesperate attempt to 
make the compiler able to build something ...
Possible ways to do this cleanly are : 
- implement the functionality in binutils-config 
- do this in mspgcc ebuild itself (with proper ${D} )
- ? 

hints appreciated ...
Comment 10 Aurélien Francillon 2008-01-29 15:52:41 UTC
patches used by mspgcc-3.2.3.ebuild which are copied over from regular portage tree to mspgcc/files/3.2.3 :
/usr/portage/sys-devel/gcc/files/3.2.1/gcc31-loop-load-final-value.patch
/usr/portage/sys-devel/gcc/files/3.2.1/gcc32-strip-dotdot.patch
/usr/portage/sys-devel/gcc/files/3.2.1/gcc32-athlon-alignment.patch
/usr/portage/sys-devel/gcc/files/3.2.3/gcc32-c++-classfn-member-template.patch
/usr/portage/sys-devel/gcc/files/3.2.3/gcc32-mklibgcc-serialize-crtfiles.patch

if it goes to portage tree it should also probably need :
gcc323-gentoo-branding.patch ?

eventually the ebuild applies gcc323-msp430.patch (which i won't attach because it's > 500KB ) it can be found here : 
https://naurel.org/svn/tinyos-2-overlay/dev-embedded/mspgcc/files/3.2.3/gcc323-msp430.patch
note that the mspgcc.fs.net don't provide the patch nor source tarball only windows binary and cvs access ... 
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2008-01-29 20:57:16 UTC
*** Bug 208065 has been marked as a duplicate of this bug. ***