Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313173 - www-apache/mod_wsgi-3.2 fails to build due to bad CFLAG quoting through apxs
Summary: www-apache/mod_wsgi-3.2 fails to build due to bad CFLAG quoting through apxs
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 325417
  Show dependency tree
 
Reported: 2010-04-05 03:36 UTC by Mark A Rada
Modified: 2010-07-12 07:02 UTC (History)
0 users

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 Mark A Rada 2010-04-05 03:36:47 UTC
When I try to build mod_wsgi on my system it crashes very early in the build due to apxs not understanding the CFLAGS which get passed to it.

The relevant dump from the ebuild:

>>> Configuring source in /var/tmp/portage/www-apache/mod_wsgi-3.2/work/mod_wsgi-3.2 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-apxs=/usr/sbin/apxs2
checking Apache version... 2.2.15
checking for python... /usr/bin/python
configure: creating ./config.status
config.status: creating Makefile
>>> Source configured.
>>> Compiling source in /var/tmp/portage/www-apache/mod_wsgi-3.2/work/mod_wsgi-3.2 ...
make -j2
/usr/sbin/apxs2 -c -march=k8 -msse3 -O2 -pipe -I/usr/include/python2.6 -DNDEBUG  -Wc,-march=k8 -Wc,-msse3 -Wc,-O2 -Wc,-pipe  mod_wsgi.c -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -L/usr/lib64 -L/usr/lib64/python2.6/config  -lpython2.6 -lpthread -ldl  -lutil -lm
apxs:Error: Unknown option: m.
apxs:Error: Unknown option: r.
apxs:Error: Unknown option: h.
apxs:Error: Unknown option: =.
apxs:Error: Unknown option: k.
apxs:Error: Unknown option: 8.
apxs:Error: Unknown option: m.apxs:Error: Unknown option: s.
apxs:Error: Unknown option: s.
apxs:Error: Unknown option: 3.
apxs:Error: Unknown option: O.
apxs:Error: Unknown option: 2.
Usage: apxs -g [-S <var>=<val>] -n <modname>
       apxs -q [-S <var>=<val>] <query> ...
       apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
               [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
               [-Wl,<flags>] [-p] <files> ...
       apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
       apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
make: *** [mod_wsgi.la] Error 1
 * ERROR: www-apache/mod_wsgi-3.2 failed:
 *   emake failed


Reproducible: Always

Steps to Reproduce:
1. Have some CFLAGS set (i.e. -march=k8)
2. Try to emerge mod_wsgi


Actual Results:  
Fails to build

Expected Results:  
Successfully builds
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-07 23:19:25 UTC
emerge --info, please
Comment 2 Mark A Rada 2010-04-08 22:30:39 UTC
Portage 2.2_rc67 (default/linux/amd64/10.0/server, gcc-4.4.3, glibc-2.11-r1, 2.6.34-rc3-ferrous26 x86_64)
=================================================================
System uname: Linux-2.6.34-rc3-ferrous26-x86_64-AMD_Sempron-tm-_Processor_3400+-with-gentoo-2.1.6
Timestamp of tree: Thu, 08 Apr 2010 05:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.5-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.1.6
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CPPFLAGS="-march=k8 -msse3 -O2 -pipe"
CXXFLAGS="-march=k8 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache cleanup distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=k8 -msse3 -O2 -pipe"
GENTOO_MIRRORS=" ftp://mirrors.tera-byte.com/pub/gentoo http://gentoo.mirrors.tera-byte.com/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.chem.wisc.edu/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en en_CA"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS=""
PORTAGE_COMPRESS_FLAGS=""
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="/var/lib/layman/verlihub"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext alac alsa amd64 apache2 bash-completion berkdb bzip2 cdr cli cracklib crypt cxx dbus dri dvd dvdr dvdread encode flac fortran gdbm gif gmp iconv idn jpeg lame mad mmx mmxext modules mp3 mpeg mudflap multilib ncurses nls nptl nptlonly offensive ogg openmp pam pch pcre perl png pppd python readline reflection session snmp spl sse sse2 sse3 ssl sysfs tcpd tiff truetype unicode vim-syntax vorbis wavpack xml xorg 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_digest     authn_anon      authn_default authn_file     authz_default   authz_host      authz_owner     authz_user autoindex      cache           deflate         dir             env expires        file_cache      headers         log_config      mem_cache mime           mime_magic      rewrite         speling         status unique_id      vhost_alias     filter " APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_CA" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-05-02 11:53:24 UTC
It works fine, here:

/usr/sbin/apxs2 -c -I/usr/include/python2.6 -DNDEBUG  -Wc,-march=native -Wc,-O2 -Wc,-pipe  mod_wsgi.c -Wl,-O1 -L/usr/lib64 -L/usr/lib64/python2.6/config  -lpython2.6 -lpthread -ldl -lutil -lm
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-07-02 22:48:26 UTC
Does this problem occur with www-apache/mod_wsgi-3.1?
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-07-07 22:24:01 UTC
The issue might be related to C preprocessor flags, from comment #2:
CPPFLAGS="-march=k8 -msse3 -O2 -pipe"
Comment 6 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-07-12 07:02:06 UTC
No further info, closing.