View previous topic :: View next topic |
Author |
Message |
actionbuddha n00b
Joined: 22 May 2008 Posts: 6
|
Posted: Wed Jun 20, 2018 12:03 pm Post subject: chromium 67/68 - problems compiling (clang include paths) |
|
|
I am having trouble compiling chromium, which fails with the following error:
Code: |
In file included from ../../build/build_config.h:45:
/usr/include/unistd.h:229:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
^~~~~~~~~~
2 warnings and 1 error generated.
ninja: build stopped: subcommand failed.
|
This is reproducible on two machines, with both clang 5.0.2 and 6.0.0.
I've found plenty of references to clang include path locations online but have no clear idea how to fix things here. I did try amending CLAGS with '-I /usr/lib/llvm/$version/include/' which caused the build to break in other ways, and anyway seems a rather brute force approach.
I do typically have distcc enabled but get the same result with it disabled.
This forum isn't littered with posts like this so I suspect I am doing something obvious wrong, but I have run out of ideas.
Any help appreciated.
Cheers
Paul |
|
Back to top |
|
|
maolang n00b
Joined: 14 Sep 2018 Posts: 22
|
Posted: Fri Sep 14, 2018 2:00 am Post subject: |
|
|
Have had this issue with chromium 67, 68, 69 and now 70 |
|
Back to top |
|
|
maolang n00b
Joined: 14 Sep 2018 Posts: 22
|
Posted: Fri Sep 14, 2018 2:03 am Post subject: |
|
|
The only way i can build 67, 68, 69 is by commenting a few lines off the ebuild so i can happily build it with GCC instead and it builds fine instead of perma-faling with useless clang
Code: | src_configure() {
# Calling this here supports resumption via FEATURES=keepwork
python_setup
local myconf_gn=""
# Make sure the build system will use the right tools, bug #340795.
tc-export AR CC CXX NM
# if ! tc-is-clang; then
# # Force clang since gcc is pretty broken at the moment.
# CC=${CHOST}-clang
# CXX=${CHOST}-clang++
# strip-unsupported-flags
# fi
if tc-is-clang; then
|
Added code tags to preserve the indentation of the ebuild segment. -- desultory |
|
Back to top |
|
|
maolang n00b
Joined: 14 Sep 2018 Posts: 22
|
Posted: Fri Sep 14, 2018 2:04 am Post subject: |
|
|
With 70, this ebuild hack, does not wok anymore and fails |
|
Back to top |
|
|
|