Not sure why exactly, but Reproducible: Always Steps to Reproduce: 1. emerge libraw with openmp in USE 2. emerge =kde-base/libkdcraw-4.12.5 3. observe error (see attached build log) 4. emerge libraw with -openmp in USE 5. build is successful Actual Results: See log file in attachment.
Created attachment 376790 [details] emerge --info
Created attachment 376792 [details] build log
Sorry, the actual error got lost in the above comment. Here it is: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=native -w -fomit-frame-pointer -momit-leaf-frame-pointer -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed CMakeFiles/libinfo.dir/libinfo.o -o libinfo -L/tmp/portage/kde-base/libkdcraw-4.12.5/work/libkdcraw-4.12.5_build/lib -L/usr/lib64/qt4 -rdynamic ../lib/libkdcraw.so.23.0.0 /usr/lib64/qt4/libQtCore.so -lpthread /usr/lib64/qt4/libQtGui.so /usr/lib64/qt4/libQtGui.so /usr/lib64/qt4/libQtCore.so -lpthread -Wl,-rpath,/tmp/portage/kde-base/libkdcraw-4.12.5/work/libkdcraw-4.12.5_build/lib:/usr/lib64/qt4 /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_parallel_start' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_critical_name_end' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_loop_end' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_barrier' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_loop_dynamic_start' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_critical_name_start' /usr/lib64/libraw_r.so.9: undefined reference to `omp_get_thread_num' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_loop_dynamic_next' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_parallel_end' /usr/lib64/libraw_r.so.9: undefined reference to `omp_get_num_threads' collect2: error: ld returned 1 exit status make[2]: *** [test/libinfo] Error 1 make[1]: *** [test/CMakeFiles/libinfo.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_parallel_start' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_critical_name_end' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_loop_end' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_barrier' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_loop_dynamic_start' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_critical_name_start' /usr/lib64/libraw_r.so.9: undefined reference to `omp_get_thread_num' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_loop_dynamic_next' /usr/lib64/libraw_r.so.9: undefined reference to `GOMP_parallel_end' /usr/lib64/libraw_r.so.9: undefined reference to `omp_get_num_threads' collect2: error: ld returned 1 exit status make[2]: *** [test/raw2png] Error 1
Grr. kde-base/libkdcraw-4.12 was written with support for only libraw-0.16. At last moment somebody from kde upstream realized that an actual libraw-0.16 release won't happen in time, so 0.15 support was patched back on hastily. This is the result. I'll have to investigate, but I *think* it's not as easy as generally specifying libraw[openmp].
(In reply to Andreas K. Hüttel from comment #4) Well maybe it's enough to bump #506656. Will test later and report back.
I bumped the 0.16.0_beta1-r1 ebuild to 0.16.0 (removing two patches which did not apply), and tried to build against that. Build/linking went fine - cannot test functionality ATM because the machine is non-graphical. HTH
Thanks all. 4.14.3 stable. Cleanup done by Michal. Closing then. + + 18 Feb 2015; Michał Górny <mgorny@gentoo.org> -libkdcraw-4.12.5.ebuild: + Remove KDE SC 4.12 +