Bug#914725: gtk-d fails to build from the source, due to unrecognized command-line options

Pablo De Napoli pdenapo at yahoo.com
Mon Nov 26 17:53:12 GMT 2018


Source: gtk-d
Version: 3.8.4-1
Severity: serious
Justification: fails to build from source (but built successfully in the past)

Dear mantainer,

This package fails to build with ldc ( 1:1.12.0-1), due to unsupported
command line options. See the following build log

fakeroot ./debian/rules binary
dh binary --with gnome
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   debian/rules override_dh_auto_build
make[1]: se entra en el directorio '/home/pablo/debian/gtkd/gtk-d-3.8.4'
/usr/bin/make -j2 \
    test \
    shared-gtkd \
    shared-sv \
    shared-gstreamer \
    shared-vte \
    prefix=/usr
make[2]: se entra en el directorio '/home/pablo/debian/gtkd/gtk-d-3.8.4'
ldc2 -g -O2 -fdebug-prefix-map=/home/pablo/debian/gtkd/gtk-d-3.8.4=. -fstack-protector-strong -Wformat -Werror=format-security -Igenerated/gtkd -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TestStock.d -ofdemos/gtkD/TestWindow/TestStock.o
ldc2 -g -O2 -fdebug-prefix-map=/home/pablo/debian/gtkd/gtk-d-3.8.4=. -fstack-protector-strong -Wformat -Werror=format-security -Igenerated/gtkd -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TestTreeView1.d -ofdemos/gtkD/TestWindow/TestTreeView1.o
ldc2: Unknown command line argument '-fdebug-prefix-map=/home/pablo/debian/gtkd/gtk-d-3.8.4=.'.  Try: 'ldc2 -help'
ldc2: Did you mean '-debug-compile=/home/pablo/debian/gtkd/gtk-d-3.8.4=.'?
ldc2: Unknown command line argument '-fdebug-prefix-map=/home/pablo/debian/gtkd/gtk-d-3.8.4=.'.  Try: 'ldc2 -help'
ldc2: Did you mean '-debug-compile=/home/pablo/debian/gtkd/gtk-d-3.8.4=.'?
ldc2: Unknown command line argument '-fstack-protector-strongldc2'.  Try: ': Unknown command line argument 'ldc2-fstack-protector-strong -help'
'.  Try: 'ldc2ldc2: Did you mean '- -help'
stack-symbol-orderingldc2'?
: Did you mean '-stack-symbol-ordering'?
ldc2ldc2: Unknown command line argument ': Unknown command line argument '-Wformat-Wformat'.  Try: ''.  Try: 'ldc2ldc2 -help'
 -help'
ldc2ldc2: Did you mean '-: Did you mean '-confconf'?
'?
ldc2: Unknown command line argument '-Werror=format-security'.  Try: 'ldc2 -help'
ldc2ldc2: Did you mean '-: Unknown command line argument 'verrors=format-security-Werror=format-security'?
'.  Try: 'ldc2 -help'
ldc2: Did you mean '-verrors=format-security'?
make[2]: *** [GNUmakefile:258: demos/gtkD/TestWindow/TestStock.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
make[2]: *** [GNUmakefile:258: demos/gtkD/TestWindow/TestTreeView1.o] Error 1
make[2]: se sale del directorio '/home/pablo/debian/gtkd/gtk-d-3.8.4'
make[1]: *** [debian/rules:19: override_dh_auto_build] Error 2
make[1]: se sale del directorio '/home/pablo/debian/gtkd/gtk-d-3.8.4'
make: *** [debian/rules:16: binary] Error 2

The version of my compiler is

ldc2 --version
LDC - the LLVM D compiler (1.12.0):
  based on DMD v2.082.1 and LLVM 6.0.1
  built with LDC - the LLVM D compiler (1.12.0)
  Default target: x86_64-pc-linux-gnu
  Host CPU: haswell
  http://dlang.org - http://wiki.dlang.org/LDC

(built from the sources as indicated in bug #914692). I have also
built from the sources other requiered packages (in order to ensure
that my D toolchain is consistently built using the same compiler
and shared libraries), like gir-to-d( 0.16.1-1 ), dh-dlang (0.6.1)
and deafult-d-compiler-0.6.1).

Also (probably this an unrelated bug): if dmd compiler from Digital Mars happens to be installed
on the system, the build system uses that instead of ldc, and the building process fails likewise.
This time the build log is

akeroot ./debian/rules binary
dh binary --with gnome
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   debian/rules override_dh_auto_build
make[1]: se entra en el directorio '/home/pablo/debian/gtkd/gtk-d-3.8.4'
/usr/bin/make -j2 \
    test \
    shared-gtkd \
    shared-sv \
    shared-gstreamer \
    shared-vte \
    prefix=/usr
make[2]: se entra en el directorio '/home/pablo/debian/gtkd/gtk-d-3.8.4'
dmd -g -O2 -fdebug-prefix-map=/home/pablo/debian/gtkd/gtk-d-3.8.4=. -fstack-protector-strong -Wformat -Werror=format-security -Igenerated/gtkd -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TestStock.d -ofdemos/gtkD/TestWindow/TestStock.o
dmd -g -O2 -fdebug-prefix-map=/home/pablo/debian/gtkd/gtk-d-3.8.4=. -fstack-protector-strong -Wformat -Werror=format-security -Igenerated/gtkd -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TestTreeView1.d -ofdemos/gtkD/TestWindow/TestTreeView1.o
Error: unrecognized switch '-O2'
Error: unrecognized switch '-fdebug-prefix-map=/home/pablo/debian/gtkd/gtk-d-3.8.4=.'
Error: unrecognized switch '-fstack-protector-strong'
Error: unrecognized switch '-Wformat'
Error: unrecognized switch '-Werror=format-security'
       run 'dmd -man' to open browser on manual
Error: unrecognized switch '-O2'
Error: unrecognized switch '-fdebug-prefix-map=/home/pablo/debian/gtkd/gtk-d-3.8.4=.'
Error: unrecognized switch '-fstack-protector-strong'
Error: unrecognized switch '-Wformat'
Error: unrecognized switch '-Werror=format-security'
       run 'dmd -man' to open browser on manual
make[2]: *** [GNUmakefile:258: demos/gtkD/TestWindow/TestStock.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
make[2]: *** [GNUmakefile:258: demos/gtkD/TestWindow/TestTreeView1.o] Error 1
make[2]: se sale del directorio '/home/pablo/debian/gtkd/gtk-d-3.8.4'
make[1]: *** [debian/rules:19: override_dh_auto_build] Error 2
make[1]: se sale del directorio '/home/pablo/debian/gtkd/gtk-d-3.8.4'
make: *** [debian/rules:16: binary] Error 2

The compiler this time was

dmd --version
DMD64 D Compiler v2.083.0
Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved written by Walter Bright

Many thanks,

Pablo De Nápoli.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8), LANGUAGE=es_AR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20181126/04cc6c44/attachment-0001.html>


More information about the pkg-gnome-maintainers mailing list