Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 713162

Summary: dev-util/android-tools-9.0.0_p3-r1 : core/.../trace.h: fatal error: sys/cdefs.h: No such file or directory
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: zmedico
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: cdefs.h
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-util:android-tools-9.0.0_p3-r1:20200318-014833.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2

Description Toralf Förster gentoo-dev 2020-03-18 08:38:57 UTC
                 from core/adb/transport.h:33,
                 from core/adb/transport.cpp:20:
core/include/cutils/trace.h:31:10: fatal error: sys/cdefs.h: No such file or directory
   31 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

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

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

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

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) *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 18 Mar 2020 00:38:26 +0000
emerge -qpvO dev-util/android-tools
[ebuild  N    ] dev-util/android-tools-9.0.0_p3-r1  USE="-python" PYTHON_TARGETS="python3_6 -python3_7"
Comment 1 Toralf Förster gentoo-dev 2020-03-18 08:39:00 UTC
Created attachment 621418 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-18 08:39:02 UTC
Created attachment 621420 [details]
dev-util:android-tools-9.0.0_p3-r1:20200318-014833.log
Comment 3 Toralf Förster gentoo-dev 2020-03-18 08:39:05 UTC
Created attachment 621422 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-18 08:39:08 UTC
Created attachment 621424 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-18 08:39:11 UTC
Created attachment 621426 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-18 08:39:13 UTC
Created attachment 621428 [details]
logs.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-03-18 21:35:36 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.