Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829239 - sys-devel/dwz-0.15-r1 - dwz.c: fatal error: error.h: No such file or directory
Summary: sys-devel/dwz-0.15-r1 - dwz.c: fatal error: error.h: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-12-15 09:38 UTC by Toralf Förster
Modified: 2024-12-01 11:26 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.77 KB, text/plain)
2021-12-15 09:38 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,151.96 KB, text/plain)
2021-12-15 09:39 UTC, Toralf Förster
Details
environment (environment,54.32 KB, text/plain)
2021-12-15 09:39 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,16.64 KB, application/x-bzip)
2021-12-15 09:39 UTC, Toralf Förster
Details
sys-devel:dwz-0.14:20211215-043849.log (sys-devel:dwz-0.14:20211215-043849.log,2.71 KB, text/plain)
2021-12-15 09:39 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,14.32 KB, application/x-bzip)
2021-12-15 09:39 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-15 09:38:57 UTC
too long lines were shrinked:

make -j4 
x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wall -W -D_FILE_OFFSET_BITS=64 -DDWZ_VERSION='"0.14"' -DFSF_YEARS='"1992-2021"' -DRH_YEARS='"2001-2021"' -DSUSE_YEARS='"2019-2021"'   -c -o dwz.o dwz.c
x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wall -W -D_FILE_OFFSET_BITS=64 -DDWZ_VERSION='"0.14"' -DFSF_YEARS='"1992-2021"' -DRH_YEARS='"2001-2021"' -DSUSE_YEARS='"2019-2021"'   -c -o hashtab.o hashtab.c
x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wall -W -D_FILE_OFFSET_BITS=64 -DDWZ_VERSION='"0.14"' -DFSF_YEARS='"1992-2021"' -DRH_YEARS='"2001-2021"' -DSUSE_YEARS='"2019-2021"'   -c -o sha1.o sha1.c
dwz.c:23:10: fatal error: error.h: No such file or directory
   23 | #include <error.h>
      |          ^~~~~~~~~
compilation terminated.
x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wall -W -D_FILE_OFFSET_BITS=64 -DDWZ_VERSION='"0.14"' -DFSF_YEARS='"1992-2021"' -DRH_YEARS='"2001-2021"' -DSUSE_YEARS='"2019-2021"'   -c -o dwarfnames.o dwarfnames.c

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-j4-20211213-184654

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

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-1.57.0 *
php cli:

  HEAD of ::gentoo
commit 83472ff90967205b78f227645536f5768bf2fd5e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Dec 15 03:51:45 2021 +0000

    2021-12-15 03:51:44 UTC

emerge -qpvO sys-devel/dwz
[ebuild  N    ] sys-devel/dwz-0.14  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2021-12-15 09:38:59 UTC
Created attachment 759067 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-15 09:39:01 UTC
Created attachment 759068 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-15 09:39:02 UTC
Created attachment 759069 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-15 09:39:03 UTC
Created attachment 759070 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-15 09:39:04 UTC
Created attachment 759071 [details]
sys-devel:dwz-0.14:20211215-043849.log
Comment 6 Toralf Förster gentoo-dev 2021-12-15 09:39:06 UTC
Created attachment 759072 [details]
temp.tar.bz2
Comment 7 Konstantin Tokarev 2021-12-18 00:28:31 UTC
dwz uses <error.h> which is GNU extension and seems to be not supported in musl. If you need to support building dwz with musl, you can submit patch (e.g. change code to use portable functions instead of error.h, or make its use optional) to mailing list at https://sourceware.org/mailman/listinfo/dwz.
Comment 8 Agostino Sarubbo gentoo-dev 2023-06-16 11:19:28 UTC
tinderbox_musl has reproduced this issue with version 0.15-r1 - Updating summary.
Comment 9 Larry the Git Cow gentoo-dev 2024-12-01 11:26:42 UTC
The bug has been closed via the following commit(s):

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

commit c7c4e417ac9c0e113dbf679baca04019dcb85723
Author:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
AuthorDate: 2024-11-22 06:55:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-01 11:25:58 +0000

    sys-devel/dwz: fix hardcoded readelf, pull error-standalone
    
    Closes: https://bugs.gentoo.org/829239
    Closes: https://bugs.gentoo.org/902197
    Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/dwz/dwz-0.15-r3.ebuild           | 72 ++++++++++++++++++++++++++++++
 sys-devel/dwz/files/dwz-0.15-readelf.patch | 43 ++++++++++++++++++
 2 files changed, 115 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit 0ccf7e0e8dae6c81674d1f0ded6b0f16e54db378
Author:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
AuthorDate: 2024-11-30 11:12:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-01 11:25:57 +0000

    sys-libs/error-standalone: new package, add 1.0
    
    Needed for sys-devel/dwz and dev-util/debugedit, see referenced bugs.
    
    Tested on:
    * Ryzen: amd64, x86
    * RockPro64: arm, arm64
    * StarFive VisionFive2: riscv
    
    Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
    Bug: https://bugs.gentoo.org/902197
    Bug: https://bugs.gentoo.org/829239
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/error-standalone/Manifest                    |  1 +
 sys-libs/error-standalone/error-standalone-1.0.ebuild | 12 ++++++++++++
 sys-libs/error-standalone/metadata.xml                | 12 ++++++++++++
 3 files changed, 25 insertions(+)