You are not logged in.

#1 2013-09-07 21:16:32

cactaur
Member
Registered: 2012-11-17
Posts: 7

[SOLVED] multipath-tools build fails because file is not a directory

Hi all,

I'm trying to build the multipath-tools-git AUR package (I'm playing around with virtualization, and need the kpartx tool). I tried building, and got this output:
(NOTE: /home/gregory/AUR PACKAGES is symlinked to /mnt/STORAGE/AUR PACKAGES, which shows up in this build. I tried building without using the symlink, and it didn't change anything.)

[gregory@whitcomb multipath-tools-git]$ makepkg -s
==> Making package: multipath-tools-git 1295.81895af-1 (Sat Sep  7 16:50:52 EDT 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating multipath-tools-git git repo...
Fetching origin
==> Validating source files with md5sums...
    multipath-tools-git ... Skipped
==> Extracting sources...
  -> Creating working copy of  git repo...
Cloning into 'multipath-tools-git'...
done.
==> Starting pkgver()...
==> Starting prepare()...
==> Removing existing pkg/ directory...
==> Starting build()...
make[1]: Entering directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/libmultipath'
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o memory.o memory.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o parser.o parser.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o vector.o vector.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o devmapper.o devmapper.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o callout.o callout.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o hwtable.o hwtable.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o blacklist.o blacklist.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o util.o util.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o dmparser.o dmparser.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o config.o config.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o structs.o structs.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o discovery.o discovery.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o propsel.o propsel.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o dict.o dict.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o pgpolicies.o pgpolicies.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o debug.o debug.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o regex.o regex.c
regex.c: In function ‘re_match_2’:
regex.c:3297:17: warning: variable ‘sdummy’ set but not used [-Wunused-but-set-variable]
     const char *sdummy;
                 ^
regex.c:3296:20: warning: variable ‘pdummy’ set but not used [-Wunused-but-set-variable]
     unsigned char *pdummy;
                    ^
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o defaults.o defaults.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o uevent.o uevent.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o switchgroup.o switchgroup.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o uxsock.o uxsock.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o print.o print.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o alias.o alias.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o log_pthread.o log_pthread.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o log.o log.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o configure.o configure.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o structs_vec.o structs_vec.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o sysfs.o sysfs.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o prio.o prio.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o checkers.o checkers.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o lock.o lock.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o waiter.o waiter.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o file.o file.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o wwids.o wwids.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -c -o prioritizers/alua_rtpg.o prioritizers/alua_rtpg.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -Wl,-soname=libmultipath.so.0 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -o libmultipath.so.0 memory.o parser.o vector.o devmapper.o callout.o hwtable.o blacklist.o util.o dmparser.o config.o structs.o discovery.o propsel.o dict.o pgpolicies.o debug.o regex.o defaults.o uevent.o switchgroup.o uxsock.o print.o alias.o log_pthread.o log.o configure.o structs_vec.o sysfs.o prio.o checkers.o lock.o waiter.o file.o wwids.o prioritizers/alua_rtpg.o -lpthread -ldl -ldevmapper -ludev
ln -sf libmultipath.so.0 libmultipath.so
make[1]: Leaving directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/libmultipath'
make[1]: Entering directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/libmultipath/prioritizers'
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o random.o random.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libpriorandom.so random.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o const.o const.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libprioconst.so const.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o hp_sw.o hp_sw.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libpriohp_sw.so hp_sw.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o emc.o emc.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libprioemc.so emc.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o rdac.o rdac.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libpriordac.so rdac.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o alua.o alua.c
alua.c: In function ‘get_alua_info’:
alua.c:58:6: warning: variable ‘aas’ set but not used [-Wunused-but-set-variable]
  int aas;
      ^
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libprioalua.so alua.o alua_rtpg.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o ontap.o ontap.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libprioontap.so ontap.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o datacore.o datacore.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libpriodatacore.so datacore.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o hds.o hds.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libpriohds.so hds.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o weightedpath.o weightedpath.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libprioweightedpath.so weightedpath.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o iet.o iet.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libprioiet.so iet.o
rm random.o weightedpath.o ontap.o hp_sw.o hds.o rdac.o const.o datacore.o emc.o iet.o
make[1]: Leaving directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/libmultipath/prioritizers'
make[1]: Entering directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/libmultipath/checkers'
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o libsg.o libsg.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o cciss_tur.o cciss_tur.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libcheckcciss_tur.so libsg.o cciss_tur.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o readsector0.o readsector0.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libcheckreadsector0.so libsg.o readsector0.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o tur.o tur.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libchecktur.so libsg.o tur.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o directio.o directio.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libcheckdirectio.so libsg.o directio.o -laio
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o emc_clariion.o emc_clariion.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libcheckemc_clariion.so libsg.o emc_clariion.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o hp_sw.o hp_sw.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libcheckhp_sw.so libsg.o hp_sw.o
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I.. -c -o rdac.o rdac.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -o libcheckrdac.so libsg.o rdac.o
rm tur.o hp_sw.o rdac.o readsector0.o cciss_tur.o emc_clariion.o
make[1]: Leaving directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/libmultipath/checkers'
make[1]: Entering directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/libmpathpersist'
cc -Wall -fPIC -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I../libmultipath -I../libmpathpersist  *.c 
cc  -shared -lpthread -ldevmapper -ldl -L../libmultipath -lmultipath -Wl,-soname=libmpathpersist.so.0 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I../libmultipath -I../libmpathpersist  -o libmpathpersist.so.0 mpath_persist.o mpath_updatepr.o mpath_pr_ioctl.o 
ln -s libmpathpersist.so.0 libmpathpersist.so
/usr/bin/gzip -9 -c mpath_persistent_reserve_in.3 > mpath_persistent_reserve_in.3.gz
/usr/bin/gzip -9 -c mpath_persistent_reserve_out.3 > mpath_persistent_reserve_out.3.gz
make[1]: Leaving directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/libmpathpersist'
make[1]: Entering directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/multipath'
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I../libmultipath -c -o main.o main.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I../libmultipath main.o -o multipath -Wl,-O1,--sort-common,--as-needed,-z,relro -lpthread -ldevmapper -ldl -L../libmultipath -lmultipath -ludev
/usr/bin/gzip -9 -c multipath.8 > multipath.8.gz
/usr/bin/gzip -9 -c multipath.conf.5 > multipath.conf.5.gz
make[1]: Leaving directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/multipath'
make[1]: Entering directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/multipathd'
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I../libmultipath -I../libmpathpersist -c -o main.o main.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I../libmultipath -I../libmpathpersist -c -o pidfile.o pidfile.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I../libmultipath -I../libmpathpersist -c -o uxlsnr.o uxlsnr.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I../libmultipath -I../libmpathpersist -c -o uxclnt.o uxclnt.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I../libmultipath -I../libmpathpersist -c -o cli.o cli.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I../libmultipath -I../libmpathpersist -c -o cli_handlers.o cli_handlers.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I../libmultipath -I../libmpathpersist main.o pidfile.o uxlsnr.o uxclnt.o cli.o cli_handlers.o -Wl,-O1,--sort-common,--as-needed,-z,relro -lpthread -ldevmapper -lreadline -ludev -ldl -L../libmultipath -lmultipath -L../libmpathpersist -lmpathpersist -o multipathd
/usr/bin/gzip -9 -c multipathd.8 > multipathd.8.gz
make[1]: Leaving directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/multipathd'
make[1]: Entering directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/mpathpersist'
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I../libmultipath -I../libmpathpersist  -c -o main.o main.c
cc -g main.o  -o mpathpersist -Wl,-O1,--sort-common,--as-needed,-z,relro -lpthread -ldevmapper -L../libmpathpersist -lmpathpersist -L../libmultipath -lmultipath -ludev -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I../libmultipath -I../libmpathpersist 
/usr/bin/gzip -9 -c mpathpersist.8 > mpathpersist.8.gz
make[1]: Leaving directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/mpathpersist'
make[1]: Entering directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/kpartx'
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o bsd.o bsd.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o dos.o dos.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o kpartx.o kpartx.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o solaris.o solaris.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o unixware.o unixware.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o dasd.o dasd.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o sun.o sun.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o gpt.o gpt.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o mac.o mac.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o ps3.o ps3.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o crc32.o crc32.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o lopart.o lopart.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o xstrncpy.o xstrncpy.c
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"usr/lib64\" -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -c -o devmapper.o devmapper.c
cc bsd.o dos.o kpartx.o solaris.o unixware.o dasd.o sun.o gpt.o mac.o ps3.o crc32.o lopart.o xstrncpy.o devmapper.o -o kpartx -ldevmapper
/usr/bin/gzip -9 -c kpartx.8 > kpartx.8.gz
make[1]: Leaving directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/kpartx'
==> Entering fakeroot environment...
==> Starting package()...
make[1]: Entering directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/libmultipath'
install -d /home/gregory/AUR packages/multipath-tools-git/pkg/multipath-tools-git//usr/lib
install -m 755 libmultipath.so.0 /home/gregory/AUR packages/multipath-tools-git/pkg/multipath-tools-git//usr/lib/libmultipath.so.0
install: target ‘packages/multipath-tools-git/pkg/multipath-tools-git//usr/lib/libmultipath.so.0’ is not a directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/libmultipath'
make: *** [recurse_install] Error 2
==> ERROR: A failure occurred in package().
    Aborting...
[gregory@whitcomb multipath-tools-git]$ 

I noticed there was a typo from the line:

install: target ‘packages/multipath-tools-git/pkg/multipath-tools-git//usr/lib/libmultipath.so.0’ is not a directory

with the duplicated slash, so I edited the package() section of the PKGBUILD to remove the duplicated slash

  make LIB="/usr/lib" DESTDIR="${pkgdir}" install

to

   make LIB="usr/lib" DESTDIR="${pkgdir}" install

However, rebuilding the package caused the same error to occur (only relevant part shown)

==> Starting package()...
make[1]: Entering directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/libmultipath'
install -d /home/gregory/AUR packages/multipath-tools-git/pkg/multipath-tools-git/usr/lib
install -m 755 libmultipath.so.0 /home/gregory/AUR packages/multipath-tools-git/pkg/multipath-tools-git/usr/lib/libmultipath.so.0
install: target ‘packages/multipath-tools-git/pkg/multipath-tools-git/usr/lib/libmultipath.so.0’ is not a directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/mnt/STORAGE/AUR packages/multipath-tools-git/src/multipath-tools-git/libmultipath'
make: *** [recurse_install] Error 2
==> ERROR: A failure occurred in package().
    Aborting...

So that couldn't have been the problem. There doesn't seem to be any indication on the AUR page that someone else ran into this problem. I also checked the upstream site as well as the mailing lists, and didn't see anything resembling my problem.

Just to make sure that I hadn't downloaded some bad build from git, I also tried installing the multipath-tools package from the AUR, since that should have at least worked for the packager. However, I got the exact same (albeit sooner cause it didn't have to download git sources):

==> Starting package()...
make[1]: Entering directory `/mnt/STORAGE/AUR packages/multipath-tools/src/libmultipath'
install -d /mnt/STORAGE/AUR packages/multipath-tools/pkg/multipath-tools/usr/lib
install -m 755 libmultipath.so.0 /mnt/STORAGE/AUR packages/multipath-tools/pkg/multipath-tools/usr/lib/libmultipath.so.0
install: target ‘packages/multipath-tools/pkg/multipath-tools/usr/lib/libmultipath.so.0’ is not a directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/mnt/STORAGE/AUR packages/multipath-tools/src/libmultipath'
make: *** [recurse_install] Error 2
==> ERROR: A failure occurred in package().
    Aborting...

I'm guessing there's probably some configuration issue with my machine causing this problem, but I have no idea where it would come from. If anybody else has any other ideas on how to proceed, I'd be really appreciative. And if any more information is needed, let me know! Thanks!

Last edited by cactaur (2013-09-08 05:23:36)

Offline

#2 2013-09-08 05:23:11

cactaur
Member
Registered: 2012-11-17
Posts: 7

Re: [SOLVED] multipath-tools build fails because file is not a directory

Of course, soon after I post this, I stumble upon the solution. It turns out that having a path with a space in it can cause certain packages to bug out while building. I changed the "AUR Packages" folder to "AUR-packages", and then it built successfully. Guess that's something to look out for.

Offline

Board footer

Powered by FluxBB