Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286634 - dev-lang/gdl-0.9_rc2 fails to emerge on 32bit systems with invalid conversion from 'DLong*' to 'int32*'
Summary: dev-lang/gdl-0.9_rc2 fails to emerge on 32bit systems with invalid conversion...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Markus Dittrich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-27 09:19 UTC by Juergen Rose
Modified: 2010-07-04 19:46 UTC (History)
2 users (show)

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 Juergen Rose 2009-09-27 09:19:46 UTC
'emerge dev-lang/gdl' fails with:
...
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/ImageMagick -I/usr/include/netcdf-3 -I/usr/include/hdf -I/usr/include/hdf -I/usr/include/hdf5 -I/usr/include -I/usr/include -I/usr/include -I/usr/include/python2.6   -DPJ_LIB__  -O2 -march=pentium-m -fomit-frame-pointer -DH5_USE_16_API -MT gdl-hdf_fun.o -MD -MP -MF .deps/gdl-hdf_fun.Tpo -c -o gdl-hdf_fun.o `test -f 'hdf_fun.cpp' || echo './'`hdf_fun.cpp
hdf_fun.cpp: In function 'BaseGDL* lib::hdf_sd_dimgetid_fun(EnvT*)':
hdf_fun.cpp:398: error: invalid conversion from 'DLong*' to 'int32*'
hdf_fun.cpp:398: error:   initializing argument 3 of 'intn SDgetinfo(int32, char*, int32*, int32*, int32*, int32*)'
make[3]: *** [gdl-hdf_fun.o] Error 1


Reproducible: Always




root@thinkpad:/usr/local/portage/dev-python/pycxx(290)# emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-i686-Intel-R-_Pentium-R-_M_processor_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 27 Sep 2009 06:30:02 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r2, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-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.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer"
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/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-O2 -march=pentium-m -fomit-frame-pointer"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j1"
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="/usr/local/portage/layman/zugaina /usr/local/portage/layman/science /usr/local/portage/layman/dotnet /usr/local/portage/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amrr ao aotuv apache2 asf aspell atlas auctex audacious audiofile automount bash-completion beagle berkdb bjam blas bluetooth bonobo boo boost branding bzip2 c++ cairo cardbus cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib cran crypt cups curl cxx daap dbus device-mapper dga dia divx djvu dlloader dmi doc dri ds3490 dts dv dvb dvd dvdr dvi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo examples exif expat extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fuse galago garmin gd gdal gdbm geos gif gimp gimpprint ginac glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened harness hddtemp hdf hdf5 hlapi http httpd iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda irmc isdnlog ithreads jabber java java5 java6 jbig john jpeg jpeg2k kde kde4 kerberos kexi keyring ladspa lame lapack laptop latex lcms ldap libffi libgda libnotify libsamplerate lirc lua lzo lzw mad madwifi maildir mailwrapper math matroska mikmod mmx mmxext mng mod modules mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mtp mudflap musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp pam pcre pda pdf perl pipechan plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio python qemu qhull qt3 qt3support qt4 quicktime readline reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl server session slang slp sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg sysfs szip t1lib tcl tcpd tex theora threads thunar thunderbird tidy tiff tk tntc truetype unicode usb userlocales utempter v4l2 vorbis wav webdav webdav-serf webkit wifi win32codecs wmf wxwidgets x264 x86 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0 ac97_codec emu10k1 emu10k1x" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="usb-wt220u" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                 synaptics               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="ide websvccommon nb harness apisupport groovy gsf j2ee java xml" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Juergen Rose 2009-11-25 14:51:00 UTC
Any news?
Comment 2 Juergen Rose 2009-12-14 13:44:01 UTC
Two weeks later?
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2009-12-17 23:33:39 UTC
Sorry, I can't reproduce this (at least on amd64). Does
it work with USE="-hdf" or USE="-hdf5"?

Thanks,
Markus 
Comment 4 Sylwester Arabas 2009-12-19 22:30:05 UTC
This problem is fixed in the 0.9rc3 - the current version of GDL released in Sep 2009.
(the reproducibility had depended on GCC version)

Sylwester
Comment 5 Juergen Rose 2009-12-19 23:01:41 UTC
I find only dev-lang/gdl-0.9_rc2 in the portage tree.
Comment 6 Markus Dittrich (RETIRED) gentoo-dev 2010-01-12 03:53:37 UTC
(In reply to comment #4)
> This problem is fixed in the 0.9rc3 - the current version of GDL released in
> Sep 2009.
> (the reproducibility had depended on GCC version)
> 
> Sylwester
> 

Thanks much for pointing this out.

@Juergen:

I've bumped the ebuild to rc3. Please test if this works for you.

Thanks,
Markus
Comment 7 Juergen Rose 2010-01-13 12:25:55 UTC
I tried to install dev-lang/gdl-0.9_rc3 on four 32-Bit systems and three 64-Bit systems.

At all 64-Bit systems, I still have also with dev-lang/gdl-0.9_rc3 the undefined references to antlr::nullAST, antlr::TreeParser etc, described in Bug 286630. 
At two 32-Bit system I get the same error
At tow 32-Bit system I could succesfully emerge dev-lang/gdl-0.9_rc3.

Comment 8 Markus Dittrich (RETIRED) gentoo-dev 2010-01-21 10:52:35 UTC
(In reply to comment #7)
> I tried to install dev-lang/gdl-0.9_rc3 on four 32-Bit systems and three 64-Bit
> systems.
> 
> At all 64-Bit systems, I still have also with dev-lang/gdl-0.9_rc3 the
> undefined references to antlr::nullAST, antlr::TreeParser etc, described in Bug
> 286630. 
> At two 32-Bit system I get the same error
> At tow 32-Bit system I could succesfully emerge dev-lang/gdl-0.9_rc3.
> 

Could you try tracking down the difference between the systems? I have
no problem building gdl and 32 and 64bit whatsoever. Does it work
without hdf or hdf5 support?

Markus

Comment 9 Juergen Rose 2010-02-03 14:10:37 UTC
At one 64bit system I removed successively all USE flags in the follwing order:
USE="-hdf" emerge -vuD dev-lang/gdl
USE="-hdf5" emerge -vuD dev-lang/gdl
USE="-netcdf" emerge -vuD dev-lang/gdl
USE="-hdf -hdf5 -netcdf -proj" emerge -vuD dev-lang/gdl
USE="-hdf -hdf5 -netcdf -proj -fftw" emerge -vuD dev-lang/gdl

In any case I got the same error:
prognodeexpr.cpp:(.text+0x6c37): undefined reference to `antlr::nullAST'
gdl-prognodeexpr.o:prognodeexpr.cpp:(.text+0x6c72): more undefined references to `antlr::nullAST' follow
collect2: ld returned 1 exit status

Then I removed the python USE flag, and emerge failed with:
condor sbin # USE="-hdf -hdf5 -netcdf -proj -fftw -python" emerge -vuD dev-lang/gdl
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild  N    ] dev-lang/gdl-0.9_rc3  USE="imagemagick -fftw -hdf -hdf5 -netcdf -proj -python" 0 kB
...
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/ImageMagick     -march=nocona -O2 -pipe -fomit-frame-pointer -MT gdl-CFMTLexer.o -MD -MP -MF .deps/gdl-CFMTLexer.Tpo -c -o gdl-CFMTLexer.o `test -f 'CFMTLexer.cpp' || echo './'`CFMTLexer.cpp
CFMTLexer.cpp: In member function 'void CFMTLexer::mOCTESC(bool)':
CFMTLexer.cpp:985: error: 'strtoul' was not declared in this scope
CFMTLexer.cpp: In member function 'void CFMTLexer::mHEXESC(bool)':
CFMTLexer.cpp:1015: error: 'strtoul' was not declared in this scope
make[3]: *** [gdl-CFMTLexer.o] Error 1

If I still remove the imagemagick flag I get the same error:
condor sbin # USE="-hdf -hdf5 -netcdf -proj -fftw -python -imagemagick" emerge -vuD dev-lang/gdl
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild  N    ] dev-lang/gdl-0.9_rc3  USE="-fftw -hdf -hdf5 -imagemagick -netcdf -proj -python" 0 kB
...
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..      -march=nocona -O2 -pipe -fomit-frame-pointer -MT gdl-CFMTLexer.o -MD -MP -MF .deps/gdl-CFMTLexer.Tpo -c -o gdl-CFMTLexer.o `test -f 'CFMTLexer.cpp' || echo './'`CFMTLexer.cpp
CFMTLexer.cpp: In member function 'void CFMTLexer::mOCTESC(bool)':
CFMTLexer.cpp:985: error: 'strtoul' was not declared in this scope
CFMTLexer.cpp: In member function 'void CFMTLexer::mHEXESC(bool)':
CFMTLexer.cpp:1015: error: 'strtoul' was not declared in this scope
make[3]: *** [gdl-CFMTLexer.o] Error 1

Still any idea?

Regards Juergen
Comment 10 Markus Dittrich (RETIRED) gentoo-dev 2010-02-05 04:23:49 UTC
I've bumped gdl to 0.9rc4. Could you please give it a try
and see if it changes things to the better?

Thanks,
Markus
Comment 11 Justin Lecher (RETIRED) gentoo-dev 2010-07-04 19:46:01 UTC
+  04 Jul 2010; Justin Lecher <jlec@gentoo.org> -gdl-0.9_rc2.ebuild,
+  -gdl-0.9_rc3.ebuild, gdl-0.9_rc4.ebuild, -files/gdl-0.9_rc1-gcc4.3.patch,
+  -files/gdl-0.9_rc1-magick.patch, -files/gdl-0.9_rc1-proj4.patch,
+  -files/gdl-0.9_rc2-antlr.patch, -files/gdl-0.9_rc3-proj4.patch,
+  +files/gdl-0.9_rc4-wxwidgets.patch:
+  Removed python support untils numarray -> numpy is changed by upstream,
+  #326781; removed old, #286634; correcting RDEPEND for imagemagick support,
+  #314237
+