Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607776 - x11-wm/xpra-1.0.1 build failure - incorrect processing of CFLAGS
Summary: x11-wm/xpra-1.0.1 build failure - incorrect processing of CFLAGS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
Depends on:
Reported: 2017-01-31 08:36 UTC by Fabian Henze
Modified: 2017-02-01 17:33 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Henze 2017-01-31 08:36:33 UTC
Since xpra 1.0.x the build fails with an error related to incorrect processing of CFLAGS (as it seems).
My CFLAGS are: "-O2 -pipe -fomit-frame-pointer -march=haswell -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192"
(Which is the same as -O2 -march=native, so no -fomg-optimize ;-))

The relevant build output is:

x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -O2 -pipe -fomit-frame-pointer -march=haswell -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -fno-strict-aliasing /var/tmp/portage/x11-wm/xpra-1.0.1/work/xpra-1.0.1-python2_7/temp.linux-x86_64-2.7/xpra/x11/bindings/wait_for_x_server.o -L/usr/lib64 -lX11 -lpython2.7 -o /var/tmp/portage/x11-wm/xpra-1.0.1/work/xpra-1.0.1-python2_7/lib/xpra/x11/bindings/ -O2 -pipe -fomit-frame-pointer -march=haswell -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 --param l1-cache-size=32 l1-cache-line-size=64 l2-cache-size=8192 -fno-strict-aliasing -Wl,-O1 -Wl,--as-needed -Wall
x86_64-pc-linux-gnu-gcc: error: l1-cache-line-size=64: No such file or directory
x86_64-pc-linux-gnu-gcc: error: l2-cache-size=8192: No such file or directory
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
Comment 1 Hendrik v. Raven 2017-02-01 15:11:08 UTC
Hit the same bug, it's due to their 'advanced' filtering in beginning in line 699.
It removes duplicates from the CFLAGS, thus removing the multiple --param entries.
Comment 2 Michael Weber (RETIRED) gentoo-dev 2017-02-01 17:33:30 UTC
commit 64be6ff3b3f656796f82582e39c7dbd164094c49
Author: Michael Weber <>
Date:   Wed Feb 1 18:32:46 2017 +0100

    x11-wm/xpra: do not interfere with '--param key=value' gcc args (bug 607776, thanks Fabian Henze and Hendrik v. Raven).
    Package-Manager: Portage-2.3.3, Repoman-2.3.1