Bug#983927: gsequencer: ftbfs with -march=x86-64-v2
Hi,
I just compiled gsequencer-3.7.38 and disabled hardening options.
I think it is duplicated of Bug#983868
--- Makefile.am.orig 2021-03-03 16:57:30.680130313 +0100
+++ Makefile.am 2021-03-03 16:57:38.428171218 +0100
@@ -21,7 +21,7 @@
if WITH_OSXAPI
AM_CPPFLAGS += -DAGS_OSX_ACCELERATE_BUILTIN_FUNCTIONS=1
-DAGS_OSXAPI=1 -I/usr/include -I/opt/local/include
-I/opt/local/include/dssi -DAGS_LIBRARY_SUFFIX=\".dylib\"
else
-AM_CPPFLAGS += -include errno.h -DAGS_VECTORIZED_BUILTIN_FUNCTIONS=1
-I/usr/include -DAGS_LIBRARY_SUFFIX=\".so\" -Werror=return-type
-Werror=uninitialized -Werror=maybe-uninitialized
+AM_CPPFLAGS += -include errno.h -DAGS_VECTORIZED_BUILTIN_FUNCTIONS=1
-I/usr/include -DAGS_LIBRARY_SUFFIX=\".so\"
endif
endif
It compiles fine here: `CFLAGS="-march=x86-64-v2" ./configure && make -j20`
root@deb-halo:~# cpu-info
Packages:
0: Intel Xeon E5-2640
Microarchitectures:
12x Sandy Bridge
Cores:
0: 2 processors (0-1), Intel Sandy Bridge
1: 2 processors (2-3), Intel Sandy Bridge
2: 2 processors (4-5), Intel Sandy Bridge
3: 2 processors (6-7), Intel Sandy Bridge
4: 2 processors (8-9), Intel Sandy Bridge
5: 2 processors (10-11), Intel Sandy Bridge
6: 2 processors (12-13), Intel Sandy Bridge
7: 2 processors (14-15), Intel Sandy Bridge
8: 2 processors (16-17), Intel Sandy Bridge
9: 2 processors (18-19), Intel Sandy Bridge
10: 2 processors (20-21), Intel Sandy Bridge
11: 2 processors (22-23), Intel Sandy Bridge
Logical processors (System ID):
0 (0): APIC ID 0x00000000
1 (12): APIC ID 0x00000001
2 (1): APIC ID 0x00000002
3 (13): APIC ID 0x00000003
4 (2): APIC ID 0x00000004
5 (14): APIC ID 0x00000005
6 (3): APIC ID 0x00000006
7 (15): APIC ID 0x00000007
8 (4): APIC ID 0x00000008
9 (16): APIC ID 0x00000009
10 (5): APIC ID 0x0000000a
11 (17): APIC ID 0x0000000b
12 (6): APIC ID 0x00000020
13 (18): APIC ID 0x00000021
14 (7): APIC ID 0x00000022
15 (19): APIC ID 0x00000023
16 (8): APIC ID 0x00000024
17 (20): APIC ID 0x00000025
18 (9): APIC ID 0x00000026
19 (21): APIC ID 0x00000027
20 (10): APIC ID 0x00000028
21 (22): APIC ID 0x00000029
22 (11): APIC ID 0x0000002a
23 (23): APIC ID 0x0000002b
regards,
Joël
On Wed, Mar 3, 2021 at 4:15 PM Matthias Klose <doko@debian.org> wrote:
>
> Package: src:gsequencer
> Version: 3.7.38-1
> Severity: minor
> User: debian-gcc@lists.debian.org
> Usertags: ftbfs-x86-64-v2
>
> Starting with LLVM 12 and GCC 11 (and backported to gcc-10 for Debian),
> GCC introduces optimizations for new micro-architecture levels from
> the x86-64 psABI. Filing these bug reports for packages building with
> the current level (x86-64), but not with x86-64-v2.
>
> To reproduce these issues, append -march=x86-64-v2 to the compiler
> flags (CFLAGS, CXXFLAGS, ...). You also need hardware supporting these.
> The easiest way is to call the dynamic linker in glibc 2.33 like
> /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 --help
> Otherwise look at the flags in /proc/cpuinfo and compare these with
> those from table 3.1 in the System V Application Binary Interface doc:
> https://gitlab.com/x86-psABIs/x86-64-ABI/-/wikis/x86-64-psABI
>
> Please don't upload a package setting these flags by default. The
> x86-64 baseline is still unchanged.
>
> The full build log can be found at:
> http://people.debian.org/~doko/logs/20210228/filtered/gcc10-v2/gsequencer_3.7.38-1_unstable_gcc10-v2.log
> The last lines of the build log are at the end of this report.
>
> [...]
> | char *
> In file included from ./ags/audio/midi/ags_midi_parser.h:26,
> from ags/audio/midi/ags_midi_parser.c:20:
> /usr/include/libxml2/libxml/tree.h:791:22: note: expected ‘const xmlChar *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
> 791 | const xmlChar *name,
> | ~~~~~~~~~~~~~~~^~~~
> ags/audio/midi/ags_midi_parser.c:2854:4: warning: pointer targets in passing argument 3 of ‘xmlNewProp’ differ in signedness [-Wpointer-sign]
> 2854 | text);
> | ^~~~
> | |
> | gchar * {aka char *}
> In file included from ./ags/audio/midi/ags_midi_parser.h:26,
> from ags/audio/midi/ags_midi_parser.c:20:
> /usr/include/libxml2/libxml/tree.h:792:22: note: expected ‘const xmlChar *’ {aka ‘const unsigned char *’} but argument is of type ‘gchar *’ {aka ‘char *’}
> 792 | const xmlChar *value);
> | ~~~~~~~~~~~~~~~^~~~~
> ags/audio/midi/ags_midi_parser.c:2861:4: warning: pointer targets in passing argument 2 of ‘xmlNewProp’ differ in signedness [-Wpointer-sign]
> 2861 | "sequence-name",
> | ^~~~~~~~~~~~~~~
> | |
> | char *
> In file included from ./ags/audio/midi/ags_midi_parser.h:26,
> from ags/audio/midi/ags_midi_parser.c:20:
> /usr/include/libxml2/libxml/tree.h:791:22: note: expected ‘const xmlChar *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
> 791 | const xmlChar *name,
> | ~~~~~~~~~~~~~~~^~~~
> ags/audio/midi/ags_midi_parser.c:2862:4: warning: pointer targets in passing argument 3 of ‘xmlNewProp’ differ in signedness [-Wpointer-sign]
> 2862 | text);
> | ^~~~
> | |
> | gchar * {aka char *}
> In file included from ./ags/audio/midi/ags_midi_parser.h:26,
> from ags/audio/midi/ags_midi_parser.c:20:
> /usr/include/libxml2/libxml/tree.h:792:22: note: expected ‘const xmlChar *’ {aka ‘const unsigned char *’} but argument is of type ‘gchar *’ {aka ‘char *’}
> 792 | const xmlChar *value);
> | ~~~~~~~~~~~~~~~^~~~~
> ags/audio/midi/ags_midi_parser.c:2869:4: warning: pointer targets in passing argument 2 of ‘xmlNewProp’ differ in signedness [-Wpointer-sign]
> 2869 | "instrument-name",
> | ^~~~~~~~~~~~~~~~~
> | |
> | char *
> In file included from ./ags/audio/midi/ags_midi_parser.h:26,
> from ags/audio/midi/ags_midi_parser.c:20:
> /usr/include/libxml2/libxml/tree.h:791:22: note: expected ‘const xmlChar *’ {aka ‘const unsigned char *’} but argument is of type ‘char *’
> 791 | const xmlChar *name,
> | ~~~~~~~~~~~~~~~^~~~
> ags/audio/midi/ags_midi_parser.c:2870:4: warning: pointer targets in passing argument 3 of ‘xmlNewProp’ differ in signedness [-Wpointer-sign]
> 2870 | text);
> | ^~~~
> | |
> | gchar * {aka char *}
> In file included from ./ags/audio/midi/ags_midi_parser.h:26,
> from ags/audio/midi/ags_midi_parser.c:20:
> /usr/include/libxml2/libxml/tree.h:792:22: note: expected ‘const xmlChar *’ {aka ‘const unsigned char *’} but argument is of type ‘gchar *’ {aka ‘char *’}
> 792 | const xmlChar *value);
> | ~~~~~~~~~~~~~~~^~~~~
> ags/audio/midi/ags_midi_parser.c: In function ‘ags_midi_parser_set_property’:
> ags/audio/midi/ags_midi_parser.c:792:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 792 | fread(midi_parser->buffer, sizeof(guchar), file_length, f);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> libtool: compile: gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I./ags -std=gnu99 -include errno.h -DAGS_VECTORIZED_BUILTIN_FUNCTIONS=1 -I/usr/include -DAGS_LIBRARY_SUFFIX=\".so\" -Werror=return-type -Werror=uninitialized -Werror=maybe-uninitialized -DSRCDIR=\".\" -DDESTDIR=\"/usr/share\" -DDOCDIR=\"/usr/share/doc/gsequencer\" -DPACKAGE_VERSION=\"3.7.38\" -DAGS_REDUCE_RT_EVENTS=1 -D_FORTIFY_SOURCE=2 -Wall -Wformat -Werror=format-security -DAGS_WITH_LIBINSTPATCH=1 -Wdate-time -D_FORTIFY_SOURCE=2 -DAGS_CSS_FILENAME=\"/usr/share/gsequencer/styles/ags.css\" -DAGS_ANIMATION_FILENAME=\"/usr/share/gsequencer/images/gsequencer-800x450.png\" -DAGS_LOGO_FILENAME=\"/usr/share/gsequencer/images/ags.png\" -DAGS_LICENSE_FILENAME=\"/usr/share/common-licenses/GPL-3\" -DAGS_ONLINE_HELP_START_FILENAME=\"file:///usr/share/doc/gsequencer-doc/html/index.html\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O -I./ -I/usr/include/libxml2 -I/usr/include/opus -pthread -I/usr/include/libinstpatch-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/opus -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ags/audio/midi/ags_midi_file.c -o ags/audio/midi/libags_audio_la-ags_midi_file.o >/dev/null 2>&1
> libtool: compile: gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I./ags -std=gnu99 -include errno.h -DAGS_VECTORIZED_BUILTIN_FUNCTIONS=1 -I/usr/include -DAGS_LIBRARY_SUFFIX=\".so\" -Werror=return-type -Werror=uninitialized -Werror=maybe-uninitialized -DSRCDIR=\".\" -DDESTDIR=\"/usr/share\" -DDOCDIR=\"/usr/share/doc/gsequencer\" -DPACKAGE_VERSION=\"3.7.38\" -DAGS_REDUCE_RT_EVENTS=1 -D_FORTIFY_SOURCE=2 -Wall -Wformat -Werror=format-security -DAGS_WITH_LIBINSTPATCH=1 -Wdate-time -D_FORTIFY_SOURCE=2 -DAGS_CSS_FILENAME=\"/usr/share/gsequencer/styles/ags.css\" -DAGS_ANIMATION_FILENAME=\"/usr/share/gsequencer/images/gsequencer-800x450.png\" -DAGS_LOGO_FILENAME=\"/usr/share/gsequencer/images/ags.png\" -DAGS_LICENSE_FILENAME=\"/usr/share/common-licenses/GPL-3\" -DAGS_ONLINE_HELP_START_FILENAME=\"file:///usr/share/doc/gsequencer-doc/html/index.html\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O -I./ -I/usr/include/libxml2 -I/usr/include/opus -pthread -I/usr/include/libinstpatch-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/opus -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ags/audio/midi/ags_midi_parser.c -o ags/audio/midi/libags_audio_la-ags_midi_parser.o >/dev/null 2>&1
> make[3]: Leaving directory '/<<PKGBUILDDIR>>'
> make[2]: *** [Makefile:29011: all-recursive] Error 1
> make[2]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_build: error: make -j4 returned exit code 2
> make[1]: *** [debian/rules:39: override_dh_auto_build] Error 25
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:33: binary] Error 2
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
>
Reply to: