[MacPorts] #67357: libjxl @0.8.1: error: expected ')' before 'PRIu64'
MacPorts
noreply at macports.org
Tue Mar 12 14:32:58 UTC 2024
#67357: libjxl @0.8.1: error: expected ')' before 'PRIu64'
------------------------+-----------------------
Reporter: ballapete | Owner: jmroot
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: tiger ppc
Port: libjxl |
------------------------+-----------------------
Comment (by ballapete):
A possible patch could be:
{{{
--- CMakeLists.txt~ 2024-03-12 13:44:09.000000000 +0100
+++ CMakeLists.txt 2024-03-12 14:10:11.000000000 +0100
@@ -293,6 +293,8 @@
-D__DATE__="redacted"
-D__TIMESTAMP__="redacted"
-D__TIME__="redacted"
+ -DPRId64=qd
+ -DPRIu64=qu
)
# TODO(eustas): JXL currently compiles, but does not pass tests...
}}}
but produces a déjà-vu, almost:
{{{
[ 41%] Building CXX object
CMakeFiles/decode_progressive.dir/examples/decode_progressive.cc.o
/opt/local/bin/g++-mp-7 -DFJXL_ENABLE_AVX512=0
-DHWY_DISABLED_TARGETS="(HWY_SSSE3|HWY_AVX3|HWY_AVX3_SPR|HWY_AVX3_ZEN4|HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)"
-DPRId64=qd -DPRIu64=qu -D__DATE__=\"redacted\"
-D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\"
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/lib/include
-isystem /opt/local/include -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -fno-rtti
-DNDEBUG -arch ppc -mmacosx-version-min=10.4 -fPIE -funwind-tables -fno-
omit-frame-pointer -Wno-builtin-macro-redefined -Wall -std=c++11 -MD -MT
CMakeFiles/decode_progressive.dir/examples/decode_progressive.cc.o -MF
CMakeFiles/decode_progressive.dir/examples/decode_progressive.cc.o.d -o
CMakeFiles/decode_progressive.dir/examples/decode_progressive.cc.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/examples/decode_progressive.cc
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/examples/decode_progressive.cc:
In function 'bool DecodeJpegXlProgressive(const uint8_t*, size_t, const
char*, size_t)':
<command-line>:0:8: error: expected ')' before 'qu'
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/examples/decode_progressive.cc:87:33:
note: in expansion of macro 'PRIu64'
printf("Flushing after %" PRIu64 " bytes\n",
static_cast<uint64_t>(seen));
^~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/examples/decode_progressive.cc:87:79:
warning: spurious trailing '%' in format [-Wformat=]
printf("Flushing after %" PRIu64 " bytes\n",
static_cast<uint64_t>(seen));
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/examples/decode_progressive.cc:87:79:
warning: too many arguments for format [-Wformat-extra-args]
<command-line>:0:8: error: expected ')' before 'qu'
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/examples/decode_progressive.cc:93:42:
note: in expansion of macro 'PRIu64'
if (snprintf(fname, 1024, "%s-%" PRIu64 ".pam", filename,
^~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/examples/decode_progressive.cc:94:49:
warning: spurious trailing '%' in format [-Wformat=]
static_cast<uint64_t>(seen)) >= 1024) {
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/examples/decode_progressive.cc:94:49:
warning: too many arguments for format [-Wformat-extra-args]
<command-line>:0:8: error: expected ')' before 'qu'
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/examples/decode_progressive.cc:147:53:
note: in expansion of macro 'PRIu64'
fprintf(stderr, "Invalid out buffer size %" PRIu64 " != %" PRIu64
"\n",
^~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/examples/decode_progressive.cc:149:57:
warning: spurious trailing '%' in format [-Wformat=]
static_cast<uint64_t>(xsize * ysize * 4));
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/examples/decode_progressive.cc:149:57:
warning: too many arguments for format [-Wformat-extra-args]
make[2]: ***
[CMakeFiles/decode_progressive.dir/examples/decode_progressive.cc.o] Error
1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build'
}}}
So it was thought too easy…
--
Ticket URL: <https://trac.macports.org/ticket/67357#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list