Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205638 - dev-lang/gpc fails to emerge on x86-64
Summary: dev-lang/gpc fails to emerge on x86-64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: George Shapovalov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-13 15:35 UTC by M. Edward Borasky
Modified: 2008-12-21 02:21 UTC (History)
3 users (show)

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


Attachments
emerge --info from my system (info,3.73 KB, text/plain)
2008-01-13 15:36 UTC, M. Edward Borasky
Details
See comment. (nil,166 bytes, text/plain)
2008-12-04 01:43 UTC, Andrew
Details

Note You need to log in before you can comment on or make changes to this bug.
Description M. Edward Borasky 2008-01-13 15:35:46 UTC
I haven't tried this recently on a 32-bit system, but on the x86-64 it dies, and the error message looks like something to do with 64-bit architectures:

/libgcc_s.so.1 && ln -s 32/libgcc_s.so.1 libgcc_s_32.so
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `/usr/lib/../lib/crti.o' is incompatible with i386 output
/usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `/usr/lib/../lib/crtn.o' is incompatible with i386 output
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s_32.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-lang/gpc-20051104/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-lang/gpc-20051104/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-lang/gpc-20051104/work/build/gcc'
make: *** [bootstrap] Error 2
 * 
 * ERROR: dev-lang/gpc-20051104 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called src_compile
 *             environment, line 2662:  Called die
 * The specific snippet of code:
 *       emake -j1 LIBPATH="${LIBPATH}" bootstrap || diefunc "$FUNCNAME" "$LINENO" "$?" "make failed"
 *  The die message:
 *   make failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-lang/gpc-20051104/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/gpc-20051104/temp/environment'.
 * 

 * Messages for package dev-lang/gpc-20051104:

 * 
 * ERROR: dev-lang/gpc-20051104 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called src_compile
 *             environment, line 2662:  Called die
 * The specific snippet of code:
 *       emake -j1 LIBPATH="${LIBPATH}" bootstrap || diefunc "$FUNCNAME" "$LINENO" "$?" "make failed"
 *  The die message:
 *   make failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-lang/gpc-20051104/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/gpc-20051104/temp/environment'.
 * 
DreamScape ~ # 

"emerge --info" coming!
Comment 1 M. Edward Borasky 2008-01-13 15:36:43 UTC
Created attachment 140867 [details]
emerge --info from my system
Comment 2 Evil Compile Person 2008-01-16 19:42:06 UTC
Bah :)
Comment 3 Jesús Guerrero Botella (RETIRED) gentoo-dev 2008-01-26 17:24:55 UTC
It fails for me as well.

./xgcc -B./ -B/usr/x86_64-pc-linux-gnu/bin/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -L/var/tmp/portage/dev-lang/gpc-20051104/work/build/gcc/../ld -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/32/libgcc.map -o 32/libgcc_s.so.1.tmp  -m32  libgcc/32/_muldi3.o libgcc/32/_negdi2.o libgcc/32/_lshrdi3.o libgcc/32/_ashldi3.o libgcc/32/_ashrdi3.o libgcc/32/_cmpdi2.o libgcc/32/_ucmpdi2.o libgcc/32/_floatdidf.o libgcc/32/_floatdisf.o libgcc/32/_fixunsdfsi.o libgcc/32/_fixunssfsi.o libgcc/32/_fixunsdfdi.o libgcc/32/_fixdfdi.o libgcc/32/_fixunssfdi.o libgcc/32/_fixsfdi.o libgcc/32/_fixxfdi.o libgcc/32/_fixunsxfdi.o libgcc/32/_floatdixf.o libgcc/32/_fixunsxfsi.o libgcc/32/_fixtfdi.o libgcc/32/_fixunstfdi.o libgcc/32/_floatditf.o libgcc/32/_clear_cache.o libgcc/32/_enable_execute_stack.o libgcc/32/_trampoline.o libgcc/32/__main.o libgcc/32/_absvsi2.o libgcc/32/_absvdi2.o libgcc/32/_addvsi3.o libgcc/32/_addvdi3.o libgcc/32/_subvsi3.o libgcc/32/_subvdi3.o libgcc/32/_mulvsi3.o libgcc/32/_mulvdi3.o libgcc/32/_negvsi2.o libgcc/32/_negvdi2.o libgcc/32/_ctors.o libgcc/32/_ffssi2.o libgcc/32/_ffsdi2.o libgcc/32/_clz.o libgcc/32/_clzsi2.o libgcc/32/_clzdi2.o libgcc/32/_ctzsi2.o libgcc/32/_ctzdi2.o libgcc/32/_popcount_tab.o libgcc/32/_popcountsi2.o libgcc/32/_popcountdi2.o libgcc/32/_paritysi2.o libgcc/32/_paritydi2.o libgcc/32/_divdi3.o libgcc/32/_moddi3.o libgcc/32/_udivdi3.o libgcc/32/_umoddi3.o libgcc/32/_udiv_w_sdiv.o libgcc/32/_udivmoddi4.o  libgcc/32/unwind-dw2.o libgcc/32/unwind-dw2-fde-glibc.o libgcc/32/unwind-sjlj.o libgcc/32/gthr-gnat.o libgcc/32/unwind-c.o -lc && rm -f libgcc_s_32.so && if [ -f 32/libgcc_s.so.1 ]; then mv -f 32/libgcc_s.so.1 32/libgcc_s.so.1.backup; else true; fi && mv 32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s 32/libgcc_s.so.1 libgcc_s_32.so
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `/usr/lib/../lib/crti.o' is incompatible with i386 output
/usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `/usr/lib/../lib/crtn.o' is incompatible with i386 output
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s_32.so] Error 1
make[3]: se sale del directorio `/var/tmp/portage/dev-lang/gpc-20051104/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: se sale del directorio `/var/tmp/portage/dev-lang/gpc-20051104/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: se sale del directorio `/var/tmp/portage/dev-lang/gpc-20051104/work/build/gcc'
make: *** [bootstrap] Error 2

# emerge --info
Portage 2.1.4 (default-linux/amd64/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.24 x86_64)
=================================================================
System uname: 2.6.24 x86_64 AMD Sempron(tm) Processor 3000+
Timestamp of tree: Fri, 25 Jan 2008 16:30:08 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -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/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -pipe -msse3"
DISTDIR="/var/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_ES.utf8"
LC_ALL="es_ES.utf8"
LINGUAS="es en"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=50"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/portage/local/layman/live-ebuilds /var/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis xml xorg xv zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa nv nouveau"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 4 Stratos Psomadakis (RETIRED) gentoo-dev 2008-02-29 01:36:09 UTC
bumb..

fails for me too, with gentoo 2007.1 amd64...
Comment 5 Stratos Psomadakis (RETIRED) gentoo-dev 2008-02-29 01:41:01 UTC
bumb..

fails for me too, with gentoo 2007.1 amd64...
Comment 6 George Shapovalov (RETIRED) gentoo-dev 2008-02-29 10:38:28 UTC
I've tried to check if only forcing gcc-3 to be used to compile the thing would fix this, but it seems the problem really is with multilib. I'll have to port it to use gnatbuild or toolchain.eclass or may be I can salvage parts of these eclasses to be used separately, please standby. Also, I really should update this package, there were few more beta releases since this one.

Sorry about this one lagging behind, I switched to using Ada quite a while ago :), but I'll try to correct this one soon as well.

George
Comment 7 Thomas Capricelli 2008-10-26 02:26:59 UTC
fails here as well on amd64 with 4.3.2 and profile default/linux/amd64/2008.0
Comment 8 George Shapovalov (RETIRED) gentoo-dev 2008-11-25 13:36:41 UTC
Sorry for long silence, this one was not assigned to me directly and I did not really care about gpc personally (having switched to Ada for all the relevant stuff for a few years already :)). Just decided to tighten a few bugs recently, so I'll try to see what I can do.

(In reply to comment #7)
> fails here as well on amd64 with 4.3.2 and profile default/linux/amd64/2008.0
Well, strictly speaking it is not even supposed to be buildable against 4.3.2. At least the latest version "released" (2007something) only provides 4.1.x diffs. However the build process forces a particular gcc (set by GCCVER to 3.4 series in the only ebuild that's left) anyway, meaning you'll have to keep that gcc version around (otherwise we would get collisions).

Reassigning the bug. I do get this same problem on amd64 here as well, so hopefully, I'll fix it some time soon.
Comment 9 Andrew 2008-12-04 01:43:33 UTC
Created attachment 174210 [details]
See comment.

Although I can not emerge this package I am able to compile it from source code.

See 

http://forums.gentoo.org/viewtopic-t-716669-highlight-gpc.html

For details.
Comment 10 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-21 02:21:15 UTC
(In reply to comment #9)
> Created an attachment (id=174210) [edit]
> See comment.
> 
> Although I can not emerge this package I am able to compile it from source
> code.
> 
> See 
> 
> http://forums.gentoo.org/viewtopic-t-716669-highlight-gpc.html
> 
> For details.
> 

Added the --disable-multilib bit for ya. Hope it works ;) (compiled in my ~amd64 chroot)

Resolving bug because it works for now ;) Please file new bugs if there are new issues, thanks.