I've been using the AVR toolchain for programming Atmel microprocessors for quite some time. Recently I received a development kit with the MSP430-F2013 by Texas Instruments. I wanted to give the MSP430 toolchain a try.
Code: Select all
crossdev -s4 --ex-insight -t msp430Code: Select all
* Host Portage ARCH: x86
* Target Portage ARCH: *
* Target System: msp430
* Stage: 4 (C/C++ compiler)
* binutils: binutils-[latest]
* gcc: gcc-[latest]
* headers: linux-headers-[latest]
* libc: -[latest]
* Extra: insight: DO IT
* PORTDIR_OVERLAY: /usr/portage/local/layman/science
* PORT_LOGDIR: /var/log/portage
* PKGDIR: /usr/portage/packages/cross/msp430
* PORTAGE_TMPDIR: /var/tmp/cross/msp430
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~
--- Invalid atom in /etc/portage/package.keywords: cross-msp430/[latest]
* Forcing the latest versions of {binutils,gcc}-config/gnuconfig ... [ ok ]
* Log: /var/log/portage/cross-msp430-binutils.log
* Emerging cross-binutils ... [ ok ]
* Log: /var/log/portage/cross-msp430-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-msp430-info.log
* /var/log/portage/cross-msp430-linux-headers-quick.logCode: Select all
/var/log/portage/cross-msp430-info.log
-----------------------------------------------------------------------------------------------------------------------------------
^[[32;01m*^[[0m Host Portage ARCH: x86
^[[32;01m*^[[0m Target Portage ARCH: *
^[[32;01m*^[[0m Target System: msp430
^[[32;01m*^[[0m Stage: 4 (C/C++ compiler)
^[[32;01m*^[[0m binutils: binutils-[latest]
^[[32;01m*^[[0m gcc: gcc-[latest]
^[[32;01m*^[[0m headers: linux-headers-[latest]
^[[32;01m*^[[0m libc: -[latest]
^[[32;01m*^[[0m Extra: insight: DO IT
^[[32;01m*^[[0m PORTDIR_OVERLAY: /usr/portage/local/layman/science
^[[32;01m*^[[0m PORT_LOGDIR: /var/log/portage
^[[32;01m*^[[0m PKGDIR: /usr/portage/packages/cross/msp430
^[[32;01m*^[[0m PORTAGE_TMPDIR: /var/tmp/cross/msp430
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~
Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 04 Feb 2010 14:15:01 +0000
app-shells/bash: 4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python: 2.6.4
dev-util/cmake: 2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc: 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA skype-eula dlj-1.1 cadsoft"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-mCode: Select all
/var/log/portage/cross-msp430-linux-headers-quick.log
--- Invalid atom in /etc/portage/package.keywords: cross-msp430/[latest]
Calculating dependencies ^H^H... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) cross-msp430/linux-headers-2.6.30-r1 from science
--- Invalid atom in /etc/portage/package.keywords: cross-msp430/[latest]
* gentoo-headers-base-2.6.30.tar.lzma RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* gentoo-headers-2.6.30-2.tar.lzma RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* CPV: cross-msp430/linux-headers-2.6.30-r1
* REPO: science
* USE: elibc_glibc kernel_linux userland_GNU x86
* This version of linux-headers does not support unknown.
* Please merge the appropriate sources, in most cases
* (but not all) this will be called unknown-headers.
* ERROR: cross-msp430/linux-headers-2.6.30-r1 failed:
* Package unsupported for unknown
*
* Call stack:
* ebuild.sh, line 54: Called pkg_setup
* ebuild.sh, line 1347: Called kernel-2_pkg_setup
* kernel-2.eclass, line 1105: Called setup_headers
* kernel-2.eclass, line 718: Called die
* The specific snippet of code:
* die "Package unsupported for $(tc-arch)"
*
* If you need support, post the output of 'emerge --info =cross-msp430/linux-headers-2.6.30-r1',
* the complete build log and the output of 'emerge -pqv =cross-msp430/linux-headers-2.6.30-r1'.
* This ebuild is from a repository named 'science'
* The complete build log is located at '/var/tmp/cross/msp430/portage/cross-msp430/linux-headers-2.6.30-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/cross/msp430/portage/cross-msp430/linux-headers-2.6.30-r1/temp/die.env'.
* S: '/var/tmp/cross/msp430/portage/cross-msp430/linux-headers-2.6.30-r1/work/gentoo-headers-base-2.6.30'
So I guess the problem is
Code: Select all
* This version of linux-headers does not support unknown.
* Please merge the appropriate sources, in most cases
* (but not all) this will be called unknown-headers.Code: Select all
eix linux headers
* cross-msp430/linux-headers [1]
Available versions: (msp430) 2.4.33.3!b!s (~)2.4.36!b!s 2.6.23-r3!b!s 2.6.27-r2!b!s (~)2.6.28-r1!b!s (~)2.6.29!b!s (~)2.6.30-r1!b!s
Homepage: http://www.kernel.org/ http://www.gentoo.org/
Description: Linux system headers
* media-tv/linuxtv-dvb-headers
Available versions: 3.1 ~5
Homepage: http://www.linuxtv.org
Description: Virtual Package installing the Header files for DVB
[I] sys-kernel/linux-headers
Available versions: 2.4.33.3!b!s ~2.4.36!b!s 2.6.23-r3!b!s 2.6.27-r2!b!s ~2.6.28-r1!b!s ~2.6.29!b!s ~2.6.30-r1!b!s
Installed versions: 2.6.27-r2!b!s(05:03:05 PM 01/05/2009)
Homepage: http://www.kernel.org/ http://www.gentoo.org/
Description: Linux system headers
[1] "science" /usr/portage/local/layman/science
Found 3 matches.
PS I've also noticed that since there is no libc in this toolchain a invalid record "cross-msp430/[latest]" is added to /etc/portage/package.keywords.





