Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580710 - media-libs/libopenshot-0.1.0 with gcc[-openmp]: src/../include/OpenMPUtilities.h:31:17: fatal error: omp.h: No such file or directory
Summary: media-libs/libopenshot-0.1.0 with gcc[-openmp]: src/../include/OpenMPUtilitie...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Louis Sautier (sbraz)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-21 09:15 UTC by dawgg
Modified: 2016-04-22 15:34 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dawgg 2016-04-21 09:15:40 UTC
media-libs/libopenshot-0.1.0 would not compile; error was always this:

In file included from /var/tmp/portage/media-libs/libopenshot-0.1.0/work/src/..
/include/FFmpegReader.h:47:0,
                 from /var/tmp/portage/media-libs/libopenshot-0.1.0/work/src/../include/ChunkReader.h:32,
                 from /var/tmp/portage/media-libs/libopenshot-0.1.0/work/src/ChunkReader.cpp:28:
/var/tmp/portage/media-libs/libopenshot-0.1.0/work/src/../include/OpenMPUtilities.h:31:17: fatal error: omp.h: No such file or directory
compilation terminated.
src/CMakeFiles/openshot.dir/build.make:186: recipe for target 'src/CMakeFiles/openshot.dir/ChunkReader.cpp.o' failed

my gcc-5.3.0 on ~amd64 was compiled with USE="-openmp"

i recompiled gcc with USE="openmp" and media-libs/libopenshot-0.1.0 compiled.
maybe the ebuild should check/warn about this.

also posted here:
https://forums.gentoo.org/viewtopic.php?p=7909732

i idi not write a patch because the solution worked for me.
Comment 1 Louis Sautier (sbraz) gentoo-dev 2016-04-22 15:34:36 UTC
Thanks for making a bug report! I added a pkg_pretend check:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9046ae2da5fac8aef16e43a4e75b15037923c81f
commit 9046ae2da5fac8aef16e43a4e75b15037923c81f
Author: Louis Sautier <sautier.louis@gmail.com>
Date:   Fri Apr 22 09:24:37 2016 +0200

    media-libs/libopenshot: make sure the compiler supports OpenMP
    
    Gentoo-Bug: 580710
    
    Package-Manager: portage-2.2.28
    Closes: https://github.com/gentoo/gentoo/pull/1321
    
    Signed-off-by: Ian Delaney <idella4@gentoo.org>