Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409903 - dev-lang/python - python-config emits local CFLAGS
Summary: dev-lang/python - python-config emits local CFLAGS
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-27 17:04 UTC by Moritz Schlarb
Modified: 2012-03-27 18:13 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,19.92 KB, text/plain)
2012-03-27 17:05 UTC, Moritz Schlarb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Schlarb 2012-03-27 17:04:07 UTC
While searching information for bug #409645, I noticed, that building sys-libs/tdb-1.2.7-r1 fails on x86.

I'll attach the build log.

Reproducible: Always

Steps to Reproduce:
MAKEOPTS="" emerge tdb
Actual Results:  
i686-pc-linux-gnu-gcc -fPIC -c ./pytdb.c -I./include -Iinclude  -march=prescott -O2 -pipe -fomit-frame-pointer -D_PUBLIC_= -I./lib/replace `/usr/bin/python-config-2.7 --cflags`
cc1: error: invalid option argument ‘-OPT:Olimit=0’
make: *** [pytdb.o] Error 1
emake failed



emerge --info =sys-libs/tdb-1.2.7-r1
Portage 2.1.10.51 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.3, glibc-2.13-r4, 3.3.0-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.3.0-gentoo-i686-Intel-R-_Core-TM-_Duo_CPU_L2400_@_1.66GHz-with-gentoo-2.1
Timestamp of tree: Sat, 24 Mar 2012 10:15:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.1.2, 4.4.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo sunrise science betagarden moschlar-dev Gentoo-portage-tree-overlay-by-gravitino-and-moschlar
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://mirror.cambrium.nl/pub/os/linux/gentoo/ ftp://mirror.opteamax.de/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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/sunrise /var/lib/layman/science /var/lib/layman/betagarden /home/moschlar/src/gentoo/portage /home/moschlar/src/gentoo/moopoo"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa aspell bash-completion berkdb branding bzip2 cairo cdda cli colord compiz consolekit cracklib crypt cups cxx dbus dri dts dvd emboss emerald encode evo exif fam ffmpeg firefox flac fortran fuse gconf gdbm gdu gif gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk iconv icu ios ipc iphone ipv6 jabber java jpeg lcms ldap libnotify libproxy mad mmx mmxext mng modules mp3 mp4 mpeg mudflap nautilus ncurses networkmanager nls nptl nptlonly nsplugin nss offensive ogg opengl openmp pam pango pcre pdf pidgin png policykit ppds pppd pulseaudio python qt3support readline samba sdl session socialweb spell sqlite sse ssl startup-notification svg sysfs system-sqlite tcpd theora threads tiff truetype udev unicode usb vaapi vim-syntax vorbis x264 x86 xcb xml xorg xulrunner xv xvid zlib zsh-completion" 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 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 stage tables krita karbon braindump" 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="en de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-libs/tdb-1.2.7-r1 was built with the following:
USE="python -static-libs -tdbtest -tools"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -D_PUBLIC_="
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -D_PUBLIC_="
Comment 1 Moritz Schlarb 2012-03-27 17:05:59 UTC
Created attachment 306875 [details]
build.log

emerge -pqv =sys-libs/tdb-1.2.7-r1
[ebuild   R   ] sys-libs/tdb-1.2.7-r1  USE="python -static-libs -tdbtest -tools"
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-27 17:30:17 UTC
The Internet says `-OPT:Olimit=0' is something the Intel C Compiler would use, and the sys-libs/tdb sources don't have anything like this string in them, so the conclusion would be that you compiled something with dev-lang/icc (instead of, say, sys-devel/gcc) and it then embedded its command line arguments somewhere in a configuration file that is used to compile python sources.

Please post your `/usr/bin/python-config-2.7 --cflags' output in a comment. Mine seem to include my CFLAGS:

-I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=k8 -ggdb -pipe -Wall -fwrapv -DNDEBUG

so that's an error in dev-lang/python, not sys-libs/tdb.
Comment 3 Moritz Schlarb 2012-03-27 18:13:54 UTC
Hell yeah...

mopad ~ # /usr/bin/python-config-2.7 --cflags
-I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -OPT:Olimit=0 -march=prescott -O3 -pipe -fomit-frame-pointer -fwrapv -DNDEBUG

But it wasn't icc's fault, since I experimented compiling Python with clang.
So I either compile tdb with clang, too or I compile Python with gcc again.

Anyway, I'm sorry for this bug... Since it is none!

Thanks!