Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73223 - gprolog-1.2.16 fails to emerge: undefined references (with gcc-3.3.4-r1)
Summary: gprolog-1.2.16 fails to emerge: undefined references (with gcc-3.3.4-r1)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Prolog project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-03 05:25 UTC by Martin von Gagern
Modified: 2006-03-21 02:50 UTC (History)
2 users (show)

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


Attachments
Updated ebuild (gprolog-1.2.16-r1.ebuild,1.05 KB, text/plain)
2005-02-05 06:42 UTC, Arne Mejlholm (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2004-12-03 05:25:48 UTC
Emerging gprolog resulted in a compilation error or rather a linker error due to a lot of undefined references. I emerged it again with MAKEOPTS=-j and if worked. Emerging a third time, again without any options worked as well. Strange.

Reproducible: Couldn't Reproduce
Steps to Reproduce:
1. emerge gprolog => failed
2. MAKEOPTS=-j1 emerge gprolog => success
3. emerge gprolog => success

Actual Results:  
First run of emerge gave me this result:

gplc -c wam_emit.wam
[ ! -f  pl2wam ] || cp pl2wam pl2wam0
gplc -o pl2wam --no-fd-lib --min-bips pl2wam.o read_file.o bip_list.o
syn_sugar.o internal.o code_gen.o reg_alloc.o inst_codif.o first_arg.o
indexing.o wam_emit.o
bip_list.o(.text+0x16): In function `Lpred1_1':
: undefined reference to `st'
bip_list.o(.text+0x6d5): In function `Lpred1_62':
: undefined reference to `ta'
bip_list.o(.text+0x715): In function `Lpred1_64':
: undefined reference to `ta'
bip_list.o(.text+0x755): In function `Lpred1_66':
: undefined reference to `ta'
bip_list.o(.text+0x795): In function `Lpred1_68':
: undefined reference to `ta'
bip_list.o(.text+0x7d5): In function `Lpred1_70':
: undefined reference to `ta'
bip_list.o(.text+0x815): more undefined references to `ta' follow
bip_list.o(.text+0x718b): In function `Lpred1_915':
: undefined reference to `Lpred1_917'
bip_list.o(.text+0x7195): In function `Lpred1_916':
: undefined reference to `ta'
bip_list.o(.text+0x6a3): In function `Lpred1_59':
: undefined reference to `Lpred1_944'
bip_list.o(.text+0x6ad): In function `Lpred1_sub_72':
: undefined reference to `Lpred1_946'
bip_list.o(.text+0x6bc): In function `Lpred1_60':
: undefined reference to `Lpred1_948'
bip_list.o(.text+0x6c6): In function `Lpred1_sub_73':
: undefined reference to `Lpred1_950'
collect2: ld returned 1 exit status
distcc[18155] ERROR: compile (null) on localhost failed
compilation failed
make[1]: *** [pl2wam] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gprolog-1.2.16/work/gprolog-1.2.16/src/Pl2Wam'
make: *** [all] Error 1



Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, uclibc-0.9.26-r7, 2.6.9
i686)
=================================================================
System uname: 2.6.9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=prescott -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=prescott -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.inode.at/ rsync://ftp.snt.utwente.nl/gentoo
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apache2 apm arts avi berkdb bitmap-fonts bonobo cdr crypt
cscope cups directfb divx4linux doc dvd encode esd f77 fam fbcon flac foomaticdb
fortran gd gdbm ggi gif gpm gtk gtk2 gtkhtml guile imagemagick imlib java jpeg
junit kde libg++ libwww mad mbox mikmod mmx motif mozilla mpeg mule mysql nas
ncurses nls nptl oggvorbis opengl oss pam pdflib perl pic png postgres python qt
quicktime readline samba sasl scanner sdl slang speex spell ssl svga tcltk tcpd
tetex tiff truetype v4l v4l2 x86 xml xml2 xmms xv zlib"
Comment 1 Arne Mejlholm (RETIRED) gentoo-dev 2005-02-05 06:42:07 UTC
Strange indeed. I've only been able to reproduce the problem a couple of times
with -j9 and -j13. Anyways, if parallel compiling by make is the problem, then
then changing 

emake || die "make failed"

in src_compile() to

MAKEOPTS="-j1" emake || die "make failed"

ought to eliminate the problem. Can anyone confirm?
Comment 2 Arne Mejlholm (RETIRED) gentoo-dev 2005-02-05 06:42:52 UTC
Created attachment 50439 [details]
Updated ebuild
Comment 3 Marcelo Goes (RETIRED) gentoo-dev 2005-04-02 16:43:10 UTC
I can confirm.

It may be interesting too to have a look at what the people at Debian have done (http://packages.debian.org/testing/devel/gprolog) and the unstable tree (ftp://ftp.inria.fr/INRIA/Projects/contraintes/gprolog/unstable/).
Comment 4 Volker Hemmann 2005-06-04 12:17:14 UTC
Hi, 
 
it fails for me, but with a different error: 
wam_inst.h:255: Fehler: vorherige Deklaration von 
Comment 5 Volker Hemmann 2005-06-04 12:17:14 UTC
Hi, 
 
it fails for me, but with a different error: 
wam_inst.h:255: Fehler: vorherige Deklaration von »Create_Functor_Arity_Tagged« 
war hier 
wam_inst.c:73: Fehler: in Konflikt stehende Typen für 
»Create_Functor_Arity_Tagged« 
wam_inst.h:255: Fehler: vorherige Deklaration von »Create_Functor_Arity_Tagged« 
war hier 
wam_inst.c:90: Fehler: in Konflikt stehende Typen für »Create_Swt_Table« 
wam_inst.h:257: Fehler: vorherige Deklaration von »Create_Swt_Table« war hier 
wam_inst.c:90: Fehler: in Konflikt stehende Typen für »Create_Swt_Table« 
wam_inst.h:257: Fehler: vorherige Deklaration von »Create_Swt_Table« war hier 
wam_inst.c:110: Fehler: in Konflikt stehende Typen für »Create_Swt_Atm_Element« 
wam_inst.h:259: Fehler: vorherige Deklaration von »Create_Swt_Atm_Element« war 
hier 
wam_inst.c:110: Fehler: in Konflikt stehende Typen für »Create_Swt_Atm_Element« 
wam_inst.h:259: Fehler: vorherige Deklaration von »Create_Swt_Atm_Element« war 
hier 
wam_inst.c:128: Fehler: in Konflikt stehende Typen für »Create_Swt_Stc_Element« 
wam_inst.h:262: Fehler: vorherige Deklaration von »Create_Swt_Stc_Element« war 
hier 
wam_inst.c:128: Fehler: in Konflikt stehende Typen für »Create_Swt_Stc_Element« 
wam_inst.h:262: Fehler: vorherige Deklaration von »Create_Swt_Stc_Element« war 
hier 
wam_inst.c:181: Fehler: in Konflikt stehende Typen für »Get_Atom_Tagged« 
wam_inst.h:264: Fehler: vorherige Deklaration von »Get_Atom_Tagged« war hier 
. 
. 
. 
. 
wam_inst.h:379: Fehler: vorherige Deklaration von »Untrail« war hier 
In file included from wam_inst.c:1524: 
unify.c:38: Fehler: in Konflikt stehende Typen für »Unify« 
wam_inst.h:381: Fehler: vorherige Deklaration von »Unify« war hier 
unify.c:38: Fehler: in Konflikt stehende Typen für »Unify« 
wam_inst.h:381: Fehler: vorherige Deklaration von »Unify« war hier 
In file included from wam_inst.c:1538: 
unify.c:38: Fehler: in Konflikt stehende Typen für »Unify_Occurs_Check« 
wam_inst.h:383: Fehler: vorherige Deklaration von »Unify_Occurs_Check« war hier 
unify.c:38: Fehler: in Konflikt stehende Typen für »Unify_Occurs_Check« 
wam_inst.h:383: Fehler: vorherige Deklaration von »Unify_Occurs_Check« war hier 
compilation failed 
make[1]: *** [wam_inst.o] Fehler 1 
make[1]: Leaving directory 
`/var/tmp/portage/gprolog-1.2.16/work/gprolog-1.2.16/src/EnginePl' 
make: *** [all] Fehler 1 
 
emerge --info: 
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 
2.6.11-gentoo-r9 i686) 
================================================================= 
System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) XP 2000+ 
Gentoo Base System version 1.6.12 
ccache version 2.4 [enabled] 
dev-lang/python:     2.2.3-r5, 2.3.5 
sys-apps/sandbox:    1.2.8 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 
sys-devel/binutils:  2.16-r1 
sys-devel/libtool:   1.5.18 
virtual/os-headers:  2.6.11-r1 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-march=athlon-xp -O2 -mmmx -m3dnow -msse -mfpmath=sse -ftracer 
-frename-registers -fweb -fomit-frame-pointer -Wdisabled-optimization -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon-xp -O2 -mmmx -m3dnow -msse -mfpmath=sse -ftracer 
-frename-registers -fweb -fomit-frame-pointer -Wdisabled-optimization -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig candy ccache distlocks notitles sandbox sfperms strict" 
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo 
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
LC_ALL="de_DE@euro" 
LINGUAS="de" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="x86 16bit 3dnow 3dnowext 3ds S3TC X a52 aac aalib acpi alsa arts audiofile 
avi bash-completion berkdb bitmap-fonts bluetooth bzip2 bzlib cairo caps cdparanoia 
cdr cpudetection crypt css ctype curl dio divx4linux dnd dpms dvd dvdr dvdread editor 
emacs-w3 emboss encode exif expat fame fb fbcon ffmpeg fftw flac fortran freetype 
ftp gcc-libffi gd gdbm gif gimp glitz gnokii graphviz gs gtk gtk2 icq imagemagick imlib 
ipv6 irmc jack jack-tmpfs java javascript joystick jp2 jpeg jpeg2k kde kdeenablefinal 
ladcca lesstif libg++ libwww lzw mad maildir mikmod mjpeg mmx mng monkey motif 
mp3 mpeg mplayer mule music mysql ncurses nls no-htdocs no-old-linux noamazon 
noantlr nobcel nobeanutils nobsf nobsh nocardbus nocd nocommonslogging 
nocommonsnet nojdepend nojsch nojython nolog4j nooro nosendmail nowin nptl 
nvidia objc offensive ogg oggvorbis openal opengl pam pdflib perl physfs pic png 
posix python qemu-fast qt quicktime readline real samba scanner sdl server 
sharedmem slang sms snmp speex spell sqlite sse ssl stencil-buffer svg tcltk tcpd 
theora threads tiff timidity transcode truetype truetype-fonts type1-fonts unicode usb 
userlocales v4l v4l2 vanilla vcd videos vidix visualization vorbis win32codecs xanim 
xemacs xine xinerama xml2 xmlrpc xmms xosd xpm xrandr xscreensaver xv xvid xvmc 
yv12 zlib zvbi linguas_de userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, MAKEOPTS 
Comment 6 Albert Holm 2005-10-01 03:37:54 UTC
Bug #65076 contains an ebuild for gprolog-1.2.19. Does that version work?
Comment 7 Ernestas Liubarskij 2006-03-04 07:05:16 UTC
Bug 116843 contains another one ebuild for gprolog-1.2.19 (it merges for me, but with QA exec-stack notice)
Comment 8 Keri Harris gentoo-dev 2006-03-21 02:50:13 UTC
This bug is caused by compiling gprolog-1.2.16 with later versions of gcc. A patched version of gprolog-1.2.19 has been committed to cvs that addresses this compile failure.