Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596352 - net-wireless/crda-3.18-r1 fails to build with llvm/clang-3.9
Summary: net-wireless/crda-3.18-r1 fails to build with llvm/clang-3.9
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
Keywords: NeedPatch, PullRequest, UPSTREAM
Depends on:
Blocks: systemwide-clang
  Show dependency tree
Reported: 2016-10-06 15:42 UTC by Aleksander
Modified: 2021-10-16 01:27 UTC (History)
3 users (show)

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

build.log (build.log,2.42 KB, text/x-log)
2016-10-06 15:48 UTC, Aleksander

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksander 2016-10-06 15:42:54 UTC
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/ --ssl pubkeys/ pubkeys/ 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 -shared -Wl,-soname, 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 '' failed
make: *** [] 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
Comment 1 Aleksander 2016-10-06 15:44:43 UTC
emerge --info:
Comment 2 Aleksander 2016-10-06 15:48:56 UTC
Created attachment 449348 [details]
Comment 3 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2016-10-08 15:48:39 UTC
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.
Comment 4 Denis Pronin 2020-03-15 09:47:31 UTC
There is a PR I've created

Nobody has responded so far
Comment 5 Denis Pronin 2020-03-17 12:49:08 UTC
4 months ago the changes appeared in upstream

Please, I am pointing out this and ask to feed gentoo's portage tree with these changes
Comment 6 Denis Pronin 2020-03-17 12:50:14 UTC
Who is responsible for this package?
Comment 7 Larry the Git Cow gentoo-dev 2021-10-16 01:27:59 UTC
The bug has been closed via the following commit(s):

commit 17f4add4b38825117a0661f1d151dfadffe4e7f6
Author:     James Beddek <>
AuthorDate: 2021-10-15 23:46:49 +0000
Commit:     Sam James <>
CommitDate: 2021-10-16 01:27:49 +0000

    net-wireless/crda: update ldflags patch to fix Clang build
    Signed-off-by: James Beddek <>
    Signed-off-by: Sam James <>

 net-wireless/crda/files/crda-ldflags.patch | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)