Closed edigiacomo closed 1 month ago
Purtroppo non riesco nemmeno a compilare:
$ monci ci --debug --branch cpp17 rocky8 https://github.com/arpa-simc/wreport.git
...
2024-07-24 13:45:24 INFO system.rocky8 stdout: Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.FHnH1g
2024-07-24 13:45:24 INFO system.rocky8 stderr: + umask 022
2024-07-24 13:45:24 INFO system.rocky8 stderr: + cd /root/rpmbuild/BUILD
2024-07-24 13:45:24 INFO system.rocky8 stderr: + cd wreport
2024-07-24 13:45:24 INFO system.rocky8 stderr: + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
2024-07-24 13:45:24 INFO system.rocky8 stderr: + export CFLAGS
2024-07-24 13:45:24 INFO system.rocky8 stderr: + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
2024-07-24 13:45:24 INFO system.rocky8 stderr: + export CXXFLAGS
2024-07-24 13:45:24 INFO system.rocky8 stderr: + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
2024-07-24 13:45:24 INFO system.rocky8 stderr: + export FFLAGS
2024-07-24 13:45:24 INFO system.rocky8 stderr: + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
2024-07-24 13:45:24 INFO system.rocky8 stderr: + export FCFLAGS
2024-07-24 13:45:24 INFO system.rocky8 stderr: + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
2024-07-24 13:45:24 INFO system.rocky8 stderr: + export LDFLAGS
2024-07-24 13:45:24 INFO system.rocky8 stderr: + /usr/bin/meson --buildtype=plain --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled . x86_64-redhat-linux-gnu
2024-07-24 13:45:25 INFO system.rocky8 stdout: The Meson build system
2024-07-24 13:45:25 INFO system.rocky8 stdout: Version: 0.58.2
2024-07-24 13:45:25 INFO system.rocky8 stdout: Source dir: /root/rpmbuild/BUILD/wreport
2024-07-24 13:45:25 INFO system.rocky8 stdout: Build dir: /root/rpmbuild/BUILD/wreport/x86_64-redhat-linux-gnu
2024-07-24 13:45:25 INFO system.rocky8 stdout: Build type: native build
2024-07-24 13:45:25 INFO system.rocky8 stdout:
2024-07-24 13:45:25 INFO system.rocky8 stdout: meson.build:1:0: ERROR: Value "everything" (of type "string") for combo option "Compiler warning level to use" is not one of the choices. Possible choices are (as string): "0", "1", "2", "3".
2024-07-24 13:45:25 INFO system.rocky8 stdout:
2024-07-24 13:45:25 INFO system.rocky8 stdout: A full log can be found at /root/rpmbuild/BUILD/wreport/x86_64-redhat-linux-gnu/meson-logs/meson-log.txt
2024-07-24 13:45:25 INFO system.rocky8 stderr: error: Bad exit status from /var/tmp/rpm-tmp.FHnH1g (%build)
2024-07-24 13:45:25 INFO system.rocky8 stderr: Bad exit status from /var/tmp/rpm-tmp.FHnH1g (%build)
2024-07-24 13:45:25 INFO system.rocky8 stdout:
2024-07-24 13:45:25 INFO system.rocky8 stdout:
2024-07-24 13:45:25 INFO system.rocky8 stdout: RPM build errors:
Ok:
warning_level=everything
è della 1.0.g++ 8.x
richiede l'uso di -lstdc++fs
, che è default dalla 9.0Ho fatto push di entrambe le cose e ora da me riesce a fare build su rocky8: puoi riprovare?
Grazie! Avevo già superato lo scoglio del warning_level
e stavo cercando di capire appunto se c'erano librerie aggiuntive da usare oppure c'era qualche opzione di default data dalla pacchettizzazione che invalidava c++17, mi hai risparmiato ore :)
Ho fatto il pacchetto di wreport usando il branch cpp17
, l'ho installato e poi ho installato dballe
e arkimet
. Ho provato a far girare un po' di programmi presi da procedure operative del SIMC e non ho avuto problemi.
Ho fatto il pacchetto di wreport usando il branch
cpp17
, l'ho installato e poi ho installatodballe
earkimet
. Ho provato a far girare un po' di programmi presi da procedure operative del SIMC e non ho avuto problemi.
Oooh, ottima notizia! Allora posso far merge di wreport cpp17 in master, e iniziare a passare anche dballe e arkimet a c++17, senza preoccuparmi piú di tanto di incompatibilità di ABI
Benissimo, grazie! Chiudo il ticket.
Apro questa issue per tenere traccia dei test nel branch
cpp17
.Cose da fare:
cpp17