Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652172 - dev-qt/qtwebengine-5.9.4: CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS not respected for most of the build
Summary: dev-qt/qtwebengine-5.9.4: CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS not respected fo...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 697594 748237 (view as bug list)
Depends on: 630834
Blocks: cflags tc-directly ldflags
  Show dependency tree
 
Reported: 2018-04-01 22:37 UTC by Alexander Miller
Modified: 2021-05-20 07:11 UTC (History)
6 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 Alexander Miller 2018-04-01 22:37:38 UTC
Here are some numbers obtained by grepping the build log:

First, for gn bootstrapping, ninja doesn't run in verbose mode, so I can't see the command lines. I count 308 + 16 invocations of CXX + CC and I think they respect the flags.

Then, gn is rebuilt using itself, and again ninja isn't verbose. There are 533 + 73 invocations of CXX + CC, but this time I believe they don't respect the flags. (I looked at one object file in each case for clues.)

During the main ninja run, there are 12277 and 667 invocations of /usr/bin/x86_64-pc-linux-gnu-g++ and /usr/bin/x86_64-pc-linux-gnu-gcc, respectively. With CXX and CC, there should be no path. More importantly, only 91 and zero use the proper *FLAGS values. 13 g++ invocations do linking and none of them respects LDFLAGS.

Finally there are 82 invocations of x86_64-pc-linux-gnu-g++ directly from make which do respect all flags. 7 of them do linking.

In summary, only a tiny fraction of the files get built with the correct *FLAGS. Almost everything generated with gn doesn't respect them. All the stuff inherited from chromium doesn't. Interestingly, there are a few qt-specific files with the *FLAGS applied in the gn generated batch; they could give a clue how the flags could be handled for the rest.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2018-04-03 03:43:28 UTC
(In reply to Alexander Miller from comment #0)
> for gn bootstrapping, ninja doesn't run in verbose mode, so I can't
> see the command lines.

Patch #1 from patchset in bug #630834 should increase verbosity.
Comment 2 Andreas Sturmlechner gentoo-dev 2019-10-13 13:59:11 UTC
*** Bug 697594 has been marked as a duplicate of this bug. ***
Comment 3 Agostino Sarubbo gentoo-dev 2021-03-24 13:27:10 UTC
*** Bug 748237 has been marked as a duplicate of this bug. ***