View previous topic :: View next topic |
Author |
Message |
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Fri Oct 19, 2018 8:48 am Post subject: [SOLVED] re-emerging vigra fails |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30909 Location: here
|
Posted: Fri Oct 19, 2018 8:55 am Post subject: |
|
|
Try patch proposed in related bug https://bugs.gentoo.org/664720 _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Fri Oct 19, 2018 9:58 am Post subject: |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30909 Location: here
|
Posted: Fri Oct 19, 2018 9:59 am Post subject: |
|
|
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 |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Mon Oct 22, 2018 3:22 pm Post subject: |
|
|
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 |
|
|
jagdpanther l33t
Joined: 22 Nov 2003 Posts: 729
|
Posted: Mon Apr 08, 2019 6:07 pm Post subject: |
|
|
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 |
|
|
Mr Bonhomme n00b
Joined: 03 Mar 2003 Posts: 30
|
Posted: Mon Apr 08, 2019 8:20 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|