Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 735982

Summary: sci-geosciences/gpsd: compile fails if CFLAGS contains --param
Product: Gentoo Linux Reporter: Stephen Cavilia <sac>
Component: Current packagesAssignee: Sci-geo Project <sci-geosciences>
Status: RESOLVED UPSTREAM    
Severity: normal CC: gem, jstein, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stephen Cavilia 2020-08-05 02:22:35 UTC
When using CFLAGS such as "-march=znver2 --param l1-cache-line-size=64 --param l1-cache-size=32 -O2 -pipe," gpsd fails to compile:

x86_64-pc-linux-gnu-gcc -pthread -o packet-py_3_7_8_final_0.cpython-37m-x86_64-linux-gnu.so -c -Wno-unused-result -Wsign-compare -march=znver2 --param -O2 -pipe -O2 -fPIC -DNDEBUG -I/usr/include/python3.7m packet.c
cc1: error: -O2: --param arguments should be of the form NAME=VALUE

The argument after "--param" gets stripped off when compiling some files (python related?) and the compiler errors out on the invalid command line.

Reproducible: Always
Comment 1 James Browning 2020-08-09 14:34:06 UTC
This happens in upstreams git head.
Comment 2 James Browning 2020-08-09 18:08:48 UTC
Actually it looks like a duplicate of https://github.com/SCons/scons/issues/3017 .
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-09 23:52:12 UTC
(In reply to James Browning from comment #2)
> Actually it looks like a duplicate of
> https://github.com/SCons/scons/issues/3017 .

Thanks!