GNU bug report logs - #42667
opencv fails to build

Previous Next

Package: guix;

Reported by: Guillaume Le Vaillant <glv <at> posteo.net>

Date: Sun, 2 Aug 2020 08:52:02 UTC

Severity: normal

Done: Guillaume Le Vaillant <glv <at> posteo.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42667 in the body.
You can then email your comments to 42667 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#42667; Package guix. (Sun, 02 Aug 2020 08:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Guillaume Le Vaillant <glv <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 02 Aug 2020 08:52:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: bug-guix <at> gnu.org
Subject: opencv fails to build
Date: Sun, 02 Aug 2020 10:50:48 +0200
[Message part 1 (text/plain, inline)]
When trying to build the opencv package , I get the following error:

--8<---------------cut here---------------start------------->8---
[ 27%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_pxm.cpp.o
cd /tmp/guix-build-opencv-3.4.3.drv-0/build/modules/imgcodecs && /gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/bin/c++  -DCVAPI_EXPORTS -DHAVE_IMGCODEC_HDR -DHAVE_IMGCODEC_PXM -DHAVE_IMGCODEC_SUNRASTER -DHAVE_WEBP -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/guix-build-opencv-3.4.3.drv-0/opencv-3.4.3-checkout/modules/imgcodecs/include -I/tmp/guix-build-opencv-3.4.3.drv-0/build/modules/imgcodecs -I/tmp/guix-build-opencv-3.4.3.drv-0/opencv-3.4.3-checkout/modules/core/include -I/tmp/guix-build-opencv-3.4.3.drv-0/opencv-3.4.3-checkout/modules/imgproc/include -isystem /tmp/guix-build-opencv-3.4.3.drv-0/build -isystem /gnu/store/7xqvr2nr5g1cw9kwc0rdlhg92zg5zi44-openexr-2.5.2/include/OpenEXR  -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-deprecated-declarations -O2 -g -DNDEBUG -fPIC   -o CMakeFiles/opencv_imgcodecs.dir/src/grfmt_pxm.cpp.o -c /tmp/guix-build-opencv-3.4.3.drv-0/opencv-3.4.3-checkout/modules/imgcodecs/src/grfmt_pxm.cpp
/tmp/guix-build-opencv-3.4.3.drv-0/opencv-3.4.3-checkout/modules/imgcodecs/src/grfmt_jpeg2000.cpp: In member function ‘bool cv::Jpeg2KDecoder::readComponent8u(uchar*, void*, int, int, int, int, int)’:
/tmp/guix-build-opencv-3.4.3.drv-0/opencv-3.4.3-checkout/modules/imgcodecs/src/grfmt_jpeg2000.cpp:340:71: error: lvalue required as unary ‘&’ operand
         jas_seqent_t* pix_row = &jas_matrix_get( buffer, y / ystep, 0 );
                                                                       ^
/tmp/guix-build-opencv-3.4.3.drv-0/opencv-3.4.3-checkout/modules/imgcodecs/src/grfmt_jpeg2000.cpp: In member function ‘bool cv::Jpeg2KDecoder::readComponent16u(short unsigned int*, void*, int, int, int, int, int)’:
/tmp/guix-build-opencv-3.4.3.drv-0/opencv-3.4.3-checkout/modules/imgcodecs/src/grfmt_jpeg2000.cpp:404:71: error: lvalue required as unary ‘&’ operand
         jas_seqent_t* pix_row = &jas_matrix_get( buffer, y / ystep, 0 );
                                                                       ^
--8<---------------cut here---------------end--------------->8---
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#42667; Package guix. (Mon, 10 Aug 2020 22:12:02 GMT) Full text and rfc822 format available.

Message #8 received at 42667 <at> debbugs.gnu.org (full text, mbox):

From: Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 42667 <at> debbugs.gnu.org
Subject: Re: bug#42667: opencv fails to build
Date: Tue, 11 Aug 2020 00:10:54 +0200
[Message part 1 (text/plain, inline)]
On Sun, 02 Aug 2020 10:50:48 +0200
Guillaume Le Vaillant <glv <at> posteo.net> wrote:

> When trying to build the opencv package , I get the following error:
> 
> --8<---------------cut here---------------start------------->8---
[..]
> error: lvalue required as unary ‘&’ operand jas_seqent_t* pix_row =
> &jas_matrix_get( buffer, y / ystep, 0 );

I have a patch based on this not yet released commit:

From f66fc199a20882c546fa31142e9c0f5a8b3cf983 Mon Sep 17 00:00:00 2001
From: Florian Jung <flo <at> windfis.ch>
Date: Wed, 29 Jul 2020 18:51:55 +0200
Subject: [PATCH] Fix build of grfmt_jpeg2000.cpp

The first round was successful, now the second run of --rounds=2 is
compiling/testing. Give me some days to clean it up and to update to the
latest 3.x release. Note: I stay with the 3.x branch as updating to 4.x
is more complicated: We need to check compatibility with existing
dependencies and there is a lot of new code which needs to be checked
for license issues.

Björn
[Message part 2 (application/pgp-signature, inline)]

Reply sent to Guillaume Le Vaillant <glv <at> posteo.net>:
You have taken responsibility. (Sat, 03 Oct 2020 08:17:02 GMT) Full text and rfc822 format available.

Notification sent to Guillaume Le Vaillant <glv <at> posteo.net>:
bug acknowledged by developer. (Sat, 03 Oct 2020 08:17:02 GMT) Full text and rfc822 format available.

Message #13 received at 42667-done <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: 42667-done <at> debbugs.gnu.org
Subject: Re: bug#42667: opencv fails to build
Date: Sat, 03 Oct 2020 10:15:57 +0200
[Message part 1 (text/plain, inline)]
This was fixed by 8bf704262d672ae0735f0685bfd1c9ddcb1d8484, closing.
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 31 Oct 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 171 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.