Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 740164 - media-libs/vidstab-1.1.0-r2 fails to compile with sys-devel/clang and FEATURES="test"
Summary: media-libs/vidstab-1.1.0-r2 fails to compile with sys-devel/clang and FEATURE...
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Kalin KOZHUHAROV
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-03 06:43 UTC by Agostino Sarubbo
Modified: 2020-09-23 21:36 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,40.01 KB, text/plain)
2020-09-03 06:43 UTC, Agostino Sarubbo
Details
1-CMakeOutput.log (1-CMakeOutput.log,32.57 KB, text/plain)
2020-09-03 06:43 UTC, Agostino Sarubbo
Details
2-CMakeOutput.log (2-CMakeOutput.log,32.63 KB, text/plain)
2020-09-03 06:43 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 2020-09-03 06:43:20 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-libs/vidstab-1.1.0-r2 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-09-03 06:43:22 UTC
Created attachment 658034 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-09-03 06:43:25 UTC
Created attachment 658036 [details]
1-CMakeOutput.log

1-CMakeOutput.log
Comment 3 Agostino Sarubbo gentoo-dev 2020-09-03 06:43:27 UTC
Created attachment 658038 [details]
2-CMakeOutput.log

2-CMakeOutput.log
Comment 4 Kalin KOZHUHAROV 2020-09-23 21:32:05 UTC
I finally reproduced that on my machine....

bug:
 CC=clang CXX=clang++ FEATURES="test" USE="openmp" emerge -vt media-libs/vidstab

work:
 CC=gcc CXX=g++ FEATURES="-test" USE="openmp" emerge -vt media-libs/vidstab
 CC=gcc CXX=g++ FEATURES="test" USE="openmp" emerge -vt media-libs/vidstab
 CC=clang CXX=clang++ FEATURES="-test" USE="openmp" emerge -vt media-libs/vidstab
 CC=clang CXX=clang++ CFLAGS=-fopenmp FEATURES="test" USE="openmp" emerge -vt media-libs/vidstab
 CC=clang CXX=clang++ CFLAGS=-fopenmp FEATURES="-test" USE="openmp" emerge -vt media-libs/vidstab


Summary: when using sys-devel/clang-10.0.0 we need to add CFLAGS=-fopenmp for USE="openmp" FEATURES="test" case. Any other combination works.

Tracked upstream as https://github.com/georgmartius/vid.stab/issues/65
There is a rework and a PR https://github.com/georgmartius/vid.stab/pull/94 around OpenMP, I'll rather wait for it.

As a workaround in the meantime, for clang compile with FEATURE="-test" ( or with CFLAGS=-fopenmp if you insist on FEATURE="test").
Comment 5 Kalin KOZHUHAROV 2020-09-23 21:36:38 UTC
Sorry, the last sentence should have read:

As a workaround in the meantime, for compilation with sys-devel/clang do set FEATURES="-test" (or do add CFLAGS=-fopenmp).