Bug 10331 - kmsxx, host installation fails with BR2_SHARED_STATIC_LIBS=y
Summary: kmsxx, host installation fails with BR2_SHARED_STATIC_LIBS=y
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2017.08
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-25 13:57 UTC by Frederic MATHIEU
Modified: 2018-01-10 21:21 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic MATHIEU 2017-09-25 13:57:50 UTC
Hi

kmsxx makefile try to install host static library, but no exists.

>>> kmsxx cb0786049f960f2bd383617151b01318e02e9ff9 Installing to staging directory
/usr/bin/install -D -m 0755 /home/dev01/data/projects/buildroot-2017.08_X86_64/output/build/kmsxx-cb0786049f960f2bd383617151b01318e02e9ff9/lib/libkms++.so /home/dev01/data/toolchain/2017.08_X86_64/host/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libkms++.so
/usr/bin/install -D -m 0755 /home/dev01/data/projects/buildroot-2017.08_X86_64/output/build/kmsxx-cb0786049f960f2bd383617151b01318e02e9ff9/lib/libkms++.a /home/dev01/data/toolchain/2017.08_X86_64/host/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libkms++.a
/usr/bin/install: cannot stat '/home/dev01/data/projects/buildroot-2017.08_X86_64/output/build/kmsxx-cb0786049f960f2bd383617151b01318e02e9ff9/lib/libkms++.a': No such file or directory
package/pkg-generic.mk:266: recipe for target '/home/dev01/data/projects/buildroot-2017.08_X86_64/output/build/kmsxx-cb0786049f960f2bd383617151b01318e02e9ff9/.stamp_staging_installed' failed
make[1]: *** [/home/dev01/data/projects/buildroot-2017.08_X86_64/output/build/kmsxx-cb0786049f960f2bd383617151b01318e02e9ff9/.stamp_staging_installed] Error 1
Makefile:79: recipe for target '_all' failed
make: *** [_all] Error 2



Installation works if i comment these lines in makefile kmsxx.mk :

define KMSXX_INSTALL_STAGING_CMDS
	$(foreach l,$(KMSXX_LIBS),\
		$(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),
			$(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
				$(STAGING_DIR)/usr/lib/lib$(l).so)
#		$(if $(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),
#			$(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).a \
#				$(STAGING_DIR)/usr/lib/lib$(l).a)
		mkdir -p $(STAGING_DIR)/usr/include/$(l)
		cp -dpfr $(@D)/$(l)/inc/$(l)/* $(STAGING_DIR)/usr/include/$(l)/
	)
endef


founds on version 2017.08, 2017.05.x

regards
Frederic MATHIEU
Comment 1 Thomas Petazzoni 2018-01-10 21:21:39 UTC
Thanks for the bug report! Fixed by https://git.buildroot.org/buildroot/commit/?id=28d5ca9c96f5144e86fac7ec6485fa5634cd6e97.