Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390377 - dev-lang/swi-prolog-5.11.31 - pl-arith.c:2932:15: error: 'V_MPZ' undeclared (first use in this function)
Summary: dev-lang/swi-prolog-5.11.31 - pl-arith.c:2932:15: error: 'V_MPZ' undeclared (...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Prolog project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-13 10:19 UTC by Nikolaos Chatzidakis
Modified: 2011-11-20 10:21 UTC (History)
1 user (show)

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


Attachments
Build log (swiprolog.log,25.29 KB, text/plain)
2011-11-13 10:20 UTC, Nikolaos Chatzidakis
Details
emerge with LC_ALL=C (build.log,25.96 KB, text/plain)
2011-11-14 07:12 UTC, Nikolaos Chatzidakis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolaos Chatzidakis 2011-11-13 10:19:32 UTC
I tried to update swi-prolog to day and I got the following:
pl-arith.c: In function ‘pl_set_random1_va’:
pl-arith.c:2932:15: σφάλμα: ‘V_MPZ’ δεν έχει διακυρηχθεί (πρώτη χρήση στη συνάρτηση αυτή)
pl-arith.c:2932:15: σημείωση: each undeclared identifier is reported only once for each function it appears in
pl-arith.c:2935:7: warning: implicit declaration of function ‘mpz_set’
pl-arith.c:2935:29: error: ‘struct <anonymous>’ has no member named ‘random’
pl-arith.c:2935:63: error: ‘union <anonymous>’ has no member named ‘mpz’
pl-arith.c: At top level:
pl-arith.c:3026:1: προειδοποίηση: ‘ar_random_float’ defined but not used
make: *** [pl-arith.o] Error 1
make: *** Waiting for unfinished jobs....
emake failed

(I attach the whole build log)

Reproducible: Always

Steps to Reproduce:
1.emerge swi-prolog
2.
3.



---------------------
my emerge --info
---------------------
Portage 2.2.0_alpha74 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.1.0-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.1.0-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.1
Timestamp of tree: Sun, 13 Nov 2011 09:15:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4.1 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --jobs=5"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/"
LANG="el_GR.UTF-8"
LC_ALL="el_GR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="el en"
MAKEOPTS="-j5"
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=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa amd64 apache2 apng berkdb branding bzip2 cairo cdda cdr consolekit cracklib crypt cups curl cxx dbus declarative device-mapper dirac dri dts dvd dvdr emboss encode exif extras fam ffmpeg firefox flac fontconfig fortran gd gdbm gdu gif gnome gnutls gpm gtk hddtemp iconv ipv6 java jpeg kde lcms libnotify lm_sensors mad matroska melt mikmod mmx mng modules mp3 mp4 mpeg mpi msn mudflap multilib multiuser mysql ncurses nls nptl nptlonly nsplugin nvidia objc ogg opengl openmp pam pango pcre pdf png policykit ppds pppd private-headers qt3support qt4 readline romio sdl secure-delete semantic-desktop session skins snmp source spell sql sse sse2 sse4_1 ssl ssse3 startup-notification static-libs subversion svg sysfs tcpd theora threads tiff tordns truetype udev unicode usb v4l v4l2 vaapi vdpau vorbis webkit wlm wma x264 xcb xml xorg xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="hda-intel" 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 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 proxy" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="el en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Nikolaos Chatzidakis 2011-11-13 10:20:08 UTC
Created attachment 292373 [details]
Build log
Comment 2 Agostino Sarubbo gentoo-dev 2011-11-13 12:54:03 UTC
please add build log compiled with LC_ALL=C
Comment 3 Nikolaos Chatzidakis 2011-11-14 07:12:04 UTC
Created attachment 292471 [details]
emerge with LC_ALL=C

Ok, here is the build log with LC_ALL=C. Swi-prolog refuses to emerge again. :)
Comment 4 Maks Verver 2011-11-14 22:53:09 UTC
This is an upstream bug.  Compilation fails when SWI-Prolog is configured with GMP support disabled.  I've filed a bug report here: http://www.swi-prolog.org/bugzilla/show_bug.cgi?id=15

To work around it, enable GMP support (USE=gmp), or mask dev-lang/swi-prolog-5.11.31 until a patch or a new version is available.
Comment 5 Maks Verver 2011-11-15 20:52:49 UTC
Problem is fixed in version 5.11.32 which is available from the SWI Prolog website.  A version bump should suffice.
Comment 6 Keri Harris gentoo-dev 2011-11-18 19:15:11 UTC
Thanks for sorting this bug out with upstream! I've added -5.11.32 to CVS.

Keri
Comment 7 Nikolaos Chatzidakis 2011-11-20 10:21:16 UTC
(In reply to comment #6)
> Thanks for sorting this bug out with upstream! I've added -5.11.32 to CVS.
> 
> Keri

Sorry for taking so long to reply. Thank you for the help, swi-prolog 5.11.32 now compiles fine :)