Hi Petr, I've never taken a deeper look into amanda's makefiles so the following is just a guess. It looks like there is a dependency missing or not recognized and you are using the make utility with parallel job execution enabled (option -j), so make resolves to start gcc in parallel with the generation of genversion.h. Depending on your system load the generation of that header file finishes before or after gcc needs it, which results in a kind of unreproducible behavior. Maybe this is a result of passing --disable-dependency-tracking to ./configure ??
Best Jens On Tue Oct 22 2013 11:45:20 GMT+0200 phra...@redhat.com (Petr Hracek) wrote: > Hi folks, > > I would like to build amanda under s390x environment > but it is failing with > > Making all in common-src > make[2]: Entering directory `/builddir/build/BUILD/amanda-3.3.3/common-src' > rm -f genversion.h genversion.h.new > gcc -DHAVE_CONFIG_H -I. -I../config -I../gnulib -fno-strict-aliasing > -D_GNU_SOURCE -I/usr/include -pthread -I/usr/include/glib-2.0 > -I/usr/lib64/glib-2.0/include -Wall -Wextra -Wparentheses > -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes > -Wmissing-declarations -Wformat -Wformat-security -Wsign-compare > -Wfloat-equal -Wold-style-definition -Wno-strict-aliasing > -Wno-unknown-pragmas -Wno-deprecated-declarations -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -grecord-gcc-switches > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -march=z10 > -mtune=zEC12 -fPIE -fno-strict-aliasing -c genversion.c > echo '#define CC "gcc"' > genversion.h.new > echo '#define BUILT_DATE "'`date`'"' >> genversion.h.new > genversion.c:38:24: fatal error: genversion.h: No such file or directory > #include "genversion.h" > ^ > compilation terminated. > echo '#define BUILT_MACH ""' >> genversion.h.new > mv genversion.h.new genversion.h > The bug is not reproducible, so it is likely a hardware or OS problem. > make[2]: Leaving directory `/builddir/build/BUILD/amanda-3.3.3/common-src' > > > Did you observed this behaviour? > configure script is called with these parameters > > ./configure --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/lib64 > --localstatedir=/var --sharedstatedir=/var/lib > --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared > --disable-rpath --disable-static --disable-dependency-tracking > --disable-installperms --with-amdatadir=/var/lib/amanda > --with-amlibdir=/usr/lib64 --with-amperldir=/usr/lib64/perl5/vendor_perl > --with-index-server=amandahost --with-tape-server=amandahost > --with-config=DailySet1 --with-gnutar-listdir=/var/lib/amanda/gnutar-lists > --with-smbclient=/usr/bin/smbclient > --with-amandates=/var/lib/amanda/amandates --with-amandahosts > --with-user=amandabackup --with-group=disk > --with-tmpdir=/var/log/amanda --with-gnutar=/bin/tar > --with-ssh-security --with-rsh-security --with-bsdtcp-security > --with-bsdudp-security --with-krb5-security > > Thank you in advance. >