Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173056 - dev-lang/swi-prolog-5.6.31 fails because of a wrong thread atribute access of a structure
Summary: dev-lang/swi-prolog-5.6.31 fails because of a wrong thread atribute access of...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Prolog project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-01 22:17 UTC by grdscarabe
Modified: 2007-04-07 03:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description grdscarabe 2007-04-01 22:17:30 UTC
When emerging dev-lang/swi-prolog the following error occurs :

pl-setup.c: In function `dispatch_signal':
pl-setup.c:360: error: structure has no member named `thread'
make: *** [pl-setup.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-lang/swi-prolog-5.6.31 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  swi-prolog-5.6.31.ebuild, line 83:   Called die

Informations :

GENTOO_VM=  CLASSPATH="." JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""

emerge --info
Portage 2.1.2.3 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.5-r1, 2.6.19-gentoo-r2 i686)
=================================================================
System uname: 2.6.19-gentoo-r2 i686 Intel(R) Pentium(R) M processor 1.50GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 31 Mar 2007 08:30:09 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -pipe -ftracer -fomit-frame-pointer -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -march=pentium3 -pipe -ftracer -fomit-frame-pointer -momit-leaf-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://mir1.ovh.net/gentoo-distfiles/ http://mir1.ovh.net/gentoo-distfiles/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7z 7zip X a52 aac aalib acpi alsa apache2 apm asf bitmap-fonts bzip2 cdda cddb cli cracklib crypt daap dbus debug dlload dri dts dvd eds emboss encode esd fame ffmpeg foomaticdb fortran gd gif gpm gsm gstreamer gtk gtk2 httpd icc-pgo iconv ieee1394 imlib ipv6 irc isdnlog iss jabber jpeg lame libg++ libwww live mad matroska midi mikmod mjpeg motif mp3 mp4 mpeg mpeg2 msn mysql ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl pam pcre pdf perl png postgres pppd python quicktime readline real reflection rtsp sdl session spell spl ssl stream tcltk tcpd theora truetype truetype-fonts type1-fonts unicode v4l v4l2 vorbis win32codecs wxWindow x264 x86 xanim xml xorg xv xvid 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="ati vesa vga fglrx fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

When commenting the lines provocating the error, the build seems to pass. Here is a patch but there must be something else :

*** pl-setup.c.bk       Mon Apr  2 00:14:54 2007
--- pl-setup.c  Mon Apr  2 00:04:11 2007
***************
*** 358,365 ****
  #endif
  
!   DEBUG(1, Sdprintf("Got signal %d in thread %d (=%d) %s\n",
!                   sig, LD->thread.info->pl_tid,
!                   pthread_self(),
!                   sync ? " (sync)" : " (async)"));
        
    lTopSave = lTop;
--- 358,365 ----
  #endif
  
!   //DEBUG(1, Sdprintf("Got signal %d in thread %d (=%d) %s\n",
! //                sig, LD->thread.info->pl_tid,
! //                pthread_self(),
! //                sync ? " (sync)" : " (async)"));
        
    lTopSave = lTop;


Reproducible: Always

Steps to Reproduce:
1. emerge swi-prolog
Actual Results:  
i686-pc-linux-gnu-gcc -c -I. -I/mnt/save/var_tmp/portage/dev-lang/swi-prolog-5.6.31/work/pl-5.6.31/src -I/mnt/save/var_tmp/portage/dev-lang/swi-prolog-5.6.31/work/pl-5.6.31/src/rc  -O3 -march=pentium3 -pipe -ftracer -fomit-frame-pointer -momit-leaf-frame-pointer -DO_DEBUG -fno-strict-aliasing -fPIC pl-sys.c -o pl-sys.o
i686-pc-linux-gnu-gcc -c -I. -I/mnt/save/var_tmp/portage/dev-lang/swi-prolog-5.6.31/work/pl-5.6.31/src -I/mnt/save/var_tmp/portage/dev-lang/swi-prolog-5.6.31/work/pl-5.6.31/src/rc  -O3 -march=pentium3 -pipe -ftracer -fomit-frame-pointer -momit-leaf-frame-pointer -DO_DEBUG -fno-strict-aliasing -fPIC pl-table.c -o pl-table.o
pl-setup.c: In function `dispatch_signal':
pl-setup.c:360: error: structure has no member named `thread'
make: *** [pl-setup.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-lang/swi-prolog-5.6.31 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  swi-prolog-5.6.31.ebuild, line 83:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/mnt/save/var_tmp/portage/dev-lang/swi-prolog-5.6.31/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info


Expected Results:  
swi-prolog emerged
Comment 1 Keri Harris gentoo-dev 2007-04-07 03:14:55 UTC
Fixed in CVS. Thanks for catching this bug!

Keri