Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
chromium 67/68 - problems compiling (clang include paths)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
actionbuddha
n00b
n00b


Joined: 22 May 2008
Posts: 6

PostPosted: Wed Jun 20, 2018 12:03 pm    Post subject: chromium 67/68 - problems compiling (clang include paths) Reply with quote

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
View user's profile Send private message
maolang
n00b
n00b


Joined: 14 Sep 2018
Posts: 22

PostPosted: Fri Sep 14, 2018 2:00 am    Post subject: Reply with quote

Have had this issue with chromium 67, 68, 69 and now 70
Back to top
View user's profile Send private message
maolang
n00b
n00b


Joined: 14 Sep 2018
Posts: 22

PostPosted: Fri Sep 14, 2018 2:03 am    Post subject: Reply with quote

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
View user's profile Send private message
maolang
n00b
n00b


Joined: 14 Sep 2018
Posts: 22

PostPosted: Fri Sep 14, 2018 2:04 am    Post subject: Reply with quote

With 70, this ebuild hack, does not wok anymore and fails
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum