unofficial mirror of bug-guix@gnu.org 
 help / color / Atom feed
From: Guillaume Le Vaillant <glv@posteo.net>
To: 42667@debbugs.gnu.org
Subject: bug#42667: opencv fails to build
Date: Sun, 02 Aug 2020 10:50:48 +0200
Message-ID: <87a6zd77o7.fsf@yamatai> (raw)

[-- Attachment #1: Type: text/plain, Size: 2836 bytes --]

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---

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-02  8:50 Guillaume Le Vaillant [this message]
2020-08-10 22:10 ` Björn Höfling

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a6zd77o7.fsf@yamatai \
    --to=glv@posteo.net \
    --cc=42667@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

unofficial mirror of bug-guix@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-bugs/0 guix-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-bugs guix-bugs/ https://yhetil.org/guix-bugs \
		bug-guix@gnu.org
	public-inbox-index guix-bugs

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.bugs
	nntp://news.gmane.io/gmane.comp.gnu.guix.bugs


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git