Summary: | cross-msp430/gcc target missing libcrt0 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Petre Rodan <pr.gentoo-acct> |
Component: | [OLD] Development | Assignee: | Tim Harder <radhermit> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | andy |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | http://packages.debian.org/sid/i386/gcc-msp430/download | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Petre Rodan
2012-09-17 18:04:09 UTC
you might have to update your crossdev to the latest and rebuild This is the reason msp430-gcc-4.7* doesn't have any keywords yet so you must be allowing it in package.keywords or package.accept_keywords explicitly. For some reason which I haven't figured out yet, the crossdev build process doesn't build those libs using the newer patches against gcc-4.7*. Note that the msp430 toolchain doesn't have any stable keywords so if you just use `crossdev -t msp430` everything should work properly since it will build the latest working msp430-gcc-4.6* instead. thanks Tim, indeed skipping '-S' emerges a working compiler. somewhat counter-intuitive :) but you might want to upload gcc-4.6.3.tar.bz2 to the mirrors or include the upstream SRC_URI in the toolchain eclass. (In reply to comment #3) > indeed skipping '-S' emerges a working compiler. somewhat counter-intuitive > :) This should probably be fixed in crossdev so when -S is used without any stable versions it doesn't select ebuilds without KEYWORDS. I'll try to find time to produce a patch. > but you might want to upload gcc-4.6.3.tar.bz2 to the mirrors or include the > upstream SRC_URI in the toolchain eclass. I don't know what you mean since gcc-4.6.3.tar.bz2 is on the distfiles mirrors and the upstream url is in SRC_URI for the toolchain eclass. my crossdev compilation of gcc-stage1 stopped at first due to not being able to find gcc-4.6.3.tar.bz2 (sorry I lost the logs). I copied that file from the gnu.org ftp and all went well from that point on. thanks for the help. I can confirm this bug. I need the msp430-gcc 4.7 toolchain for development with large memory model (-mmemory-model=huge). manual compilation builds the startup code fine (libcrt0.a, crt0ivtbl16.o, etc), but inside the emerge enviroment it's just doesn't build: --snip buildlog-- ... # Early copyback; see "all" above for the rationale. The # early copy is necessary so that the gcc -B options find # the right startup files when linking shared libgcc. /bin/sh /tmp/portage/cross-msp430/msp430-gcc-4.7.0_p20120911/work/gcc-4.7.0/libgcc/../mkinstalldirs ../.././gcc parts="libcrt0.a libcrt0dwdt.a crt0ivtbl16.o crt0ivtbl32.o crt0ivtbl64.o"; \ for file in $parts; do \ rm -f ../.././gcc/$file; \ /usr/bin/install -c -m 644 $file ../.././gcc/; \ case $file in \ *.a) \ /usr/libexec/gcc/msp430/ranlib ../.././gcc/$file ;; \ esac; \ done /usr/bin/install: cannot stat ‘libcrt0.a’: No such file or directory /usr/libexec/gcc/msp430/ranlib: '../.././gcc/libcrt0.a': No such file /usr/bin/install: cannot stat ‘libcrt0dwdt.a’: No such file or directory /usr/libexec/gcc/msp430/ranlib: '../.././gcc/libcrt0dwdt.a': No such file /usr/bin/install: cannot stat ‘crt0ivtbl16.o’: No such file or directory /usr/bin/install: cannot stat ‘crt0ivtbl32.o’: No such file or directory /usr/bin/install: cannot stat ‘crt0ivtbl64.o’: No such file or directory ... --snip-- strange thing about this: the makefile for libgcc requires EXTRA_PARTS (libcrt0.a libcrt0dwdt.a crt0ivtbl16.o crt0ivtbl32.o crt0ivtbl64.o) to be build as a dependency for the copyback part o_O -- /tmp/portage/cross-msp430/msp430-gcc-4.7.0_p20120911/work/build/msp430/libgcc/Makefile -- # Build extra startfiles in the libgcc directory. .PHONY: libgcc-extra-parts libgcc-extra-parts: $(EXTRA_PARTS) # Early copyback; see "all" above for the rationale. The # early copy is necessary so that the gcc -B options find # the right startup files when linking shared libgcc. $(mkinstalldirs) $(gcc_objdir)$(MULTISUBDIR) parts="$(EXTRA_PARTS)"; \ .... -- snip -- Closing as obsolete since all dev-embedded/msp430* packages are now masked. Use >=sys-devel/crossdev-20141030 to build an msp430 toolchain using the standard binutils/gcc/newlib/gdb packages. |