Your message dated Sun, 08 Jun 2025 11:50:10 +0000 with message-id <e1uoexs-005fsg...@fasolo.debian.org> and subject line Bug#1107403: fixed in gmtsar 6.5+ds-4~exp1 has caused the Debian Bug report #1107403, regarding gmtsar:FTBFS:build failed(gcc: error: unrecognized command-line option ‘-m64’) 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 ow...@bugs.debian.org immediately.) -- 1107403: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1107403 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
--- Begin Message ---Source: gmtsar Version: 6.5+ds-3 Severity: serious Tags: FTBFS, patch User: debian-ri...@lists.debian.org Usertags: riscv64 Dear gmtsar maintainer, The package gmtsar build failed on riscv64 .The crucial buildd log below: ``` make[3]: Entering directory '/build/reproducible-path/gmtsar-6.5+ds/preproc/ERS_preproc/ers_line_fixer' gcc -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gmtsar-6.5+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -z muldefs -g -O2 -Wall -m64 -fPIC -fno-strict-aliasing -std=gnu99 -I./include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o ers_line_fixer.o ers_line_fixer.c gcc: error: unrecognized command-line option ‘-m64’ make[3]: *** [<builtin>: ers_line_fixer.o] Error 1 make[3]: Leaving directory '/build/reproducible-path/gmtsar-6.5+ds/preproc/ERS_preproc/ers_line_fixer' make[3]: Entering directory '/build/reproducible-path/gmtsar-6.5+ds/preproc/ERS_preproc/read_data_file_dpaf' gcc -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gmtsar-6.5+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -z muldefs -g -O2 -Wall -m64 -fPIC -fno-strict-aliasing -std=gnu99 -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o read_data_file_dpaf.o read_data_file_dpaf.c gcc: error: unrecognized command-line option ‘-m64’ make[3]: *** [<builtin>: read_data_file_dpaf.o] Error 1 make[3]: Leaving directory '/build/reproducible-path/gmtsar-6.5+ds/preproc/ERS_preproc/read_data_file_dpaf' make[3]: Entering directory '/build/reproducible-path/gmtsar-6.5+ds/preproc/ERS_preproc/read_data_file_ccrs' gcc -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gmtsar-6.5+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -z muldefs -g -O2 -Wall -m64 -fPIC -fno-strict-aliasing -std=gnu99 -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o read_data_file_ccrs.o read_data_file_ccrs.c gcc: error: unrecognized command-line option ‘-m64’ make[3]: *** [<builtin>: read_data_file_ccrs.o] Error 1 make[3]: Leaving directory '/build/reproducible-path/gmtsar-6.5+ds/preproc/ERS_preproc/read_data_file_ccrs' make[3]: Entering directory '/build/reproducible-path/gmtsar-6.5+ds/preproc/ERS_preproc/read_sarleader_dpaf' gcc -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gmtsar-6.5+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -z muldefs -g -O2 -Wall -m64 -fPIC -fno-strict-aliasing -std=gnu99 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o read_sarleader_dpaf.o read_sarleader_dpaf.c gcc -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gmtsar-6.5+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -z muldefs -g -O2 -Wall -m64 -fPIC -fno-strict-aliasing -std=gnu99 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o make_prm_dpaf.o make_prm_dpaf.c gcc: error: unrecognized command-line option ‘-m64’ gcc: error: unrecognized command-line option ‘-m64’ make[3]: *** [<builtin>: read_sarleader_dpaf.o] Error 1 make[3]: *** Waiting for unfinished jobs.... ``` The full buildd log is here: https://buildd.debian.org/status/fetch.php?pkg=gmtsar&arch=riscv64&ver=6.5%2Bds-3&stamp=1744870597&raw=0 My solution to this issue: The build process for gmtsar fails on riscv64 because the C compiler encounters an unrecognized command-line option -m64.This option is incorrectly added to CFLAGS and LDFLAGS by the configure script. The logic in configure.ac determines the -m<bits> flag based on gmt-config --bits. While this works for x86_64, the -m64 flag is not valid for the RISC-V GCC toolchain, which infers 64-bit targeting automatically.The configure.ac script has specific workarounds for aarch64 and loongarch64 to avoid adding this flag, but a similar condition for riscv64 is missing.We can modify configure.ac to add a condition for host_cpu = "riscv64" to prevent appending -m<bits> (specifically -m64) to GCC_64 and LDFLAGS for this architecture, similar to how it's handled for aarch64.I have tested that locally, and it works well.The debdiff patch is in the attachment.Please let me know whether this solution can be accepted. Gui-Yue Best Regards
disable_-m64_option_on_riscv64.patch
Description: Binary data
--- End Message ---
--- Begin Message ---Source: gmtsar Source-Version: 6.5+ds-4~exp1 Done: Antonio Valentino <antonio.valent...@tiscali.it> We believe that the bug you reported is fixed in the latest version of gmtsar, 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 1107...@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Antonio Valentino <antonio.valent...@tiscali.it> (supplier of updated gmtsar 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 ftpmas...@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Sun, 08 Jun 2025 10:40:00 +0000 Source: gmtsar Architecture: source Version: 6.5+ds-4~exp1 Distribution: experimental Urgency: medium Maintainer: Debian GIS Project <pkg-grass-de...@lists.alioth.debian.org> Changed-By: Antonio Valentino <antonio.valent...@tiscali.it> Closes: 1107403 Changes: gmtsar (6.5+ds-4~exp1) experimental; urgency=medium . [ Gui-Yue ] * Disable -m64 option in riscv64 (Closes: #1107403). . [ Antonio Valentino ] * debian/patches: - Rename patches. Checksums-Sha1: 21ca6af1849a7afafac51607ca7d52fc500d344c 3450 gmtsar_6.5+ds-4~exp1.dsc 55ab3a61f260962d2d0df920c588a90e4fded5fe 24148 gmtsar_6.5+ds-4~exp1.debian.tar.xz b81965e00ceb1c9b3333695cca0ad36dcbc0796c 12625 gmtsar_6.5+ds-4~exp1_amd64.buildinfo Checksums-Sha256: a31e6e27921cdb714c44c21a00ef015f4f80ec45babbfaf5d7ddae6b3350da2f 3450 gmtsar_6.5+ds-4~exp1.dsc 63205c964fc908bd2891d6c329f259fb0150baea88aaae5667d1bf2434e4505e 24148 gmtsar_6.5+ds-4~exp1.debian.tar.xz 78676c483d15ccac08ffb519236a983fe17e9aa023a6eec0b76e0b60d48c595b 12625 gmtsar_6.5+ds-4~exp1_amd64.buildinfo Files: 829c30b46313413ccdb25e2650dee165 3450 science optional gmtsar_6.5+ds-4~exp1.dsc 6cf14fa1682b1ef3c4e2e1636f6738bc 24148 science optional gmtsar_6.5+ds-4~exp1.debian.tar.xz 273046236887ee4d33dd244ab1aa6f5c 12625 science optional gmtsar_6.5+ds-4~exp1_amd64.buildinfo -----BEGIN PGP SIGNATURE----- iQJRBAEBCgA7FiEEO3DyCaX/1okDxHLF6/SKslePmBIFAmhFbtMdHGFudG9uaW8u dmFsZW50aW5vQHRpc2NhbGkuaXQACgkQ6/SKslePmBLFQhAAv1lEXBab79Rlt+1V uL39NXJcn/0nvyTHr9P8ykNFR8SxMegLeLv+umIjBH8vOjZBgOkefa+e4vY9HL4C w6LXyIo1ekhDyX5rStpQN8zrrbd3JN0gK15340vI/sQ+fnzyLBDOIsLTipN4+fVr NTYiv06XgzjZ0KinD/3AfdxQRuDp+a/fO7eLPdLn8tOrPaf4GhTEswyfKaka/b95 5Dzn/bevJSv8WiF0JBlXpylc9IlsV3Ef9p7Tl+DdTYGwOsb9ClTGirG8sVhCZiQh QH8m3zg1Hl2HJNpuwOEn17VgeJi6RGintdhsa/swLbeN1gzy2yT33ot8g5UEiWwx cnViv4e0cfSnegirrpR/LeEkebbLaFT7JeBMqb+KDI8iJLoA8Zc1S4+KmTYe0PI6 9vmeZxyxFcqxlFxpSIEAAhzAHgxiQ3MiGgyt3cdkqM4sju+OcfWX+PNvvxY9EsCp Z8xdEP9Xf6LQ30nFxvUoeF4T2HqNiETl1qNogzwQbF5UJXZr1mYlRkvx6447EYJn jOmtAcz+wAPKw1mL/3DKK6bNj314mG3RHf/3cr6b9mjv1U/Qtg1MjocX/yuQX1Dl EwQXSpyXYyKtpW7i43Gc1McWSAqFcH9HnN4ZKtkCd2LNeeCf9tiRw1/3H7N+pxiv xAUrTPSSCv0kHBBmvFInR2oSJ8s= =FWDi -----END PGP SIGNATURE-----
pgpmE3Y7R1hzP.pgp
Description: PGP signature
--- End Message ---