Bug#1000806: FTBFS on big endian architectures
Source: ocaml-opus
Version: 0.1.3-1
Severity: serious
Tags: ftbfs
Dear Maintainer,
You package FTBFS on big endian architectures, e.g. s390x:
> (cd _build/default/src && /usr/bin/s390x-linux-gnu-gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/include/opus -g -I /usr/lib/ocaml -I /usr/lib/ocaml/ogg -I /usr/lib/ocaml/threads -o opus_stubs.o -c opus_stubs.c)
> opus_stubs.c: In function ‘pack_header’:
> opus_stubs.c:430:27: error: lvalue required as unary ‘&’ operand
> 430 | memcpy(op->packet + 10, &int16le_to_native(pre_skip), sizeof(opus_int16));
> | ^
> opus_stubs.c:431:27: error: lvalue required as unary ‘&’ operand
> 431 | memcpy(op->packet + 12, &int32le_to_native(sr), sizeof(opus_int32));
> | ^
> opus_stubs.c:432:27: error: lvalue required as unary ‘&’ operand
> 432 | memcpy(op->packet + 16, &int16le_to_native(gain), sizeof(opus_int16));
> | ^
> opus_stubs.c: In function ‘pack_comments’:
> opus_stubs.c:460:26: error: lvalue required as unary ‘&’ operand
> 460 | memcpy(op->packet + 8, &int32le_to_native(vendor_length), sizeof(opus_int32));
> | ^
> opus_stubs.c:472:30: error: lvalue required as unary ‘&’ operand
> 472 | memcpy(op->packet + pos, &int32le_to_native(comment_length),
> | ^
> make[1]: *** [debian/rules:12: override_dh_auto_build] Error 1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:9: binary-arch] Error 2
> dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2
Cheers,
--
Stéphane
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.15.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Reply to: