%configure errors out on SLES12 SP5 due to --disable-dependency-tracking
Hi all, I just tried to build a package for SLES12SP5, but it failed during %configure. The problem is that the rpm macro, defined in /usr/lib/rpm/macros, contains the argument "--disable-dependency-tracking". Which is not recognized somehow:
[ 22s] + cd os-update-1.8 [ 22s] + CFLAGS='-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection' [ 22s] + export CFLAGS [ 22s] + CXXFLAGS='-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection' [ 22s] + export CXXFLAGS [ 22s] + FFLAGS='-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection' [ 22s] + export FFLAGS [ 22s] + ./configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --enable-vendordir=/etc [ 22s] configure: WARNING: unrecognized options: --disable-dependency-tracking, --disable-dependency-tracking
If I replace the macro with the configure call from the error message, but just leave out the --disable-dependency-tracking option (that is included twice), everything builds fine.
https://build.opensuse.org/project/show/home:ojkastl_buildservice:systemd-st...
The project is standard, no funny things in prjconf. I just added the build targets via the GUI. So I am surprised that the rpm macros file contains things the configure call does not understand. For now it is fine to just hardcode this, but I wanted to report this or rather ask, if it is a bug and should be reported. Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
On Dez 21 2022, Johannes Kastl wrote:
[ 22s] configure: WARNING: unrecognized options: --disable-dependency-tracking, --disable-dependency-tracking
This is just a warning, the problem must be somewhere else. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
Hi Andreas, On 21.12.22 at 14:06 Andreas Schwab wrote:
On Dez 21 2022, Johannes Kastl wrote:
[ 22s] configure: WARNING: unrecognized options: --disable-dependency-tracking, --disable-dependency-tracking
This is just a warning, the problem must be somewhere else.
Of course you are right. It seems the %make_build macro failed, but the error was intermingled with the configure warning, so I was mislead... :-( I replaced the macro for SLES12 and the package seems to build fine now. Sorry for the noise. Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
participants (2)
-
Andreas Schwab
-
Johannes Kastl