public inbox for gentoo-musl@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-musl] Failed to build Linux kernel on musl
@ 2016-07-20  9:17 Lei Zhang
  2016-07-20  9:37 ` Felix Janda
  0 siblings, 1 reply; 3+ messages in thread
From: Lei Zhang @ 2016-07-20  9:17 UTC (permalink / raw
  To: gentoo-musl

Hi,

I just built a stage4 from the vanilla musl stage3, with clang as the
default compiler and all packages rebuilt with clang.

Now I was trying to build Linux kernel in this stage4, but failed with
certain errors. To name one of them:

Documentation/misc-devices/mei/mei-amt-version.c:76:27: fatal error:
bits/wordsize.h: No such file or directory

So are there any caveats I should take before building the kernel on
musl, patches or certain config options?


Thanks,
Lei


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-musl] Failed to build Linux kernel on musl
  2016-07-20  9:17 [gentoo-musl] Failed to build Linux kernel on musl Lei Zhang
@ 2016-07-20  9:37 ` Felix Janda
  2016-07-20 10:14   ` Lei Zhang
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Janda @ 2016-07-20  9:37 UTC (permalink / raw
  To: Lei Zhang; +Cc: gentoo-musl

Lei Zhang wrote:
> Hi,
> 
> I just built a stage4 from the vanilla musl stage3, with clang as the
> default compiler and all packages rebuilt with clang.
> 
> Now I was trying to build Linux kernel in this stage4, but failed with
> certain errors. To name one of them:
> 
> Documentation/misc-devices/mei/mei-amt-version.c:76:27: fatal error:
> bits/wordsize.h: No such file or directory

https://bugs.gentoo.org/show_bug.cgi?id=588270

TL;DR just disable BUILD_DOCSRC.


Felix


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-musl] Failed to build Linux kernel on musl
  2016-07-20  9:37 ` Felix Janda
@ 2016-07-20 10:14   ` Lei Zhang
  0 siblings, 0 replies; 3+ messages in thread
From: Lei Zhang @ 2016-07-20 10:14 UTC (permalink / raw
  To: Felix Janda; +Cc: gentoo-musl

2016-07-20 17:37 GMT+08:00 Felix Janda <felix.janda@posteo.de>:
> Lei Zhang wrote:
>> Hi,
>>
>> I just built a stage4 from the vanilla musl stage3, with clang as the
>> default compiler and all packages rebuilt with clang.
>>
>> Now I was trying to build Linux kernel in this stage4, but failed with
>> certain errors. To name one of them:
>>
>> Documentation/misc-devices/mei/mei-amt-version.c:76:27: fatal error:
>> bits/wordsize.h: No such file or directory
>
> https://bugs.gentoo.org/show_bug.cgi?id=588270
>
> TL;DR just disable BUILD_DOCSRC.

It works. Thanks!

The kernel config even automatically picks gcc, so I don't need to
worry about using clang as the system-wide default compiler :)


Lei


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-20 10:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-20  9:17 [gentoo-musl] Failed to build Linux kernel on musl Lei Zhang
2016-07-20  9:37 ` Felix Janda
2016-07-20 10:14   ` Lei Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox