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

Bug 111317

Summary: scientificpython 2.4.9 fails to emerge: compile error
Product: Gentoo Linux Reporter: Ben Schwartz <bmschwar>
Component: [OLD] DevelopmentAssignee: Python Gentoo Team <python>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: output of: CFLAGS="-O2 -pipe" emerge -uv scientificpython

Description Ben Schwartz 2005-11-02 21:46:36 UTC
scientificpython-2.4.9 fails to compile, with an error on line 17 of netcdf.

Reproducible: Always
Steps to Reproduce:
CFLAGS="-O2 -pipe" emerge -uv scientificpython > logfile

Actual Results:  
see attachment

Expected Results:  
Should have installed happily.

plan9 ~ # emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.11-hardened-r15 i686)
=================================================================
System uname: 2.6.11-hardened-r15 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r1, 2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.8.1-r1, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe
-fomit-frame-pointer -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe
-fomit-frame-pointer -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks fixpackages prelink sandbox sfperms
strict usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
LDFLAGS=" -Wl,-O1 -Wl,--enable-new-dtags"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d aac aalib acl afs aim alsa apache2 apm ared atlas auctex
audiofile avi bash-completion berkdb bitmap-fonts blas bzlib cdparanoia cdr
commercial crypt cups curl dga directfb divx4linux dlloader doc dvd dvdread edl
emacs emboss encode esd exif fam fbcon ffmpeg fftw firefox fla flac foomaticdb
fortran freetype ftp gb gd gdbm ggi gif ginac gmp gpm gstreamer gtk gtk2 guile
hardened hardenedphp icq imagemagick imap imlib ipv6 jabber jack java jikes jit
jpeg junit kerberos krb4 ladcca lcms ldap libcaca libg++ libwww mad matroska
mbox mikmod mime ming mjpeg mmx mmx2 mmxext mng motif mozsvg mp3 mpeg msn
musepack mysql ncurses network nls nptl nptlonly offensive ogg oggvorbis opengl
oscar pam pcmcia pdflib perl pic pie plotutils png pnp posix python quicktime
readline real samba sdl session silc slang softmmu speex spell sse sse2 ssl svg
svgalib sysvipc tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts
udev usb videos vorbis win32codecs wmf wxwindows xanim xine xinerama xml xml2
xmms xpm xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS, MAKEOPTS
Comment 1 Ben Schwartz 2005-11-02 21:49:27 UTC
Created attachment 71981 [details]
output of: CFLAGS="-O2 -pipe" emerge -uv scientificpython

Actually, it looks like CFLAGS= didn't do anything, since this still contains
the line:
i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O3
-march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe
-fomit-frame-pointer -ftracer -fPIC -IInclude -I/usr/include
-I/usr/include/python2.4 -c Src/Scientific_netcdf.c -o 

So it might be an overzealous CFLAGS problem.  How can I change my CFLAGS?
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2005-11-03 13:09:03 UTC

*** This bug has been marked as a duplicate of 109704 ***