'gmake install' fails on FreeBSD
Status: Beta
Brought to you by:
seranian
Originally reported by Michał Górny in https://bugs.gentoo.org/666649. install fails on current git as well:
$ gmake $ mkdir -p __i__ $ # gmake install DESTDIR=$(pwd)/__i__ installing in /root/perfmon2-libpfm4/__i__ gmake[1]: Entering directory '/root/perfmon2-libpfm4/lib' building: libpfm.a mkdir -p /root/perfmon2-libpfm4/__i__/usr/local/lib install -m 644 libpfm.a /root/perfmon2-libpfm4/__i__/usr/local/lib install /root/perfmon2-libpfm4/__i__/usr/local/lib usage: install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] [-B suffix] [-l linkflags] [-N dbdir] file1 file2 install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] [-B suffix] [-l linkflags] [-N dbdir] file1 ... fileN directory install -dU [-vU] [-g group] [-m mode] [-N dbdir] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] directory ... gmake[1]: *** [Makefile:398: install] Error 64 gmake[1]: Leaving directory '/root/perfmon2-libpfm4/lib' gmake: *** [Makefile:70: install] Error 2
Note: install lacks first argument. The relevant makefile snippet is:
# lib/Makefile ifeq ($(SYS),Linux) ... SLIBPFM=libpfm.so.$(VERSION).$(REVISION).$(AGE) ... endif ... install: ... $(INSTALL) $(SLIBPFM) $(DESTDIR)$(LIBDIR)
The system is FreeBSD:
$ uname -s FreeBSD
Thanks!