Summary: | net-wireless/crda-3.18-r1 fails to build with llvm/clang-3.9 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Aleksander <spider.ch> |
Component: | Current packages | Assignee: | Rick Farina (Zero_Chaos) <zerochaos> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | spider.ch, telans, zerochaos |
Priority: | Normal | Keywords: | NeedPatch, PullRequest, UPSTREAM |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/22594 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963 | ||
Attachments: | build.log |
emerge --info: https://paste.pound-python.org/show/uNgqWnyfssvN1BUncdlJ/ Created attachment 449348 [details]
build.log
Please take this upstream instead - we cannot fix packages that does not compile with certain compilers. That is a job for the upstream developers of the said packages. There is a PR I've created https://github.com/gentoo/gentoo/pull/14762 Nobody has responded so far 4 months ago the changes appeared in upstream https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/commit/?id=9856751feaf7b102547cea678a5da6c94252d83d Please, I am pointing out this and ask to feed gentoo's portage tree with these changes Who is responsible for this package? The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17f4add4b38825117a0661f1d151dfadffe4e7f6 commit 17f4add4b38825117a0661f1d151dfadffe4e7f6 Author: James Beddek <telans@posteo.de> AuthorDate: 2021-10-15 23:46:49 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-10-16 01:27:49 +0000 net-wireless/crda: update ldflags patch to fix Clang build Closes: https://bugs.gentoo.org/596352 Signed-off-by: James Beddek <telans@posteo.de> Closes: https://github.com/gentoo/gentoo/pull/22594 Signed-off-by: Sam James <sam@gentoo.org> net-wireless/crda/files/crda-ldflags.patch | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) |
Trying to build net-wireless/crda with clang-3.9 fails width: >>> Compiling source in /var/tmp/portage/net-wireless/crda-3.18-r1/work/crda-3.18 ... make -j4 PREFIX=/usr SBINDIR=$(PREFIX)/sbin/ LIBDIR=$(PREFIX)/lib64 UDEV_RULE_DIR=/lib/udev/rules.d REG_BIN=/usr/lib/crda/regulatory.bin USE_OPENSSL=1 CC=clang V=1 WERROR= all_noverify ./utils/key2pub.py --ssl pubkeys/linville.key.pub.pem pubkeys/sforshee.key.pub.pem keys-ssl.c clang -march=native -mtune=native -O2 -pipe -fpic -std=gnu99 -Wall -pedantic -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `x86_64-pc-linux-gnu-pkg-config --cflags openssl` -DCONFIG_LIBNL30 `x86_64-pc-linux-gnu-pkg-config --cflags libnl-3.0` -o libreg.so -shared -Wl,-soname,libreg.so regdb.h reglib.h reglib.c keys-ssl.c -lm `x86_64-pc-linux-gnu-pkg-config --libs openssl` x86_64-pc-linux-gnu-clang-3.9: error: cannot specify -o when generating multiple output files Makefile:119: recipe for target 'libreg.so' failed make: *** [libreg.so] Error 1 * ERROR: net-wireless/crda-3.18-r1::gentoo failed (compile phase): * emake failed Reproducible: Always Steps to Reproduce: 1. Set clang as system compiler 2. Try to build net-wireless/crda 3. ... 4. Profit Actual Results: Build fails. Expected Results: Build not fail