Created attachment 405226 [details] x86_64-pc-linux-gnu-emerge --info sgabios Hi, Steps to reproduce: 1) Generate a toolchain for x86_64(lets say x86_64-pc-linux-gnu) using crossdev 2) x86_64-pc-linux-gnu-emerge sgabios. Build fails with following error: make -j5 CC=x86_64-pc-linux-gnu-gcc LD=x86_64-pc-linux-gnu-ld AR=x86_64-pc-linux-gnu-ar OBJCOPY=x86_64-pc-linux-gnu-objcopy rm -f .depend touch sgabios.S x86_64-pc-linux-gnu-gcc -Wall -O2 -o csum8 csum8.c x86_64-pc-linux-gnu-gcc -E -M -Wall -Os -m32 -nostdlib sgabios.S >.tmpdepend && mv .tmpdepend .depend x86_64-pc-linux-gnu-gcc -Wall -Os -m32 -nostdlib -DBUILD_DATE="\"Tue 16 Jun 10:57:37 UTC 2015\"" -DBUILD_SHORT_DATE="\"06/16/15\"" -DBUILD_HOST="\"CNU3169ZT6\"" -DBUILD_USER="\"portage\"" -c -o sgabios.o sgabios.S csum8.c: In function ‘main’: csum8.c:60:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(fd, &csum, 1); ^ x86_64-pc-linux-gnu-ld -T rom16.ld -nostdlib sgabios.o -o sgabios.elf x86_64-pc-linux-gnu-objcopy -O binary sgabios.elf sgabios.bin ./csum8 sgabios.bin make: ./csum8: Command not found Makefile:51: recipe for target 'sgabios.bin' failed make: *** [sgabios.bin] Error 127 * ERROR: sys-firmware/sgabios-0.1_pre8::gentoo failed (compile phase): * emake failed A suggest to fix it is to add a patch found in the following link in the sgabios bugs: https://code.google.com/p/sgabios/issues/detail?id=4 Thanks!
Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.9.2, unavailable, 3.18.7 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.18.7-x86_64-Intel-R-_Core-TM-_i5-3340M_CPU_@_2.70GHz-with-gentoo-2.2 KiB Mem: 8047596 total, 4059136 free KiB Swap: 8191996 total, 8191996 free Timestamp of repository gentoo: Tue, 16 Jun 2015 10:30:01 +0000 sh bash 4.3_p33-r2 ld GNU ld (Gentoo 2.25 p1.2) 2.25 distcc 3.1 i686-pc-linux-gnu [disabled] Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 jpekkari-crossdev location: /usr/local/portage-crossdev masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=core-avx-i -mtune=core-avx-i -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=core-avx-i -mtune=core-avx-i -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo noman parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/x86_64-pc-linux-gnu/packages/" PORTAGE_CONFIGROOT="/usr/x86_64-pc-linux-gnu/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/usr/x86_64-pc-linux-gnu/tmp/" USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pcre readline session sse sse2 ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Any help needed with this?
should be all set now in the tree; thanks for the report! Commit message: Use BUILD_CC when compiling the csum8 build-only tool http://sources.gentoo.org/sys-firmware/sgabios/files/sgabios-0.1_pre8-build-cc.patch?rev=1.1 http://sources.gentoo.org/sys-firmware/sgabios/sgabios-0.1_pre8.ebuild?r1=1.6&r2=1.7
Work like a charm! Thanks!