Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700270 - dev-db/mysql-connector-c++-8.0.18 mangles CFLAGS="--param ..."
Summary: dev-db/mysql-connector-c++-8.0.18 mangles CFLAGS="--param ..."
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-16 15:43 UTC by Herb Miller Jr.
Modified: 2019-11-17 13:58 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 Herb Miller Jr. 2019-11-16 15:43:55 UTC
Build succeeds when I set CFLAGS and CXXFLAGS to: "-march=native -O2 -pipe"

Build fails when I set them to (for Ryzen 7 1700): "-march=znver1 -mtune=znver1 -mcx16 -msahf -mmovbe -msha -mabm -mbmi -mbmi2 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mclflushopt -mxsavec -mxsaves -mmwaitx -mclzero --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe"

Looks like something is not parsing the --param flags correctly.

Reproducible: Always

Steps to Reproduce:
1. See description
Actual Results:  
Build fails

Expected Results:  
Build succeeds
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2019-11-17 13:48:11 UTC
Please re-read https://wiki.gentoo.org/wiki/Safe_CFLAGS, you set it the wrong way.

Also keep in mind that Gentoo toolchain recommends that you do NOT set these parameters. Recent compilers knowing your architecture will detect that on their own...
Comment 2 Herb Miller Jr. 2019-11-17 13:58:24 UTC
Ah, should have been "--param=l1-cache-line-size=64". My mistake. Thanks for the quick follow-up. It works fine when I set it correctly.

Note that distcc doesn't work well with autodetection so the recommendation doesn't fit my use case.