[klibc] Fwd: [Bug 1843743] Re: klibc ftbfs in eoan

Thorsten Glaser tg at mirbsd.de
Mon Oct 21 16:48:20 PDT 2019

Hrm, perhaps adding the flag (or the matching __attribute__) only
to where it is needed makes sense?  --mirabilos

---------- Forwarded message ----------
From: Adam Conrad <adconrad at 0c3.net>
Message-ID: <157169641305.9361.4432909657455952189.malone at soybean.canonical.com>
Date: Mon, 21 Oct 2019 22:20:12 -0000
Subject: [Bug 1843743] Re: klibc ftbfs in eoan
Reply-To: Bug 1843743 <1843743 at bugs.launchpad.net>

> The best guess I can come up with is that there's something different
> about the compiler defaults you're using

Derp, this was the hint I needed.  The attached patch fixes the build on
Ubuntu, though I can't think of a good way to upstream this, as the
compiler option in question isn't available throughout history.
Probably needs a test of some sort.

** Patch added: "cf-protection.patch"

You received this bug notification because you are subscribed to Ubuntu.

  klibc ftbfs in eoan

Status in klibc package in Ubuntu:
Status in klibc source package in Eoan:

Bug description:

  gcc -Wp,-MD,usr/klibc/.sigsuspend.o.d  -nostdinc -iwithprefix include -I/<<PKGBUILDDIR>>/usr/include/arch/x86_64 -Iusr/include/arch/x86_64 -I/<<PKGBUILDDIR>>/usr/include/bits64 -Iusr/include/bits64 -I/<<PKGBUILDDIR>>/usr/klibc/../include -Iusr/klibc/../include -I/<<PKGBUILDDIR>>/usr/include -Iusr/include -I/<<PKGBUILDDIR>>/linux/include -Ilinux/include -D__KLIBC__=2 -D__KLIBC_MINOR__=0 -D_BITSIZE=64 -fno-stack-protector -fwrapv -fno-PIE -ggdb -m64 -Os -fomit-frame-pointer -mno-sse -falign-functions=1 -falign-jumps=1 -falign-loops=1 -fno-asynchronous-unwind-tables -W -Wall -Wno-sign-compare -Wno-unused-parameter -c -o usr/klibc/sigsuspend.o usr/klibc/sigsuspend.c
  usr/klibc/sigsuspend.c:8:10: fatal error: klibc/havesyscall.h: No such file or directory
      8 | #include <klibc/havesyscall.h>
        |          ^~~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  make[4]: *** [/<<PKGBUILDDIR>>/scripts/Kbuild.klibc:252: usr/klibc/sigsuspend.o] Error 1
  make[3]: *** [/<<PKGBUILDDIR>>/./Kbuild:9: all] Error 2
  make[2]: *** [Makefile:118: klibc] Error 2

To manage notifications about this bug go to:

More information about the klibc mailing list