Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828806 - dev-libs/aml-0.2.0 - ../.../queue.h: fatal error: sys/cdefs.h: No such file or directory
Summary: dev-libs/aml-0.2.0 - ../.../queue.h: fatal error: sys/cdefs.h: No such file o...
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:
 
Reported: 2021-12-10 15:14 UTC by Toralf Förster
Modified: 2023-03-19 10:46 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.38 KB, text/plain)
2021-12-10 15:14 UTC, Toralf Förster
Details
dev-libs:aml-0.2.0:20211210-072514.log (dev-libs:aml-0.2.0:20211210-072514.log,6.46 KB, text/plain)
2021-12-10 15:14 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,78.41 KB, text/plain)
2021-12-10 15:14 UTC, Toralf Förster
Details
environment (environment,90.66 KB, text/plain)
2021-12-10 15:14 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,40.70 KB, application/x-bzip)
2021-12-10 15:14 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,2.04 KB, application/x-bzip)
2021-12-10 15:14 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,21.72 KB, application/x-bzip)
2021-12-10 15:14 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 2021-12-10 15:14:01 UTC
too long lines were shrinked:

[1/4] x86_64-gentoo-linux-musl-gcc -Ilibaml.so.0.0.0.p -I. -I../aml-0.2.0 -I../aml-0.2.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 '-DPROJECT_VERSION="0.2.0"' -D_POSIX_C_SOURCE=200809L -fvisibility=hidden -Wmissing-prototypes -DNDEBUG -pipe -march=native 
FAILED: libaml.so.0.0.0.p/src_thread-pool.c.o 
x86_64-gentoo-linux-musl-gcc -Ilibaml.so.0.0.0.p -I. -I../aml-0.2.0 -I../aml-0.2.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 '-DPROJECT_VERSION="0.2.0"' -D_POSIX_C_SOURCE=200809L -fvisibility=hidden -Wmissing-prototypes -DNDEBUG -pipe -march=native -fno-d
In file included from ../aml-0.2.0/src/thread-pool.c:29:
../aml-0.2.0/include/sys/queue.h:38:10: fatal error: sys/cdefs.h: No such file or directory
   38 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
[2/4] x86_64-gentoo-linux-musl-gcc -Ilibaml.so.0.0.0.p -I. -I../aml-0.2.0 -I../aml-0.2.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 '-DPROJECT_VERSION="0.2.0"' -D_POSIX_C_SOURCE=200809L -fvisibility=hidden -Wmissing-prototypes -DNDEBUG -pipe -march=native 

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.57.0 *
php cli:

  HEAD of ::gentoo
commit d23eaa3d9aaad7387f7e6bffa9f15e7cf795b653
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 10 06:07:03 2021 +0000

    2021-12-10 06:07:01 UTC

emerge -qpvO dev-libs/aml
[ebuild  N    ] dev-libs/aml-0.2.0  USE="-examples"
Comment 1 Toralf Förster gentoo-dev 2021-12-10 15:14:03 UTC
Created attachment 758150 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-10 15:14:03 UTC
Created attachment 758151 [details]
dev-libs:aml-0.2.0:20211210-072514.log
Comment 3 Toralf Förster gentoo-dev 2021-12-10 15:14:05 UTC
Created attachment 758152 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-12-10 15:14:06 UTC
Created attachment 758153 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-12-10 15:14:07 UTC
Created attachment 758154 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-10 15:14:08 UTC
Created attachment 758155 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-12-10 15:14:09 UTC
Created attachment 758156 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2021-12-11 02:34:41 UTC
The bug has been closed via the following commit(s):

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

commit f1bcd1732a3194be1a7f69bf48d3dc42c332ff4f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-11 02:26:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-11 02:34:30 +0000

    dev-libs/aml: add 0.2.1, fix musl build
    
    * Add 0.2.1
    * Fixes musl build by depending on queue-standalone.
    
    Closes: https://bugs.gentoo.org/828806
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/aml/Manifest         |  1 +
 dev-libs/aml/aml-0.2.1.ebuild | 40 ++++++++++++++++++++++++++++++++++++++++
 dev-libs/aml/aml-9999.ebuild  | 20 ++++++++++++++++----
 3 files changed, 57 insertions(+), 4 deletions(-)
Comment 9 Larry the Git Cow gentoo-dev 2023-03-19 10:46:17 UTC
The bug has been referenced in the following commit(s):

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

commit fb1defa69d74ead1d8a85c962be1411fde307b12
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2023-03-19 10:42:12 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2023-03-19 10:45:54 +0000

    dev-libs/aml: Bump to 0.3.0, drop old 0.2.2, fixes 9999
    
    We previously dropped the bundled queue.h in favour of the system-wide version
    to fix musl. However, 0.3.0 uses a macro that only appears in the bundled
    version (from FreeBSD?), so patch that back in.
    
    Bug: https://bugs.gentoo.org/828806
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 dev-libs/aml/Manifest                               |  2 +-
 dev-libs/aml/{aml-0.2.2.ebuild => aml-0.3.0.ebuild} | 10 +++++++---
 dev-libs/aml/aml-9999.ebuild                        | 14 +++++++++-----
 dev-libs/aml/files/aml-0.3.0-queue.patch            | 21 +++++++++++++++++++++
 4 files changed, 38 insertions(+), 9 deletions(-)