Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507364 - dev-python/astropy with sci-libs/cfitsio-3.140 - astropy/io/fits/src/compressionmodule.c:679:17: error: ‘FITSfile’ has no member named ‘quantize_dither’
Summary: dev-python/astropy with sci-libs/cfitsio-3.140 - astropy/io/fits/src/compress...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Astronomy project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-11 04:40 UTC by Mikko Laine
Modified: 2014-04-16 11:40 UTC (History)
1 user (show)

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


Attachments
build.log (astropy-emergelog,362.68 KB, text/plain)
2014-04-11 19:26 UTC, Mikko Laine
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikko Laine 2014-04-11 04:40:25 UTC
Sorry if I'm doing this wrong. This is the first bug I file.

Emerging dev-python/astropy pulls in RDEPEND="sci-libs/cfitsio:0=" which seems to be version cfitsio-3.140. Compiling astropy fails after that with this kind of errors: http://pastebin.com/maBmhXpb

Mainly my attention was on lines:

In file included from astropy/io/fits/src/compressionmodule.c:99:0:
astropy/io/fits/src/compressionmodule.h:23:10: warning: #warning "CFITSIO_MAJOR not defined; your CFITSIO version may be too old; compile at your own risk" [-Wcpp]

I tried newer version of cfitsio (3.350) and Astropy compiled just fine. Astropy is ~amd64 as is cfitsio-3.350, but I think Astropy package should explicitly pull >=sci-libs/cfitsio-3.350

I ran into this while testing ebuild for my own program on an x86 virtual machine, but same happens on my desktop (amd64) as well. Here's emerge info from both of them:

amd64:
micko-desktop ~ # emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.17, 3.13.6-gentoo x86_64)
=================================================================
System uname: Linux-3.13.6-gentoo-x86_64-AMD_FX-tm-6300_Six-Core_Processor-with-gentoo-2.2
KiB Mem:    16348480 total,    228844 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 10 Apr 2014 07:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo science kde finnish sunrise mozilla multimedia micko-overlay
Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL AdobeFlash-10.1 dlj-1.1 sun-bcla-java-vm googleearth Oracle-BCLA-JavaSE AdobeFlash-10.3 google-talkplugin Google-TOS AdobeFlash-11.x google-chrome NVIDIA-CUDA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=bdver1 -mno-movbe -mno-fma -mno-bmi -mno-tbm --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=bdver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/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 -march=bdver1 -mno-movbe -mno-fma -mno-bmi -mno-tbm --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=bdver1"
DISTDIR="/mnt/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/mnt/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/kde /var/lib/layman/finnish /var/lib/layman/sunrise /var/lib/layman/mozilla /var/lib/layman/multimedia /media/data/portage-overlay"
USE="3dnow 3dnowext X \ a52 aac aalib acl acpi alsa amd64 apache2 aplaymidi avahi bash-completion berkdb bluetooth bluez branding btrfs bzip2 cairo cdda cddb cdr cleartype cli consolekit corefonts cracklib crypt cuda cups cvs cxx daap dbus declarative dirac djvu dri dts dv dvd dvdr dvi emacs emboss encode exif faac facebook fam ffmpeg firefox fits flac flickr fontconfig fortran fuse g3dvl gdbm gif gimp git go google google-gadgets gpg gphoto2 gpm gpu gtk gtk3 iconv icq icu imagemagick ipv6 jabber java jpeg jpeg2k kde kipi ladspa lame lapack lastfm lcms ldap libnotify lm_sensors lua lvm lzma lzo mad matroska midi mjpeg mmx mmxext mng modemmanager modules mono mp3 mp4 mpeg msn mtp multilib mysql ncurses network-cron nls nptl nsplugin ogg opencl opencv opengl openmp pam pango pcre pdf perl phonon php plasma plotutils png policykit postgres postscript ppds ppp pulseaudio python python2 python3 qt3support qt4 quicktime raw rdesktop readline rss samba scanner schroedinger sdl semantic-desktop session skype sndfile socialweb speex spell sqlite sse sse2 sse3 ssl ssse3 startup-notification subversion svg taglib tcpd telepathy theora threads thumbnail thunderbird tiff timidity truetype type1 udev udisks unicode upnp upower usb v4l v4l2 vala vdpau vnc vorbis webkit wxwidgets x264 xcb xcomposite xine xinerama xml xmp xorg xscreensaver xv xvid yahoo yv12 zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon 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 ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LINGUAS="fi en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3" QEMU_SOFTMMU_TARGETS="x86_64 i386 arm" QEMU_USER_TARGETS="x86_64 i386 arm" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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"
USE_PYTHON="2.7 3.2 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC

Virtual x86:
Portage 2.2.8-r1 (default/linux/x86/13.0, gcc-4.7.3, glibc-2.17, 3.12.13-gentoo i686)
=================================================================
System uname: Linux-3.12.13-gentoo-i686-AMD_FX-tm-6300_Six-Core_Processor-with-gentoo-2.2
KiB Mem:     3633516 total,   2368032 free
KiB Swap:    1047532 total,   1047532 free
Timestamp of tree: Thu, 10 Apr 2014 16:00:01 +0000
ld GNU ld-versio (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo science x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fi_FI.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /usr/local/portage"
USE="acl berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre readline session ssl tcpd unicode x86 zlib" ABI_X86="32" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON




Steps to reproduce:
1. emerge =sci-libs/cfitsio-3.140
2. emerge dev-python/astropy
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-11 17:04:35 UTC
Please attach the entire build log to this bug report.
Comment 2 Mikko Laine 2014-04-11 19:26:48 UTC
Created attachment 374764 [details]
build.log
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2014-04-15 15:23:38 UTC
+  15 Apr 2014; Sébastien Fabbro <bicatali@gentoo.org> astropy-0.3.1.ebuild:
+  Fixed minimum cfitsio version, thanks Mikko Laine bug #50736
+
Comment 4 Mikko Laine 2014-04-16 11:19:12 UTC
(In reply to Sébastien Fabbro from comment #3)
> +  15 Apr 2014; Sébastien Fabbro <bicatali@gentoo.org> astropy-0.3.1.ebuild:
> +  Fixed minimum cfitsio version, thanks Mikko Laine bug #50736
> +

I tested the fix and there's one more problem. Now the line goes:

>=sci-libs/cfitsio-3.35:0=

However the cfitsio versions are 3.140, 3.350 and 3.360 (with the 0 in the end). And since 140 is bigger than 35 it still pulls the wrong version.

I don't know how to reopen this bug or if I can even do it. I hope you see this.
Comment 5 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2014-04-16 11:40:39 UTC
(In reply to Mikko Laine from comment #4)
> I tested the fix and there's one more problem. Now the line goes:
> 
> >=sci-libs/cfitsio-3.35:0=
> 
> However the cfitsio versions are 3.140, 3.350 and 3.360 (with the 0 in the
> end). And since 140 is bigger than 35 it still pulls the wrong version.
> 
> I don't know how to reopen this bug or if I can even do it. I hope you see
> this.

Fixed, thanks!

+  16 Apr 2014; Kacper Kowalik <xarthisius@gentoo.org> astropy-0.3.1.ebuild:
+  Fix PV in cfitsio dependency wrt #507364. Thanks to Mikko Laine
+  <mikko.laine@gmail.com> for catching this