[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#983927: gsequencer: ftbfs with -march=x86-64-v2



Hi,

I am not able to reproduce with debian sid gcc-10.

gcc-10/unstable,now 10.2.1-6 amd64 [installed]
  GNU C compiler

just built successfully gsequencer-v3.7.38

CFLAGS="-march=x86-64-v2" ./configure && make -j20

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: