Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 197415

Summary: sci-mathematics/Macaulay2-0.9.95-r2 fails to compile
Product: Gentoo Linux Reporter: Andrey Grozin <grozin>
Component: Current packagesAssignee: Gentoo Science Mathematics related packages <sci-mathematics>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrey Grozin gentoo-dev 2007-10-29 13:33:42 UTC
Maybe, something changed in gc.h recently? I get
....
gcc -O2 -march=pentium-m -pipe -Wall              -Wshadow -Wcast-qual -Wno-parentheses -Wno-sign-compare -Werror-implicit-function-declaration -Wno-strict-aliasing -O3  -Wno-unused-label -I../../include -I./../../include -I. -I. -I../util -I../e -I./../regex -I/usr/include/gc -I/var/tmp/portage/sci-mathematics/Macaulay2-0.9.95-r2/work/include -DNDEBUG  -c -o M2lib.o M2lib.c
M2lib.c: In function 'Macaulay2_main':
M2lib.c:436: error: conflicting types for 'GC_get_stack_base'
/usr/include/gc/gc.h:886: error: previous declaration of 'GC_get_stack_base' was here
M2lib.c:436: warning: declaration of 'GC_get_stack_base' shadows a global declaration
/usr/include/gc/gc.h:886: warning: shadowed declaration is here
M2lib.c:542: warning: assignment from incompatible pointer type
make[2]: *** [M2lib.o] Error 1

Reproducible: Always
Comment 1 Markus Dittrich (RETIRED) gentoo-dev 2007-10-31 12:47:28 UTC
Thanks much for the note Andrey!

Presently it seems Macaulay doesn't even build for me due
to a segmentation fault.
This package really frustrates me; I've spend a considerable
amount of time in the past to get it to compile and pass
all the tests, but everytime one either upgrades library foo
or compiler bar it breaks again.

Just for completeness, could you please post your emerge --info
as well as your version of boehm-gc.

Thanks,
Markus
Comment 2 Andrey Grozin gentoo-dev 2007-11-01 10:54:00 UTC
I have dev-libs/boehm-gc-7.0-r1

gandalf ~ # emerge --info
Portage 2.1.3.16 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-suspend2-r1 i686)
=================================================================
System uname: 2.6.22-suspend2-r1 i686 Intel(R) Pentium(R) M processor 1400MHz
Timestamp of tree: Thu, 01 Nov 2007 09:50:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.4-r6, 2.5.1-r3
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
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.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles/"
LINGUAS="ru"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/science"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acpi alsa arts bash-completion berkdb bitmap-fonts blas boehm-gc browserplugin cairo cdr cli cracklib crypt css cups curl dbus doc dri dvd dvdr dvdread eds emacs emboss encode esd fam ffmpeg fftw firefox fltk fortran gd gdbm gif gmp gnome gpm gsl gstreamer gtk hal iconv imagemagick isdnlog jpeg kde lapack ldap leim mad midi mikmod mozilla mp3 mpeg mudflap mule ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp oss pam pcre pdf perl plotutils png ppds pppd python qt3 qt4 quicktime readline reflection sdl session speex spell spl ssl tcl tcpd tetex tk truetype truetype-fonts type1-fonts umfpack unicode vcd vorbis win32codecs wxwindows x86 xine 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="i810 vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2008-01-04 14:40:49 UTC
I apologize that nothing has happened here in a while,
but unfortunately Macaulay2 currently fails to compile
both on my x86 and amd64 dev boxes and I have yet to 
figure out why.

best,
Markus
Comment 4 Markus Dittrich (RETIRED) gentoo-dev 2008-01-06 15:54:53 UTC
Hi Andrey,

I've just committed Macaulay2-1.0 to the tree. It compiles
fine for me on x86 and amd64. Could you please give it a try and
see if it works for you? Please note that dev-libs/boehm-gc-7.* has
to be built with USE="-threads" since its thread implementation
seems to be broken atm.

Thanks,
Markus
Comment 5 Markus Dittrich (RETIRED) gentoo-dev 2008-01-30 14:15:52 UTC
Since Macaulay2-1.0 is now in the tree please try
this one an file a new bug should there be any
problems.

Thanks,
Markus