Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403775 - sci-libs/openfoam-2.1.0 ignores CFLAGS
Summary: sci-libs/openfoam-2.1.0 ignores CFLAGS
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2019-10-28
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2012-02-15 04:51 UTC by Richard Yao (RETIRED)
Modified: 2019-10-31 15:36 UTC (History)
3 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 Richard Yao (RETIRED) gentoo-dev 2012-02-15 04:51:35 UTC
I was compiling OpenFOAM on Gentoo Prefix on RHEL 6.2 and noticed that it is ignoring my system CFLAGS:

g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/stonybrook/gentoo/var/tmp/portage/sci-libs/openfoam-2.1.0/work/OpenFOAM-2.1.0/src/finiteVolume/lnInclude -I/home/stonybrook/gentoo/var/tmp/portage/sci-libs/openfoam-2.1.0/work/OpenFOAM-2.1.0/src/lagrangian/basic/lnInclude -I/home/stonybrook/gentoo/var/tmp/portage/sci-libs/openfoam-2.1.0/work/OpenFOAM-2.1.0/src/lagrangian/dsmc/lnInclude -I/home/stonybrook/gentoo/var/tmp/portage/sci-libs/openfoam-2.1.0/work/OpenFOAM-2.1.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/stonybrook/gentoo/var/tmp/portage/sci-libs/openfoam-2.1.0/work/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/home/stonybrook/gentoo/var/tmp/portage/sci-libs/openfoam-2.1.0/work/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/dsmcFoam.o -L/home/stonybrook/gentoo/var/tmp/portage/sci-libs/openfoam-2.1.0/work/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib \

Here is my system information:

$ emerge --info
Portage 2.2.01.20153-prefix (prefix/linux/amd64, gcc-4.6.2, unavailable, 2.6.32-220.el6.x86_64 x86_64)
=================================================================
System uname: <censored>
Timestamp of tree: Mon, 13 Feb 2012 22:41:41 +0000
ccache version 3.1.4 [disabled]
app-shells/bash:          4.2_p20::gentoo_prefix
dev-lang/python:          2.7.2-r3::gentoo_prefix
dev-util/ccache:          3.1.4::gentoo_prefix
dev-util/cmake:           2.8.7-r3::gentoo_prefix
dev-util/pkgconfig:       0.26::gentoo_prefix
sys-devel/autoconf:       2.68::gentoo_prefix
sys-devel/automake:       1.11.1::gentoo_prefix
sys-devel/binutils:       2.22::gentoo_prefix
sys-devel/gcc:            4.2.4-r01.4::gentoo_prefix, 4.5.3-r1::gentoo_prefix, 4.6.2::gentoo_prefix
sys-devel/gcc-config:     1.5-r2::gentoo_prefix
sys-devel/libtool:        2.4-r4::gentoo_prefix
sys-devel/make:           3.82::gentoo_prefix
sys-kernel/linux-headers: 3.2::gentoo_prefix
Repositories: gentoo_prefix local_overlay science
Installed sets: 
ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/home/stonybrook/gentoo/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles force-prefix news parallel-fetch parallel-install preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j65"
PKGDIR="/home/stonybrook/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/stonybrook/gentoo/"
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="/home/stonybrook/gentoo/var/tmp"
PORTDIR="/home/stonybrook/gentoo/usr/portage"
PORTDIR_OVERLAY="/home/stonybrook/gentoo/usr/local/portage /home/stonybrook/gentoo/var/lib/layman/science"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap ncurses nls nptl nptlonly openmp pcre pppd prefix readline session sse sse2 ssl sysfs tcpd unicode xorg zlib" 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" 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" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic 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, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-02-15 05:02:09 UTC
(JFYI, The fact that it is Gentoo Prefix is not relevant)
Comment 2 Benj FitzPatrick 2012-10-04 22:46:12 UTC
I tried compiling openfoam-2.1.1 with gcc-4.7.2 and LTO and found the same results. My build.log has lots of -O3, but no -O2, -pipe, or -flto anywhere.
Comment 3 Jonas Stein gentoo-dev 2017-10-29 15:16:59 UTC
Confirmed by Benj FitzPatrick.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-10-31 15:36:50 UTC
Package removed.