Your message dated Mon, 22 Dec 2025 08:34:33 +0000
with message-id <[email protected]>
and subject line Bug#1062014: fixed in libbgcode 0.0~git20251210.0773cea-2
has caused the Debian Bug report #1062014,
regarding libbgcode: FTBFS on s390x and ppc64 due to endianness issues
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1062014: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1062014
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: libbgcode
Version: 0.0~git20231219.7aaf717-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source
Usertags: s390x
X-Debbugs-Cc: [email protected]

Dear Maintainer,

buildd reports failing unit tests on s390x and ppc64: [1] [2]

Example error:
1: Filters: "File transversal"
1: Randomness seeded to: 936238706
1: 
1: TEST: File transversal
1: File:/<<PKGBUILDDIR>>/tests/data/mini_cube_b.bgcode
1: 
1: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1: core_tests is a Catch2 v3.4.0 host application.
1: Run with -? for options
1: 
1: 
-------------------------------------------------------------------------------
1: File transversal
1: 
-------------------------------------------------------------------------------
1: ./tests/core/core_tests.cpp:85
1: 
...............................................................................
1: 
1: ./tests/core/core_tests.cpp:97: FAILED:
1:   REQUIRE( is_valid_binary_gcode(*file, true, checksum_verify_buffer, 
sizeof(checksum_verify_buffer)) == EResult::Success )
1: with expansion:
1:   3 == 0
1: 
1: 
===============================================================================
1: test cases: 1 | 1 failed
1: assertions: 2 | 1 passed | 1 failed
1: 
1/4 Test #1: File transversal .................***Failed    0.00 sec

Some debugging reveals that this error happens due to mismatched endianness 
when reading data files.

diff --git a/src/LibBGCode/core/core.cpp b/src/LibBGCode/core/core.cpp
@@ -126,8 +127,10 @@ EResult FileHeader::read(FILE& file, const uint32_t* const 
max_version)
 {
     if (!read_from_file(file, &magic, sizeof(magic)))
         return EResult::ReadError;
+    printf("data=0x%08x MAGIC=0x%08x\n", magic, MAGICi32);
     if (magic != MAGICi32)
         return EResult::InvalidMagicNumber;

->

File:/build/libbgcode/tests/data/mini_cube_b.bgcode
data=0x47434445 MAGIC=0x45444347

It's likely that there are many more similar problems lurking in the source 
code.
If this issue can't be fixed, the package should probably be disabled on big 
endian architectures.

Thanks!

[1] 
https://buildd.debian.org/status/fetch.php?pkg=libbgcode&arch=s390x&ver=0.0%7Egit20231219.7aaf717-1%2Bb1&stamp=1704613965&raw=0
[2] 
https://buildd.debian.org/status/fetch.php?pkg=libbgcode&arch=ppc64&ver=0.0%7Egit20231219.7aaf717-1%2Bb1&stamp=1704984706&raw=0
[3] 

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: s390x

Kernel: Linux 6.5.0-4-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

--- End Message ---
--- Begin Message ---
Source: libbgcode
Source-Version: 0.0~git20251210.0773cea-2
Done: Chow Loong Jin <[email protected]>

We believe that the bug you reported is fixed in the latest version of
libbgcode, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chow Loong Jin <[email protected]> (supplier of updated libbgcode package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 22 Dec 2025 13:15:21 +0800
Source: libbgcode
Built-For-Profiles: noudeb
Architecture: source
Version: 0.0~git20251210.0773cea-2
Distribution: unstable
Urgency: medium
Maintainer: Chow Loong Jin <[email protected]>
Changed-By: Chow Loong Jin <[email protected]>
Closes: 1062014
Changes:
 libbgcode (0.0~git20251210.0773cea-2) unstable; urgency=medium
 .
   * [d0e67ff] Fix FTBFS on big-endian architectures.
     Thanks to Gregor Riepl <[email protected]> (Closes: #1062014)
Checksums-Sha1:
 36a1e1b32a60d591d4e11015f1bdacf4c320c70c 2125 
libbgcode_0.0~git20251210.0773cea-2.dsc
 4b6ed712a36f0fd6789608518097eaca77e2ad95 7476 
libbgcode_0.0~git20251210.0773cea-2.debian.tar.xz
 856188705d645fa3bc49b4346c77ec42030918ce 8377 
libbgcode_0.0~git20251210.0773cea-2_source.buildinfo
Checksums-Sha256:
 2ed9f1c4baf8633b1440570e7bd1c11ca99ffbb9e66424083b84c83a7c6a0b39 2125 
libbgcode_0.0~git20251210.0773cea-2.dsc
 eca53f980a2899afe43aace2b61c3eaeaa75ec6ff96a7daf22c32c4926fcbf54 7476 
libbgcode_0.0~git20251210.0773cea-2.debian.tar.xz
 b123c12777a9bbc4937fb24919fefe33e4eaa07c75e9b4601353aaafc653365c 8377 
libbgcode_0.0~git20251210.0773cea-2_source.buildinfo
Files:
 b6d7b65e9b65fef7fc568ae9f0a11de1 2125 libs optional 
libbgcode_0.0~git20251210.0773cea-2.dsc
 329f914362f982d61f3ac6f582e98076 7476 libs optional 
libbgcode_0.0~git20251210.0773cea-2.debian.tar.xz
 e6bb0e685b18097151ff1f0eb13b96db 8377 libs optional 
libbgcode_0.0~git20251210.0773cea-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEEuDQnfs/9/dZ027Q+9UiW1iHUqEFAmlI/roACgkQ+9UiW1iH
UqELpRAAsSpUUZqQRD0Ed3aKZf9njjRLIljtw7GPcpN6erJRNo4yRmUVZdgDWYMI
tsw0q3KQ62855XpSe9zQUaUzKy7yTQF47yeuy+HLXvkuvvSe+w8Z9QMaMjt2HofD
blXMq63ApX2vHl/CnbIv3UfGl3qmr3vbJnyUDvvK/EHzYv1uAULWnvxY3Qc+alQg
089Pq+co3l+dnewkWdKKmq3CmWNK+yHoVUBs+R/t6MS9lhQpKBmSGm+9MFL4+SQ0
g3NjSFmf2i9FOzB2Pe4Jsl8wZgSjdgBuUsJbai3avgcDVfVhCyvB0sDJ+5+/GoDS
wVXZ+jRi0hR91FcLnQXAihtGdQt/afUqdAi1A949Sfx6x31CLem/xeZClDtYf21e
Z3JeUosYm5rW6M3ramjtfOOkXkSALQ2+Q2Jh6Cxe6L18HumgzFgmsLbMR5DJRPw3
erJgkABK6BAG3krPfyChILEqho+t9OTanGcSUrsNQR/fEXe3VVZaCkSgaT2XX4q0
19AQwlncWxf4JN2K/qvsf3MjI60bBQXS/zaBNsMaMATkJG/0Y5maRHekDXKTWz49
BAWqX+y7zpRF+/gKrJ+ES4FYUVQkZwXjYS4ezRw/21TCjZRYPy+DbTyJYNTx7Ihy
blPFPMV1UO50p3SfB0mjWgd7Yp7M4vR703O9GeUqNeXhmu+vhFI=
=ujN3
-----END PGP SIGNATURE-----

Attachment: pgpW7THsl5MYQ.pgp
Description: PGP signature


--- End Message ---

Reply via email to