Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588270 - Kernel won't build with hardened-musl
Summary: Kernel won't build with hardened-musl
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2016-07-07 21:44 UTC by qweo
Modified: 2022-06-23 06:01 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Error messages (genkernel.log.lzma,166.85 KB, application/x-lzma)
2016-07-07 21:47 UTC, qweo
Details
emerge --info output (emerge-info,4.41 KB, text/plain)
2016-07-07 21:48 UTC, qweo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description qweo 2016-07-07 21:44:01 UTC
Building hardened, gentoo, vanilla or rt-sources on a new hardened-musl system fails as shown in genkernel.log.
Comment 1 qweo 2016-07-07 21:47:52 UTC
Created attachment 439998 [details]
Error messages
Comment 2 qweo 2016-07-07 21:48:29 UTC
Created attachment 440000 [details]
emerge --info output
Comment 3 Felix Janda 2016-07-07 22:12:27 UTC
You should be able to work around this issue by disabling BUILD_DOCSRC.


The issues from the log (there are probably more):

Documentation/misc-devices/mei/mei-amt-version.c:76:27: fatal error: bits/wordsize.h: No such file or directory
Documentation/networking/timestamping/hwtstamp_config.c:114:18: error: ‘caddr_t’ undeclared (first use in this function)
Documentation/networking/timestamping/timestamping.c:296:18: error: ‘caddr_t’ undeclared (first use in this function)

The second and third one can be solved by replacing caddr_t by (void *).
The first one can probably be solved by deleting the #include <bits/wordsize.h> line.
Comment 4 Mike Gilbert gentoo-dev 2016-07-13 01:58:13 UTC
Giving this to the musl people. Re-assign it if it is not your bug.
Comment 5 Anthony Basile gentoo-dev 2016-07-13 14:52:00 UTC
(In reply to Felix Janda from comment #3)
> You should be able to work around this issue by disabling BUILD_DOCSRC.
> 
> 
> The issues from the log (there are probably more):
> 
> Documentation/misc-devices/mei/mei-amt-version.c:76:27: fatal error:
> bits/wordsize.h: No such file or directory
> Documentation/networking/timestamping/hwtstamp_config.c:114:18: error:
> ‘caddr_t’ undeclared (first use in this function)
> Documentation/networking/timestamping/timestamping.c:296:18: error:
> ‘caddr_t’ undeclared (first use in this function)
> 
> The second and third one can be solved by replacing caddr_t by (void *).
> The first one can probably be solved by deleting the #include
> <bits/wordsize.h> line.

DOCSRC is full of type errors like that and I've hit a few in uclibc.  Is there any other issues with the kernel source proper?
Comment 6 Felix Janda 2016-07-13 19:44:14 UTC
(In reply to Anthony Basile from comment #5)

Once there was a problem with the arm build, introduced in commit
8512287a8165592466cb9cb347ba94892e9c56a5 (in 4.0-rc6) and fixed in commit
13ee9fdba96577eb1583dcd7b15767ef623fae12 (in 4.2-rc1, CCed to stable).

That's the only thing I am aware.
Comment 7 Michael 'veremitz' Everitt 2019-10-24 14:15:42 UTC
Is this still a thing?

I'm sure I've built kernels on musl non-hardened systems without issue?