Summary: | sci-visualization/opendx-4.4.4-r8 fails to compile: configure: error: C compiler cannot create executables | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | frp.bissey, treecleaner |
Priority: | Normal | Keywords: | PMASKED |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
1-config.log |
Description
Agostino Sarubbo
2022-01-23 08:17:39 UTC
Created attachment 763324 [details]
build.log
build log and emerge --info
Created attachment 763325 [details]
1-config.log
1-config.log
Looks like the fix for bug #786627 has nasty side effects with clang. From the ebuild: # bug #786627 append-cppflags -std=c++14 From config.log configure:4574: checking whether the C compiler works configure:4596: x86_64-pc-linux-gnu-clang -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -fno-strength-reduce -std=c++14 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -fuse-ld=lld conftest.c >&5 clang-13: warning: optimization flag '-fno-strength-reduce' is not supported [-Wignored-optimization-argument] error: invalid argument '-std=c++14' not allowed with 'C' I was thinking where does that come from? Well the ebuild itself. Would recommend replacing the `append-cppflags -std=c++14` by something along the lines export CXX=tc-getCXX -std=c++14 to enforce the use of c++14 compiler without adding options to the C compiler. Setting language standards in compilers could be an interesting addition for the toolchain-funcs eclass. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83798c8feddddf8c131b33c2958754fbccbf68db commit 83798c8feddddf8c131b33c2958754fbccbf68db Author: David Seifert <soap@gentoo.org> AuthorDate: 2022-07-14 09:02:10 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2022-07-14 09:02:10 +0000 profiles: last-rite sci-visualization/opendx Bug: https://bugs.gentoo.org/822762 Bug: https://bugs.gentoo.org/831874 Signed-off-by: David Seifert <soap@gentoo.org> profiles/package.mask | 7 +++++++ 1 file changed, 7 insertions(+) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9421065d5d1021074f8bb96e351dfc135f846c78 commit 9421065d5d1021074f8bb96e351dfc135f846c78 Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2022-08-16 08:07:39 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2022-08-16 08:07:39 +0000 sci-visualization/opendx: treeclean Closes: https://bugs.gentoo.org/831874 Closes: https://bugs.gentoo.org/822762 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> profiles/package.mask | 6 - sci-visualization/opendx/Manifest | 2 - .../opendx/files/opendx-4.3.2-sys.h.patch | 23 -- .../files/opendx-4.4.4-concurrent-make-fix.patch | 66 ----- .../opendx/files/opendx-4.4.4-dx-errno.patch | 11 - .../opendx/files/opendx-4.4.4-gcc43.patch | 315 -------------------- .../opendx/files/opendx-4.4.4-installpaths.patch | 330 --------------------- .../files/opendx-4.4.4-invalid-conversion.patch | 13 - .../opendx/files/opendx-4.4.4-libtool.patch | 11 - .../opendx/files/opendx-4.4.4-null.patch | 14 - .../opendx/files/opendx-4.4.4-open.patch | 34 --- .../opendx/files/opendx-4.4.4-slibtool.patch | 40 --- .../opendx/files/opendx-4.4.4-szip.patch | 55 ---- .../opendx/files/opendx-4.4.4-xdg.patch | 26 -- sci-visualization/opendx/metadata.xml | 26 -- sci-visualization/opendx/opendx-4.4.4-r8.ebuild | 92 ------ 16 files changed, 1064 deletions(-) |