Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 720894 - dev-cpp/glibmm does not respect CFLAGS
Summary: dev-cpp/glibmm does not respect CFLAGS
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-04 06:33 UTC by Agostino Sarubbo
Modified: 2020-07-19 12:32 UTC (History)
0 users

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


Attachments
build.log (build.log,366.30 KB, text/plain)
2020-05-04 06:33 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-05-04 06:33:41 UTC
This is an auto-filled bug because dev-cpp/glibmm does not respect CFLAGS.
The issue was originally discovered on arm64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
To reproduce this issue you may want to set CFLAGS="${CFLAGS} -frecord-gcc-switches".
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-04 06:33:52 UTC
Created attachment 635914 [details]
build.log

build log and emerge --info
Comment 2 Mart Raudsepp gentoo-dev 2020-07-19 12:32:52 UTC
I don't know what's going on here, but it works fine for me.

Note that the bug report talks about CFLAGS not being respected, but that's correct - CXXFLAGS are to be respected, not CFLAGS, so the reproducer here is wrong.
That said, it works fine for me, I suspect some older incarnation of meson.eclass or your custom CXX was messing this up, as seen in the logs:


WARNING: Env var CXX seems to point to the cross compiler.
This is probably wrong, it should always point to the native compiler.
WARNING: Env var AR seems to point to the cross compiler.
This is probably wrong, it should always point to the native compiler.
WARNING: Env var CXX seems to point to the cross compiler.
This is probably wrong, it should always point to the native compiler.
C++ compiler for the host machine: aarch64-unknown-linux-gnu-g++ (gcc 9.3.0 "aarch64-unknown-linux-gnu-g++ (Gentoo 9.3.0 p2) 9.3.0")
C++ linker for the host machine: aarch64-unknown-linux-gnu-g++ GNU ld.bfd 2.34
WARNING: Env var AR seems to point to the cross compiler.
This is probably wrong, it should always point to the native compiler.