Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] re-emerging vigra fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Fri Oct 19, 2018 8:48 am    Post subject: [SOLVED] re-emerging vigra fails Reply with quote

I've encountered a problem emerging vigra which is required by portage for a @preserved-rebuild.

Searching I found this post from last year which suggested reducing the number of cores and/or disabling ccache solved the problem. I've tried both (individually and in combination) but to no avail.

With ccache disabled and 'MAKEOPTS=-j9' the build still fails with...

Code:

Copying target vigranumpy_histogram to temporary module directory
cd /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7/vigranumpy/src/core && /usr/bin/cmake -E copy_if_different /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7/vigranumpy/src/core/histogram.so /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7/vigranumpy/vigra/
make[2]: Leaving directory '/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7'
[ 50%] Built target vigranumpy_histogram
[ 50%] Linking CXX shared library sampling.so
cd /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7/vigranumpy/src/core && /usr/bin/cmake -E cmake_link_script CMakeFiles/vigranumpy_sampling.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -std=c++11 -pthread -march=skylake -O2 -pipe -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,sampling.so -o sampling.so CMakeFiles/vigranumpy_sampling.dir/sampling.cxx.o -lpython2.7 -lboost_python-2.7-mt
Copying target vigranumpy_sampling to temporary module directory
cd /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7/vigranumpy/src/core && /usr/bin/cmake -E copy_if_different /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7/vigranumpy/src/core/sampling.so /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7/vigranumpy/vigra/
make[2]: Leaving directory '/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7'
[ 50%] Built target vigranumpy_sampling
make[1]: Leaving directory '/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7'
make: *** [Makefile:163: all] Error 2
 * ERROR: media-libs/vigra-1.11.1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-libs/vigra-1.11.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/vigra-1.11.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/vigra-1.11.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/vigra-1.11.1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7'
 * S: '/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1'


With ccache disabled and MAKEOPTS=-j4 the build fails with...

Code:

[ 42%] Built target vigraimpex
In file included from /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1/include/vigra/multi_array.hxx:49,
                 from /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1/include/vigra/numpy_array.hxx:47,
                 from /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1/vigranumpy/src/core/edgedetection.cxx:39:
/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1/include/vigra/multi_pointoperators.hxx:1026:1: error: ‘void vigra::transformMultiArray(const vigra::MultiArrayView<N1, T1, S1>&, vigra::MultiArrayView<N, T2, S2>, const Functor&) [with unsigned int N = 2; T1 = vigra::TinyVector<float, 3>; S1 = vigra::StridedArrayTag; T2 = vigra::TinyVector<float, 2>; S2 = vigra::StridedArrayTag; Functor = vigra::pythonCannyEdgeImageColor(vigra::NumpyArray<2, vigra::RGBValue<VALUETYPE> >, double, double, DestPixelType, vigra::NumpyArray<2, vigra::Singleband<T> >) [with SrcPixelType = float; DestPixelType = unsigned char]::<lambda(const vigra::TinyVector<float, 3>&)>]’, declared using local type ‘const vigra::pythonCannyEdgeImageColor(vigra::NumpyArray<2, vigra::RGBValue<VALUETYPE> >, double, double, DestPixelType, vigra::NumpyArray<2, vigra::Singleband<T> >) [with SrcPixelType = float; DestPixelType = unsigned char]::<lambda(const vigra::TinyVector<float, 3>&)>’, is used but never defined [-fpermissive]
 transformMultiArray(MultiArrayView<N, T1, S1> const & source,
 ^~~~~~~~~~~~~~~~~~~
make[2]: *** [vigranumpy/src/core/CMakeFiles/vigranumpy_analysis.dir/build.make:76: vigranumpy/src/core/CMakeFiles/vigranumpy_analysis.dir/edgedetection.cxx.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7'
make[1]: *** [CMakeFiles/Makefile2:4479: vigranumpy/src/core/CMakeFiles/vigranumpy_analysis.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7'
make: *** [Makefile:163: all] Error 2
 * ERROR: media-libs/vigra-1.11.1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-libs/vigra-1.11.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/vigra-1.11.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/vigra-1.11.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/vigra-1.11.1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7'
 * S: '/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1'


Enabling ccache and MAKEOPTS=-j9...

Code:

[ 50%] Linking CXX shared library histogram.so
cd /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7/vigranumpy/src/core && /usr/bin/cmake -E cmake_link_script CMakeFiles/vigranumpy_histogram.dir/link.txt --verbose=1
/usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++ -fPIC -std=c++11 -pthread -march=skylake -O2 -pipe -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,histogram.so -o histogram.so CMakeFiles/vigranumpy_histogram.dir/histogram.cxx.o -lpython2.7 -lboost_python-2.7-mt
Copying target vigranumpy_histogram to temporary module directory
cd /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7/vigranumpy/src/core && /usr/bin/cmake -E copy_if_different /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7/vigranumpy/src/core/histogram.so /var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7/vigranumpy/vigra/
make[2]: Leaving directory '/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7'
[ 50%] Built target vigranumpy_histogram
make[1]: Leaving directory '/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7'
make: *** [Makefile:163: all] Error 2
 * ERROR: media-libs/vigra-1.11.1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-libs/vigra-1.11.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/vigra-1.11.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/vigra-1.11.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/vigra-1.11.1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1-python2_7'
 * S: '/var/tmp/portage/media-libs/vigra-1.11.1/work/vigra-1.11.1'



This is one step before emerge bails when ccache is disabled.

Any advice or thoughts on things to try would be very much appreciated as I'm stumped.

Cheers,

slackline
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth


Last edited by slackline on Mon Oct 22, 2018 4:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30913
Location: here

PostPosted: Fri Oct 19, 2018 8:55 am    Post subject: Reply with quote

Try patch proposed in related bug https://bugs.gentoo.org/664720
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Fri Oct 19, 2018 9:58 am    Post subject: Reply with quote

fedeliallalinea wrote:
Try patch proposed in related bug https://bugs.gentoo.org/664720


Thanks, I had searched Bugzilla but it didn't throw that up.

Will try and work out how to apply that patch locally over the weekend.

Cheers,

slackline
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30913
Location: here

PostPosted: Fri Oct 19, 2018 9:59 am    Post subject: Reply with quote

slackline wrote:
Will try and work out how to apply that patch locally over the weekend.

You can use /etc/portage/patches for apply user patches
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Mon Oct 22, 2018 3:22 pm    Post subject: Reply with quote

Thats brilliant, hadn't come across that feature, thank you.

Patch applied and Vigra compiles fine.
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
jagdpanther
l33t
l33t


Joined: 22 Nov 2003
Posts: 729

PostPosted: Mon Apr 08, 2019 6:07 pm    Post subject: Reply with quote

I just had this same error. (8 April 2019).
According to this bug report the "unstable" -r1 version works.
https://bugs.gentoo.org/682860

And yes on my Gentoo system media-libs/vigra-1.11.1-r1 will emerge where
media-libs/vigra-1.11.1 will not.
Back to top
View user's profile Send private message
Mr Bonhomme
n00b
n00b


Joined: 03 Mar 2003
Posts: 30

PostPosted: Mon Apr 08, 2019 8:20 pm    Post subject: Reply with quote

jagdpanther wrote:
I just had this same error. (8 April 2019).
According to this bug report the "unstable" -r1 version works.
https://bugs.gentoo.org/682860

And yes on my Gentoo system media-libs/vigra-1.11.1-r1 will emerge where
media-libs/vigra-1.11.1 will not.

Thanks, it solved the problem here too.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum