Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715648 - app-forensics/honggfuzz requires glibc-specific header files
Summary: app-forensics/honggfuzz requires glibc-specific header files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-03-31 17:19 UTC by Toralf Förster
Modified: 2021-11-29 19:33 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.28 KB, text/plain)
2020-03-31 17:19 UTC, Toralf Förster
Details
app-forensics:honggfuzz-2.1:20200331-161612.log (app-forensics:honggfuzz-2.1:20200331-161612.log,4.18 KB, text/plain)
2020-03-31 17:19 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,171.66 KB, text/plain)
2020-03-31 17:19 UTC, Toralf Förster
Details
environment (environment,50.26 KB, text/plain)
2020-03-31 17:19 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,19.43 KB, application/x-bzip)
2020-03-31 17:19 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,13.48 KB, application/x-bzip)
2020-03-31 17:19 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-31 17:19:23 UTC
x86_64-gentoo-linux-musl-gcc -c -O2 -pipe -march=native -std=c11 -I/usr/local/include -D_GNU_SOURCE -Wall -Wextra -Wno-format-truncation -Wno-override-init -I. -D_FILE_OFFSET_BITS=64 -D_HF_ARCH_LINUX  -o subproc.o subproc.c
x86_64-gentoo-linux-musl-gcc -c -O2 -pipe -march=native -std=c11 -I/usr/local/include -D_GNU_SOURCE -Wall -Wextra -Wno-format-truncation -Wno-override-init -I. -D_FILE_OFFSET_BITS=64 -D_HF_ARCH_LINUX  -o linux/arch.o linux/arch.c
linux/arch.c:37:10: fatal error: sys/cdefs.h: No such file or directory
   37 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200328-141627

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.42.0 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Tue Mar 31 15:51:58 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO app-forensics/honggfuzz
[ebuild  N    ] app-forensics/honggfuzz-2.1
Comment 1 Toralf Förster gentoo-dev 2020-03-31 17:19:26 UTC
Created attachment 628040 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-31 17:19:29 UTC
Created attachment 628042 [details]
app-forensics:honggfuzz-2.1:20200331-161612.log
Comment 3 Toralf Förster gentoo-dev 2020-03-31 17:19:32 UTC
Created attachment 628044 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-31 17:19:35 UTC
Created attachment 628046 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-31 17:19:38 UTC
Created attachment 628048 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-31 17:19:41 UTC
Created attachment 628050 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-03-31 17:50:33 UTC
musl upstream has a FAQ entry specifically for this error:
https://wiki.musl-libc.org/faq.html#Q:-When-compiling-something-against-musl,-I-get-error-messages-about-%3Ccode%3Esys/cdefs.h%3C/code%3E

We will need to check/report upstream and patch affected code temporarily.
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2020-03-31 18:16:41 UTC
(In reply to Michael 'veremitz' Everitt from comment #7)
> musl upstream has a FAQ entry specifically for this error:
> https://wiki.musl-libc.org/faq.html#Q:-When-compiling-something-against-musl,
> -I-get-error-messages-about-%3Ccode%3Esys/cdefs.h%3C/code%3E
> 
> We will need to check/report upstream and patch affected code temporarily.

You might want to report it directly upstream:

$ LANG=C eix hongg | fgrep -i homepage
     Homepage:            https://google.github.io/honggfuzz/
Comment 9 Marek Szuba archtester gentoo-dev 2021-11-29 13:20:45 UTC
This particular issue has already been fixed on the upstream master branch, unfortunately it has not been enough - now compilation fails on missing sys/queue.h. Which according to https://wiki.musl-libc.org/faq.html#Q:-Why-is-%3Ccode%3Esys/queue.h%3C/code%3E-not-included? is not included in musl by design.
Comment 10 Larry the Git Cow gentoo-dev 2021-11-29 13:29:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1f1ff8b9e1afdf11d52d56797c74559319b1280

commit d1f1ff8b9e1afdf11d52d56797c74559319b1280
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2021-11-29 13:28:19 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2021-11-29 13:29:44 +0000

    profiles/features/musl: mask app-forensics/honggfuzz
    
    Bug: https://bugs.gentoo.org/715648
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 profiles/features/musl/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 11 Marek Szuba archtester gentoo-dev 2021-11-29 13:33:09 UTC
Closing this, I really don't think we should open the can of worms that maintaining patches migrating honggfuzz to a different queue library would be.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-29 13:35:15 UTC
I suspect we can just depend on queue-standalone which exists for these purposes.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-29 13:35:55 UTC
(In reply to Sam James from comment #12)
> I suspect we can just depend on queue-standalone which exists for these
> purposes.

https://wiki.gentoo.org/wiki/User:Sam/Musl_porting_notes#Standalone_packages
Comment 14 Larry the Git Cow gentoo-dev 2021-11-29 19:33:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad8f95bc0feb13a824d6287f63960e842c3d8679

commit ad8f95bc0feb13a824d6287f63960e842c3d8679
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2021-11-29 19:32:37 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2021-11-29 19:33:49 +0000

    app-forensics/honggfuzz: fix building against musl
    
    With many thanks to sam for having pointed me to queue-standalone!
    
    Closes: https://bugs.gentoo.org/715648
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 .../files/honggfuzz-2.4-headers-musl.patch         | 45 ++++++++++++++++++++++
 app-forensics/honggfuzz/honggfuzz-2.4.ebuild       |  6 ++-
 2 files changed, 49 insertions(+), 2 deletions(-)