Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358585 - cross-x86_64-pc-linux-gnu/gcc-4.5.2 on x86 - /usr/libexec/gcc/x86_64-pc-linux-gnu/ld: cannot find crt1.o: No such file or directory
Summary: cross-x86_64-pc-linux-gnu/gcc-4.5.2 on x86 - /usr/libexec/gcc/x86_64-pc-linux...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-12 15:01 UTC by Matěj Laitl
Modified: 2011-03-19 13:31 UTC (History)
0 users

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


Attachments
cross-x86_64-pc-linux-gnu-info.log (cross-x86_64-pc-linux-gnu-info.log,14.52 KB, text/plain)
2011-03-12 15:02 UTC, Matěj Laitl
Details
cross-x86_64-pc-linux-gnu-gcc-stage1.log (cross-x86_64-pc-linux-gnu-gcc-stage1.log,920.21 KB, text/plain)
2011-03-12 15:03 UTC, Matěj Laitl
Details
gcc-4.5.2/work/build/x86_64-pc-linux-gnu/libgomp/config.log (config.log,14.55 KB, text/plain)
2011-03-12 15:08 UTC, Matěj Laitl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matěj Laitl 2011-03-12 15:01:09 UTC
To be able to build amd64 kernel on x86 userland, I've used crossdev to compile an amd64-targeted gcc for me:

# crossdev --stage1 -P -vtu x86_64-pc-linux-gnu

 * crossdev version:      20101011
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   amd64
 * Target System:         x86_64-pc-linux-gnu
 * Stage:                 1 (C compiler only)

cross-binutils, cross-linux-headers-quick, cross-glibc-headers merged fine, butcross-gcc-stage1 failed:

  * Emerging cross-gcc-stage1 ...

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

Calculating dependencies... done!
[ebuild  N    ~] cross-x86_64-pc-linux-gnu/gcc-4.5.2  USE="nls nocxx nptl (-altivec) -bootstrap -build -doc (-fixed-point) -fortran -gcj -graphite -gtk -hardened -libffi -lto -mudflap (-multilib) -multislot (-n32) (-n64) -nopie -nossp -objc -objc++ -objc-gc -openmp -test -vanilla" 0 kB [1]

Total: 1 package (1 new), Size of downloads: 0 kB

[.. tenths of pages of successful compiling ..]
...
checking for ANSI C header files... 
configure: error: in `/var/tmp/portage/cross-x86_64-pc-linux-gnu/gcc-4.5.2/work/build/x86_64-pc-linux-gnu/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.
yes
make[1]: *** [configure-target-libgomp] Error 1
make[1]: *** Waiting for unfinished jobs....
checking for sys/types.h... yes
...

checking for library containing strerror... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libiberty] Error 1
...

gcc 4.4.5 also fails with the same error. When --without-headers is passed to crossdev, gcc fails on missing fenv.h (both 4.4.5 and 4.5.2). Strange thing is that tells that it fails in libgomp, which seems to be a GNU OpenMP implementation - openmp is disabled in USE.

Reproducible: Always

Steps to Reproduce:
0. be on an x86 system
1. crossdev --stage1 -P -vtu x86_64-pc-linux-gnu

Actual Results:  
Emerging cross-x86_64-pc-linux-gnu/gcc-{4.4.5,4.5.2} fails.


This seems to be unrelated to other open cross-gcc bugs, as neither arm or uclibc are involved. Any ideas?
Comment 1 Matěj Laitl 2011-03-12 15:02:19 UTC
Created attachment 265655 [details]
cross-x86_64-pc-linux-gnu-info.log
Comment 2 Matěj Laitl 2011-03-12 15:03:07 UTC
Created attachment 265657 [details]
cross-x86_64-pc-linux-gnu-gcc-stage1.log
Comment 3 Matěj Laitl 2011-03-12 15:08:54 UTC
Created attachment 265659 [details]
gcc-4.5.2/work/build/x86_64-pc-linux-gnu/libgomp/config.log

This seems to be the mentioned config.log
Comment 4 Matěj Laitl 2011-03-12 17:28:46 UTC
Hmm, I was able to fix the compilation by forcing toolchain.eclass to emit --{enable,disable}-libgomp always; the code lies there:

# grep -B 9 -A 2 libgomp /usr/portage/eclass/toolchain.eclass

Not sure however if it's toolchain or gcc bug - gcc maybe shouldn't try to build openmp in stage1.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-15 18:51:19 UTC
Please paste your `emerge --info' output in a comment.
Comment 6 Matěj Laitl 2011-03-16 13:55:26 UTC
(In reply to comment #5)
> Please paste your `emerge --info' output in a comment.

esprimo ~ # emerge --info cross-x86_64-pc-linux-gnu/gcc
Portage 2.2.0_alpha27 (default/linux/x86/10.0/desktop/kde, gcc-4.4.5, glibc-2.11.3-r0, 2.6.38-rc8-00065-g9179746 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.38-rc8-00065-g9179746-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 15 Mar 2011 16:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo strohel kde proaudio
Installed sets: 
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula AdobeFlash-9.0.31.0 AdobeFlash-10 AdobeFlash-10.1 cadsoft googleearth"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"                                                                                                                
FFLAGS=""                                                                                                                                                    
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://mirror.switch.ch/ftp/mirror/gentoo/ "                                                                       
LANG="cs_CZ.utf8"
LC_ALL="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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 /usr/local/layman/kde /usr/local/layman/pro-audio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib accessibility acct acl acpi addressbook aio akonadi alsa amarok amr apache2 archive async bash-completion berkdb bluetooth branding bzip2 cairo caps cdaudio cdda cddb cdr cgi cli clucene consolekit cracklib crypt css ctype cups cupsddk curl cxx dbus declarative device-mapper dga dhcp dhcpcd dia dri dts dvd dvdr emboss enca encode exif faac faad fam fastcgi fat fbcon fbcondecor ffmpeg fftw filter firefox flac fontconfig ftp gd gdbm geoip gif gimp git glib gnutls gpg gpm gtk hfs history htmlhandbook ical iconv id3tag inotify ipod ipw4965 irc jabber jack java java6 jingle jpeg kde kdehiddenvisibility kipi kpathsea lame lapack laptop lastfm latex lcms libass libcaca libnl libsamplerate libsysfs lm_sensors lzma lzo mad maps matroska mikmod mjpeg mmap mmx mmxext mng modules mp3 mp4 mpeg msn mudflap musepack music musicbrainz mysql mysqli ncurses network network-cron networkmanager nls nocd nokia nowlistening npp nptl nptlonly nsplugin ntfs offensive ogg okteta opengl openmp opensync optimized-qmake oscar pam pam_ssh pango pch pcre pdf perl phonon php plasma png policykit portaudio posix pppd private-headers projectm pth python python3 qt3support qt4 qthelp quicktime radius rar rdesktop rdp readline redeyes reiserfs rss rtc rtsp samba scanner schroedinger sdl secure-delete semantic-desktop sesame2 session skins skype slang smp sms sndfile sounds spell sql sqlite srt sse sse2 sse3 ssl ssse3 startup-notification stream subversion svg sysfs syslog taglib theora threads tiff tk truetype udev unicode upnp usb video videos visualization vnc vorbis webinterface webkit wifi win32codecs wlm x264 x86 xcb xcomposite xinerama xml xorg xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" NETBEANS_MODULES="apisupport enterprise harness ide java mobility nb profiler websvccommon php" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i965 intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

cross-x86_64-pc-linux-gnu/gcc-4.5.2 was built with the following:
USE="nls nocxx nptl (-altivec) -bootstrap -build -doc (-fixed-point) -fortran -gcj -graphite -gtk -hardened -libffi -lto -mudflap (-multilib) -multislot (-n32) (-n64) -nopie -nossp -objc -objc++ -objc-gc -openmp -test -vanilla"                                                                                       
CFLAGS="-O2 -pipe"
CXXFLAGS=""
Comment 7 SpanKY gentoo-dev 2011-03-16 19:15:18 UTC
probably already fixed with crossdev-20110310
Comment 8 Matěj Laitl 2011-03-19 13:31:43 UTC
(In reply to comment #7)
> probably already fixed with crossdev-20110310

Oh, yes, already fixed, thanks! I should have checked it before.