Joined: 22 May 2008
|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:
In file included from ../../build/build_config.h:45:
/usr/include/unistd.h:229:10: fatal error: 'stddef.h' file not found
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.