Summary: | cross-sparc-unknown-linux-gnu/gcc fails to compile (ld missing crti.o) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | emerald <dirk> |
Component: | New packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 404errorqc, alex.buell, simon.thabuteau |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
emerald
2008-07-27 21:49:11 UTC
crti.o is provided by the C library ... post `emerge --info` like normal and post the version information for all your cross packages if gcc still fails, use crossdev: crossdev -C sparc crossdev sparc I have this very same problem (after getting rid of the problems in bug 250630). $ emerge --info Portage 2.1.6.1 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r0, 2.6.27.5 x86_64) ================================================================= System uname: Linux-2.6.27.5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5600+-with-glibc2.2.5 Timestamp of tree: Sat, 20 Dec 2008 12:20:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.5.2-r8, 3.0 dev-util/cmake: 2.6.2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.0 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=k8 -pipe -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="buildsyspkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.tiscali.nl/" INSTALL_MASK="/etc/udev/rules.d/75-persistent-net-generator.rules" LC_ALL="en_US.utf8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude lost+found" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync5.de.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 acl alsa amd64 apache2 audacious audiofile bash-completion berkdb bzip2 calendar caps cdparanoia cdr cli cracklib crypt cups dio dri dts dvd dvdr dvdread encode ethereal exif ffmpeg fftw firefox fortran ftp gdbm glitz gpm gtk iconv imlib2 isdnlog jpeg kdeenablefinal ladcca lame lcms lua mad matroska midi mmap mmx mng moznocompose moznoirc moznomail mozsvg mp3 mpeg mplayer mudflap multilib mysqli ncurses nls nptl nptlonly offensive ogg opengl openmp pam pcre pdflib perl png ppds pppd python qt4 readline recode reflection session sharedmem sockets sox spl srt sse sse2 ssl svg sysfs szip tcpd tetex theora unicode usb v4l v4l2 vcd vim vim-pager vlm vorbis wmf xcb xcomposite xorg xosd xpm xscreensaver xvid zlib" ALSA_CARDS="emu10k1 ice1724" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa nvidia nv" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS Package versions are all the latest ~sparc. multilib code in glibc is all f-ed up for cross-compiling Since it's looking in the wrong directories (or failed to provide an appropriate symlink) i created a symlink which helped at least compiling: search dirs: -B/var/tmp/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.1-r1/work/build/./gcc/ -B/usr/sparc-unknown-linux-gnu/bin/ -B/usr/sparc-unknown-linux-gnu/lib/ missing symlink from /usr/sparc-unknown-linux-gnu/lib to .../lib32 (or .../lib64) so a correct dir would be available the sparc binutils are not targeting multilib while glibc is, so creating a symlink named "lib" and pointing it to like "lib32" should be OK. ln -s lib32 /usr/sparc-unknown-linux-gnu/lib ln -s lib32 /usr/sparc-unknown-linux-gnu/usr/lib This fixes crossdev (and cross-compiling) for me, thanks a bunch! Just found this bug report, which may be related to my problem. Crossdev seems unable to build the C++ sparc cross compiler on AMD64 linux platforms (fortunately the C sparc cross compiler builds just fine). crossdev -S -t sparc always fails on GCC stage2 build. Any ideas? *** Bug 272642 has been marked as a duplicate of this bug. *** Bug still present with sys-devel/crossdev-20100620 crossdev-20110310 + glibc-2.13 + gcc-4.5.2 work for me now |