RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1315856 - Failing to build mtr with 'make: *** No rule to make target `install'. Stop.'
Summary: Failing to build mtr with 'make: *** No rule to make target `install'. Stop.'
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: mtr
Version: 6.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Sekletar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1356056
TreeView+ depends on / blocked
 
Reported: 2016-03-08 19:02 UTC by Madison Kelly
Modified: 2016-09-30 09:25 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-30 09:23:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Madison Kelly 2016-03-08 19:02:27 UTC
Description of problem:

Apologies if important details are missing, I am new to mock. I am reporting this on James Hogarth's recommendation in this message;

https://lists.centos.org/pipermail/centos/2016-March/158167.html

When I try to build mtr (directly with 'rpmbuild -ba' or with mock), it fails with:

====
+ make DESTDIR=/builddir/build/BUILDROOT/mtr-0.75-5.el6.anvil.x86_64 install
make: *** No rule to make target `install'.  Stop.


RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.8atuER (%install)
    Bad exit status from /var/tmp/rpm-tmp.8atuER (%install)
ERROR: Exception(/home/digimer/rpmbuild/SRPMS/mtr-0.75-5.el6.anvil.src.rpm) Config(epel-6-x86_64) 5 minutes 54 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-6-x86_64/result
ERROR: Command failed. See logs for output.
 # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps  /builddir/build/SPECS/mtr.spec 
====

Version-Release number of selected component (if applicable):

mock-1.2.14-1.el6.noarch


How reproducible:

Seems to be 100%.


Steps to Reproduce:

On a CentOS/RHEL 6 machine as a new unpriveledged user;
1. yumdownloader --source mtr-gtk
2. rpm -Uvh mtr-0.75-5.el6.src.rpm
3. cd rpmbuild/SPECS/
4. vim mtr.spec                     # Changed 'release'
5. rpmbuild -bs mtr.spec 
6. mock /home/digimer/rpmbuild/SRPMS/mtr-0.75-5.el6.anvil.src.rpm 
7. You are attempting to run "mock" which requires administrative

====
privileges, but more information is needed in order to do so.
Authenticating as "root"
Password: 
INFO: mock.py version 1.2.14 starting (python version = 2.6.6)...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
<snip a whole lot of dependencies being installed>
Finish: build setup for mtr-0.75-5.el6.anvil.src.rpm
Start: rpmbuild mtr-0.75-5.el6.anvil.src.rpm
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fGYSWY
+ umask 022
+ cd /builddir/build/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /builddir/build/BUILD
+ rm -rf mtr-0.75
+ /usr/bin/gzip -dc /builddir/build/SOURCES/mtr-0.75.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mtr-0.75
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (mtr-0.75-fd-flags.path):'
Patch #0 (mtr-0.75-fd-flags.path):
+ /bin/cat /builddir/build/SOURCES/mtr-0.75-fd-flags.path
+ /usr/bin/patch -p1 -b --suffix .fd-flags --fuzz=0
patching file net.c
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.lFW8EH
+ umask 022
+ cd /builddir/build/BUILD
+ cd mtr-0.75
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-gtk2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unsigned char... yes
checking size of unsigned char... 1
checking for unsigned short... yes
checking size of unsigned short... 2
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned long... yes
checking size of unsigned long... 8
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking ncurses/curses.h usability... yes
checking ncurses/curses.h presence... yes
checking for ncurses/curses.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking cursesX.h usability... no
checking cursesX.h presence... no
checking for cursesX.h... no
checking for sys/types.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/xti.h usability... no
checking sys/xti.h presence... no
checking for sys/xti.h... no
checking for tgetent in -ltermcap... yes
checking for initscr... no
checking for initscr in -lncurses... yes
checking for attron... yes
checking for fcntl... yes
checking for floor in -lm... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.4.0... yes (version 2.24.23)
checking for socket... yes
checking for gethostbyname... yes
checking for seteuid... yes
checking for res_mkquery... no
checking for res_mkquery in -lbind... no
checking for res_mkquery in -lresolv... no
checking for __res_mkquery in -lresolv... yes
checking for herror... yes
checking for strerror... yes
checking for getaddrinfo... yes
checking whether errno is declared... yes
checking for socklen_t... yes
checking for struct in_addr... yes
checking for C flags to get more warnings... -Wall -Wno-pointer-sign
configure: creating ./config.status
config.status: creating Makefile
config.status: creating img/Makefile
config.status: creating config.h
config.status: executing depfiles commands
+ make -j4
make  all-recursive
make[1]: Entering directory `/builddir/build/BUILD/mtr-0.75'
Making all in img
make[2]: Entering directory `/builddir/build/BUILD/mtr-0.75/img'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/builddir/build/BUILD/mtr-0.75/img'
make[2]: Entering directory `/builddir/build/BUILD/mtr-0.75'
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -Wno-pointer-sign -MT mtr.o -MD -MP -MF ".deps/mtr.Tpo" -c -o mtr.o mtr.c; \
	then mv -f ".deps/mtr.Tpo" ".deps/mtr.Po"; else rm -f ".deps/mtr.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -Wno-pointer-sign -MT net.o -MD -MP -MF ".deps/net.Tpo" -c -o net.o net.c; \
	then mv -f ".deps/net.Tpo" ".deps/net.Po"; else rm -f ".deps/net.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -Wno-pointer-sign -MT dns.o -MD -MP -MF ".deps/dns.Tpo" -c -o dns.o dns.c; \
	then mv -f ".deps/dns.Tpo" ".deps/dns.Po"; else rm -f ".deps/dns.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -Wno-pointer-sign -MT raw.o -MD -MP -MF ".deps/raw.Tpo" -c -o raw.o raw.c; \
	then mv -f ".deps/raw.Tpo" ".deps/raw.Po"; else rm -f ".deps/raw.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -Wno-pointer-sign -MT split.o -MD -MP -MF ".deps/split.Tpo" -c -o split.o split.c; \
	then mv -f ".deps/split.Tpo" ".deps/split.Po"; else rm -f ".deps/split.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -Wno-pointer-sign -MT display.o -MD -MP -MF ".deps/display.Tpo" -c -o display.o display.c; \
	then mv -f ".deps/display.Tpo" ".deps/display.Po"; else rm -f ".deps/display.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -Wno-pointer-sign -MT report.o -MD -MP -MF ".deps/report.Tpo" -c -o report.o report.c; \
	then mv -f ".deps/report.Tpo" ".deps/report.Po"; else rm -f ".deps/report.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -Wno-pointer-sign -MT getopt.o -MD -MP -MF ".deps/getopt.Tpo" -c -o getopt.o getopt.c; \
	then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; else rm -f ".deps/getopt.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -Wno-pointer-sign -MT getopt1.o -MD -MP -MF ".deps/getopt1.Tpo" -c -o getopt1.o getopt1.c; \
	then mv -f ".deps/getopt1.Tpo" ".deps/getopt1.Po"; else rm -f ".deps/getopt1.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -Wno-pointer-sign -MT select.o -MD -MP -MF ".deps/select.Tpo" -c -o select.o select.c; \
	then mv -f ".deps/select.Tpo" ".deps/select.Po"; else rm -f ".deps/select.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -Wno-pointer-sign -MT gtk.o -MD -MP -MF ".deps/gtk.Tpo" -c -o gtk.o gtk.c; \
	then mv -f ".deps/gtk.Tpo" ".deps/gtk.Po"; else rm -f ".deps/gtk.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -Wno-pointer-sign -MT curses.o -MD -MP -MF ".deps/curses.Tpo" -c -o curses.o curses.c; \
	then mv -f ".deps/curses.Tpo" ".deps/curses.Po"; else rm -f ".deps/curses.Tpo"; exit 1; fi
dns.c: In function 'dorequest':
dns.c:885: warning: dereferencing pointer 'hp' does break strict-aliasing rules
dns.c:884: note: initialized from here
gtk.c: In function 'float_formatter':
gtk.c:247: warning: cast from pointer to integer of different size
gtk.c: In function 'percent_formatter':
gtk.c:260: warning: cast from pointer to integer of different size
gcc  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -Wno-pointer-sign   -o mtr gtk.o curses.o mtr.o net.o dns.o raw.o split.o display.o report.o getopt.o getopt1.o select.o  -lresolv -lm -lncurses -ltermcap  -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -lm
make[2]: Leaving directory `/builddir/build/BUILD/mtr-0.75'
make[1]: Leaving directory `/builddir/build/BUILD/mtr-0.75'
+ mv mtr xmtr
+ make distclean
Making distclean in img
make[1]: Entering directory `/builddir/build/BUILD/mtr-0.75/img'
test -z "" || rm -f 
rm -f Makefile
make[1]: Leaving directory `/builddir/build/BUILD/mtr-0.75/img'
Making distclean in .
make[1]: Entering directory `/builddir/build/BUILD/mtr-0.75'
test -z "mtr" || rm -f mtr
rm -f *.o
rm -f *.tab.c
test -z "" || rm -f 
test -z "*~" || rm -f *~
rm -f config.h stamp-h1
(sleep 3; cp Makefile.dist Makefile) &
rm -f *.orig
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
make[1]: Leaving directory `/builddir/build/BUILD/mtr-0.75'
rm -f config.status config.cache config.log configure.lineno configure.status.lineno
rm -rf ./.deps
rm -f Makefile
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --without-gtk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unsigned char... yes
checking size of unsigned char... 1
checking for unsigned short... yes
checking size of unsigned short... 2
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned long... yes
checking size of unsigned long... 8
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking ncurses/curses.h usability... yes
checking ncurses/curses.h presence... yes
checking for ncurses/curses.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking cursesX.h usability... no
checking cursesX.h presence... no
checking for cursesX.h... no
checking for sys/types.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/xti.h usability... no
checking sys/xti.h presence... no
checking for sys/xti.h... no
checking for tgetent in -ltermcap... yes
checking for initscr... no
checking for initscr in -lncurses... yes
checking for attron... yes
checking for fcntl... yes
checking for floor in -lm... yes
checking for socket... yes
checking for gethostbyname... yes
checking for seteuid... yes
checking for res_mkquery... no
checking for res_mkquery in -lbind... no
checking for res_mkquery in -lresolv... no
checking for __res_mkquery in -lresolv... yes
checking for herror... yes
checking for strerror... yes
checking for getaddrinfo... yes
checking whether errno is declared... yes
checking for socklen_t... yes
checking for struct in_addr... yes
checking for C flags to get more warnings... -Wall -Wno-pointer-sign
configure: creating ./config.status
config.status: creating Makefile
config.status: creating img/Makefile
config.status: creating config.h
config.status: executing depfiles commands
+ make -j4
make  all-recursive
make[1]: Entering directory `/builddir/build/BUILD/mtr-0.75'
Making all in img
make[2]: Entering directory `/builddir/build/BUILD/mtr-0.75/img'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/builddir/build/BUILD/mtr-0.75/img'
make[2]: Entering directory `/builddir/build/BUILD/mtr-0.75'
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wno-pointer-sign -MT mtr.o -MD -MP -MF ".deps/mtr.Tpo" -c -o mtr.o mtr.c; \
	then mv -f ".deps/mtr.Tpo" ".deps/mtr.Po"; else rm -f ".deps/mtr.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wno-pointer-sign -MT net.o -MD -MP -MF ".deps/net.Tpo" -c -o net.o net.c; \
	then mv -f ".deps/net.Tpo" ".deps/net.Po"; else rm -f ".deps/net.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wno-pointer-sign -MT dns.o -MD -MP -MF ".deps/dns.Tpo" -c -o dns.o dns.c; \
	then mv -f ".deps/dns.Tpo" ".deps/dns.Po"; else rm -f ".deps/dns.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wno-pointer-sign -MT raw.o -MD -MP -MF ".deps/raw.Tpo" -c -o raw.o raw.c; \
	then mv -f ".deps/raw.Tpo" ".deps/raw.Po"; else rm -f ".deps/raw.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wno-pointer-sign -MT split.o -MD -MP -MF ".deps/split.Tpo" -c -o split.o split.c; \
	then mv -f ".deps/split.Tpo" ".deps/split.Po"; else rm -f ".deps/split.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wno-pointer-sign -MT display.o -MD -MP -MF ".deps/display.Tpo" -c -o display.o display.c; \
	then mv -f ".deps/display.Tpo" ".deps/display.Po"; else rm -f ".deps/display.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wno-pointer-sign -MT report.o -MD -MP -MF ".deps/report.Tpo" -c -o report.o report.c; \
	then mv -f ".deps/report.Tpo" ".deps/report.Po"; else rm -f ".deps/report.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wno-pointer-sign -MT getopt.o -MD -MP -MF ".deps/getopt.Tpo" -c -o getopt.o getopt.c; \
	then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; else rm -f ".deps/getopt.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wno-pointer-sign -MT getopt1.o -MD -MP -MF ".deps/getopt1.Tpo" -c -o getopt1.o getopt1.c; \
	then mv -f ".deps/getopt1.Tpo" ".deps/getopt1.Po"; else rm -f ".deps/getopt1.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wno-pointer-sign -MT select.o -MD -MP -MF ".deps/select.Tpo" -c -o select.o select.c; \
	then mv -f ".deps/select.Tpo" ".deps/select.Po"; else rm -f ".deps/select.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wno-pointer-sign -MT curses.o -MD -MP -MF ".deps/curses.Tpo" -c -o curses.o curses.c; \
	then mv -f ".deps/curses.Tpo" ".deps/curses.Po"; else rm -f ".deps/curses.Tpo"; exit 1; fi
dns.c: In function 'dorequest':
dns.c:885: warning: dereferencing pointer 'hp' does break strict-aliasing rules
dns.c:884: note: initialized from here
gcc  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wno-pointer-sign   -o mtr  curses.o mtr.o net.o dns.o raw.o split.o display.o report.o getopt.o getopt1.o select.o  -lresolv -lm -lncurses -ltermcap 
make[2]: Leaving directory `/builddir/build/BUILD/mtr-0.75'
make[1]: Leaving directory `/builddir/build/BUILD/mtr-0.75'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.8atuER
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/mtr-0.75-5.el6.anvil.x86_64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/mtr-0.75-5.el6.anvil.x86_64
++ dirname /builddir/build/BUILDROOT/mtr-0.75-5.el6.anvil.x86_64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/mtr-0.75-5.el6.anvil.x86_64
+ cd mtr-0.75
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /builddir/build/BUILDROOT/mtr-0.75-5.el6.anvil.x86_64
+ mkdir -p /builddir/build/BUILDROOT/mtr-0.75-5.el6.anvil.x86_64//usr/bin
+ mkdir -p /builddir/build/BUILDROOT/mtr-0.75-5.el6.anvil.x86_64//usr/sbin
+ mkdir -p /builddir/build/BUILDROOT/mtr-0.75-5.el6.anvil.x86_64//usr/share/pixmaps
+ mkdir -p /builddir/build/BUILDROOT/mtr-0.75-5.el6.anvil.x86_64//usr/share/man/man8
+ install -m 0755 mtr /builddir/build/BUILDROOT/mtr-0.75-5.el6.anvil.x86_64//usr/sbin/mtr
+ make DESTDIR=/builddir/build/BUILDROOT/mtr-0.75-5.el6.anvil.x86_64 install
make: *** No rule to make target `install'.  Stop.


RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.8atuER (%install)
    Bad exit status from /var/tmp/rpm-tmp.8atuER (%install)
ERROR: Exception(/home/digimer/rpmbuild/SRPMS/mtr-0.75-5.el6.anvil.src.rpm) Config(epel-6-x86_64) 5 minutes 54 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-6-x86_64/result
ERROR: Command failed. See logs for output.
 # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps  /builddir/build/SPECS/mtr.spec 
====


Actual results:

Build fails


Expected results:

Build succeeds


Additional info:

Let me know if you need anything else.

Comment 1 Madison Kelly 2016-03-08 19:56:44 UTC
According to James in this post:

https://lists.centos.org/pipermail/centos/2016-March/158173.html

(snippet)

====
The generated makefile has a '(sleep 3; cp Makefile.dist Makefile)  &' in
it for the distclean target.

The Makefile.dist is the bare empty one.

 Note how this backgrounds ? There is no wait after this ...

So three seconds after the make distclean target is hit *bam* the full
Makefile with the install target gets overwritten by the bare one.
====

This is a race condition in the mtr .spec file. Reassigning.

Comment 3 Madison Kelly 2016-03-08 20:34:11 UTC
As an experiment, I changed to '(sleep 30; cp Makefile.dist Makefile)  &' and rebuilt successfully. My build machine is on pretty slow storage (6x 3TB 7200rpm in software RAID level 6 hosting multiple VMs), so I think James hit the nail on the head here.

Comment 4 Petr Sklenar 2016-09-30 09:23:55 UTC
qa: there is no capacity for testing this bug on rhel69


Note You need to log in before you can comment on or make changes to this bug.