Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 735982 - sci-geosciences/gpsd: compile fails if CFLAGS contains --param
Summary: sci-geosciences/gpsd: compile fails if CFLAGS contains --param
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-05 02:22 UTC by Stephen Cavilia
Modified: 2021-08-09 23:52 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 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!