Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831874 - sci-visualization/opendx-4.4.4-r8 fails to compile: configure: error: C compiler cannot create executables
Summary: sci-visualization/opendx-4.4.4-r8 fails to compile: configure: error: C compi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2022-01-23 08:17 UTC by Agostino Sarubbo
Modified: 2022-08-16 08:11 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,49.33 KB, text/plain)
2022-01-23 08:17 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,10.96 KB, text/plain)
2022-01-23 08:17 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-23 08:17:39 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-visualization/opendx-4.4.4-r8 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses CLANG as a compiler and LLD as a linker
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-23 08:17:41 UTC
Created attachment 763324 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-23 08:17:42 UTC
Created attachment 763325 [details]
1-config.log

1-config.log
Comment 3 François Bissey 2022-01-23 08:26:00 UTC
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.
Comment 4 François Bissey 2022-01-23 08:36:58 UTC
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.
Comment 5 Larry the Git Cow gentoo-dev 2022-07-14 09:02:22 UTC
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(+)
Comment 6 Larry the Git Cow gentoo-dev 2022-08-16 08:11:49 UTC
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(-)