Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438656 - dev-python/pylibmc-1.2.3 fails to build
Summary: dev-python/pylibmc-1.2.3 fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-17 03:09 UTC by Patrick Lauer
Modified: 2012-11-14 05:38 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 Patrick Lauer gentoo-dev 2012-10-17 03:09:19 UTC
>>> Compiling source in /var/tmp/portage/dev-python/pylibmc-1.2.3/work/pylibmc-1.2.3 ...
 * Building of dev-python/pylibmc-1.2.3 with CPython 2.6...
python2.6 setup.py build -b build-2.6
running build
running build_py
creating build-2.6
creating build-2.6/lib.linux-x86_64-2.6
creating build-2.6/lib.linux-x86_64-2.6/pylibmc
copying pylibmc/consts.py -> build-2.6/lib.linux-x86_64-2.6/pylibmc
copying pylibmc/test.py -> build-2.6/lib.linux-x86_64-2.6/pylibmc
copying pylibmc/__init__.py -> build-2.6/lib.linux-x86_64-2.6/pylibmc
copying pylibmc/client.py -> build-2.6/lib.linux-x86_64-2.6/pylibmc
copying pylibmc/pools.py -> build-2.6/lib.linux-x86_64-2.6/pylibmc
copying pylibmc/__main__.py -> build-2.6/lib.linux-x86_64-2.6/pylibmc
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building '_pylibmc' extension
creating build-2.6/temp.linux-x86_64-2.6
x86_64-pc-linux-gnu-gcc -pthread -O2 -pipe -fPIC -DUSE_ZLIB -I/usr/include/python2.6 -c _pylibmcmodule.c -o build-2.6/temp.linux-x86_64-2.6/_pylibmcmodule.o -fno-strict-aliasing
In file included from _pylibmcmodule.c:34:0:
_pylibmcmodule.h:193:5: error: token "@" is not valid in preprocessor expressions
_pylibmcmodule.c: In function 'PylibMC_Client_get_stats':
_pylibmcmodule.c:1772:5: error: token "@" is not valid in preprocessor expressions
_pylibmcmodule.c:1779:21: warning: assignment makes pointer from integer without a cast [enabled by default]
_pylibmcmodule.c: In function '_set_error':
_pylibmcmodule.c:1880:5: error: token "@" is not valid in preprocessor expressions
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
 * ERROR: dev-python/pylibmc-1.2.3 failed (compile phase):
 *   Building failed with CPython 2.6 in distutils_building() function

Portage 2.2.0_alpha137 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.15-r3, 3.5.4-vs2.3.4.3 x86_64)
=================================================================
System uname: Linux-3.5.4-vs2.3.4.3-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
Timestamp of tree: Unknown
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.5.4-r4, 2.6.8, 2.7.3-r2, 3.2.3-r1, 3.3.0
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl amd64 berkdb bzip2 cairo cli compat cracklib crypt cups cxx dbus dri fontconfig fortran gdbm gpm gudev iconv ipv6 jpeg minizip mmx modules mssql mudflap multilib ncurses nls nptl odbc opengl openmp pam pcre png pppd python qt3support readline script session sqlite sse sse2 ssl tcpd threads tiff tk truetype unicode webkit xml 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="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" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa radeon" 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.5 2.6 2.7 3.2 3.3 2.7-pypy-1.8 2.7-pypy-1.9 2.5-jython"
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 Johan Bergström 2012-10-17 03:23:53 UTC
What version of libmemcached are you building against?
Comment 2 Johan Bergström 2012-10-17 03:28:01 UTC
This occurs with libmemcached 0.12. It seems to be an upstream bug:
libmemcached-1.0/configure.h:#define LIBMEMCACHED_VERSION_HEX @PANDORA_HEX_VERSION@
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2012-11-13 14:43:39 UTC
# USE_PYTHON="2.5 2.6 2.7-pypy-1.9" ebuild pylibmc-1.2.3.ebuild clean install
Writing /mnt/gen2/TmpDir/portage/dev-python/pylibmc-1.2.3/temp/images/2.7-pypy-1.9/usr/lib64/pypy1.9/site-packages/pylibmc-1.2.3-py2.7.egg-info
>>> Completed installing pylibmc-1.2.3 into /mnt/gen2/TmpDir/portage/dev-python/pylibmc-1.2.3/image/

built fine here. libmemcached 0.12 would be 2007-8 vintage.

This
x86_64-pc-linux-gnu-gcc -pthread -march=athlon64 -pipe -fomit-frame-pointer -O2 -fPIC -DUSE_ZLIB -I/usr/include/python2.6 -c _pylibmcmodule.c -o build-2.6/temp.linux-x86_64-2.6/_pylibmcmodule.o -fno-strict-aliasing

is the line where it trips.  I can display the 'what' but certainly not the 'why'
from above traceback; "token "@" is not valid in preprocessor expressions"
unless I'm missing something,

 # grep "@" /mnt/gen2/TmpDir/portage/dev-python/pylibmc-1.2.3/work/pylibmc-1.2.3/{_pylibmcmodule.h,_pylibmcmodule.c}

yields blank.  In the build that fails the preprocessor expressions appear to feature token '@', build in my system they're absent.  Someone knowing more than I can give this more meaning.
Comment 4 Johan Bergström 2012-11-13 20:28:25 UTC
(In reply to comment #3)
> # USE_PYTHON="2.5 2.6 2.7-pypy-1.9" ebuild pylibmc-1.2.3.ebuild clean install
> Writing
> /mnt/gen2/TmpDir/portage/dev-python/pylibmc-1.2.3/temp/images/2.7-pypy-1.9/
> usr/lib64/pypy1.9/site-packages/pylibmc-1.2.3-py2.7.egg-info
> >>> Completed installing pylibmc-1.2.3 into /mnt/gen2/TmpDir/portage/dev-python/pylibmc-1.2.3/image/
> 
> built fine here. libmemcached 0.12 would be 2007-8 vintage.
> 
> This
> x86_64-pc-linux-gnu-gcc -pthread -march=athlon64 -pipe -fomit-frame-pointer
> -O2 -fPIC -DUSE_ZLIB -I/usr/include/python2.6 -c _pylibmcmodule.c -o
> build-2.6/temp.linux-x86_64-2.6/_pylibmcmodule.o -fno-strict-aliasing
> 
> is the line where it trips.  I can display the 'what' but certainly not the
> 'why'
> from above traceback; "token "@" is not valid in preprocessor expressions"
> unless I'm missing something,
> 
>  # grep "@"
> /mnt/gen2/TmpDir/portage/dev-python/pylibmc-1.2.3/work/pylibmc-1.2.3/
> {_pylibmcmodule.h,_pylibmcmodule.c}
> 
> yields blank.  In the build that fails the preprocessor expressions appear
> to feature token '@', build in my system they're absent.  Someone knowing
> more than I can give this more meaning.

I'm not sure what you're talking about here. As I already noted, it's from a bad m4 expansion (It never expanded).

My above comment was a typo - 0.12 should be 1.0.12. The bug Patrick is hitting was notified upstream and was fixed in 1.0.13 (couldn't find the bug I filed in launchpad for whatever reason). You can find the patch at our bugzilla here: https://bugs.gentoo.org/show_bug.cgi?id=438166

Since we don't have 1.0.12 in tree, this bug should probably be closed anyway.
Comment 5 Johan Bergström 2012-11-14 05:38:41 UTC
Closing - libmemcached 1.0.12 not in tree and bug is filed against pylibmc.