Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717062 - app-arch/pxz-5.0_pre20151029 : pxz.c: fatal error: error.h: No such file or directory
Summary: app-arch/pxz-5.0_pre20151029 : pxz.c: fatal error: error.h: No such file or d...
Status: CONFIRMED
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-04-11 12:25 UTC by Toralf Förster
Modified: 2021-05-19 19:31 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.40 KB, text/plain)
2020-04-11 12:25 UTC, Toralf Förster
Details
app-arch:pxz-5.0_pre20151029:20200411-112742.log (app-arch:pxz-5.0_pre20151029:20200411-112742.log,1.93 KB, text/plain)
2020-04-11 12:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,439.86 KB, text/plain)
2020-04-11 12:25 UTC, Toralf Förster
Details
environment (environment,50.37 KB, text/plain)
2020-04-11 12:25 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,30.63 KB, application/x-bzip)
2020-04-11 12:25 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,13.52 KB, application/x-bzip)
2020-04-11 12:25 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-04-11 12:25:24 UTC
make -j1 
x86_64-gentoo-linux-musl-gcc -o pxz  -O2 -pipe -march=native -fopenmp -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE pxz.c  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -llzma -DPXZ_BUILD_DATE=\date +%Y%m%d\ -DPXZ_VERSION=\4.999.9beta\
pxz.c:30:10: fatal error: error.h: No such file or directory
   30 | #include <error.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 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)


timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Apr 11 10:38:08 UTC 2020
/var/db/repos/musl	Wed Apr  8 18:15:58 UTC 2020

emerge -qpvO app-arch/pxz
[ebuild  N    ] app-arch/pxz-5.0_pre20151029
Comment 1 Toralf Förster gentoo-dev 2020-04-11 12:25:27 UTC
Created attachment 632188 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-11 12:25:30 UTC
Created attachment 632190 [details]
app-arch:pxz-5.0_pre20151029:20200411-112742.log
Comment 3 Toralf Förster gentoo-dev 2020-04-11 12:25:33 UTC
Created attachment 632192 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-04-11 12:25:35 UTC
Created attachment 632194 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-04-11 12:25:38 UTC
Created attachment 632196 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-11 12:25:41 UTC
Created attachment 632198 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2020-04-11 14:01:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/wine.git/commit/?id=2bd68575c474d248e30f0f11a18072a7820a7371

commit 2bd68575c474d248e30f0f11a18072a7820a7371
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2020-04-11 14:00:20 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2020-04-11 14:00:58 +0000

    app-emulation/wine-staging: Drop old patch
    
    Closes: https://bugs.gentoo.org/717062
    
    Package-Manager: Portage-2.3.98, Repoman-2.3.22
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 app-emulation/wine-staging/wine-staging-5.6.ebuild  | 1 -
 app-emulation/wine-staging/wine-staging-9999.ebuild | 1 -
 2 files changed, 2 deletions(-)
Comment 8 Nick Sarnie gentoo-dev 2020-04-11 14:16:53 UTC
Sorry, typo of https://bugs.gentoo.org/717026
Comment 9 Fabian Groffen gentoo-dev 2021-05-19 19:31:43 UTC
@chutzpah: error.h problems are nasty, I didn't want to make this too big of a patch, and glibc users have no issues here of course.  So I propose this change that works for musl (and others like macOS and Solaris):

@@ -26,4 +26,8 @@
        export BINDIR="${EPREFIX}"/usr/bin
        export MANDIR="${EPREFIX}"/usr/share/man
        default_src_prepare
+
+       if use elibc_musl ; then
+               sed -i -e '/<error.h>/c\#define error(R,E,S,...) fprintf(stderr, S "\\n", ##__VA_ARGS__); exit(R)' pxz.c
+       fi
 }

It makes pxz usable, which is very useful.