交叉编译:alsa-utils编译报错:/usr/bin/install: cannot create regular file '/lib/systemd/system/alsa-state.service': Permission denied
版本:alsa-utils-1.1.7
[fly@752fac4b02e9 alsa-utils-1.1.7]$ ./configure --prefix=$BLUEALSA_INSTALL_PATH/alsa-utils --host=arm-linux --with-curses=ncurses CC="arm-linux-gnueabihf-gcc -lasound -I$BLUEALSA_INSTALL_PATH/alsa/include -L$BLUEALSA_INSTALL_PATH/alsa/lib" --disable-xmlto --disable-alsamixer
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for style of include used by make... GNU
checking for arm-linux-gcc... arm-linux-gnueabihf-gcc -lasound -I/customer/bluetooth/bluealsa_build/alsa/include -L/customer/bluetooth/bluealsa_build/alsa/lib
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gnueabihf-gcc -lasound -I/customer/bluetooth/bluealsa_build/alsa/include -L/customer/bluetooth/bluealsa_build/alsa/lib accepts -g... yes
checking for arm-linux-gnueabihf-gcc -lasound -I/customer/bluetooth/bluealsa_build/alsa/include -L/customer/bluetooth/bluealsa_build/alsa/lib option to accept ISO C89... none needed
checking dependency style of arm-linux-gnueabihf-gcc -lasound -I/customer/bluetooth/bluealsa_build/alsa/include -L/customer/bluetooth/bluealsa_build/alsa/lib... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for ld used by GCC... /usr/local/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/bin/ld
checking if the linker (/usr/local/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking how to run the C preprocessor... arm-linux-gnueabihf-gcc -lasound -I/customer/bluetooth/bluealsa_build/alsa/include -L/customer/bluetooth/bluealsa_build/alsa/lib -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for arm-linux-gcc... (cached) arm-linux-gnueabihf-gcc -lasound -I/customer/bluetooth/bluealsa_build/alsa/include -L/customer/bluetooth/bluealsa_build/alsa/lib
checking whether we are using the GNU C compiler... (cached) yes
checking whether arm-linux-gnueabihf-gcc -lasound -I/customer/bluetooth/bluealsa_build/alsa/include -L/customer/bluetooth/bluealsa_build/alsa/lib accepts -g... (cached) yes
checking for arm-linux-gnueabihf-gcc -lasound -I/customer/bluetooth/bluealsa_build/alsa/include -L/customer/bluetooth/bluealsa_build/alsa/lib option to accept ISO C89... (cached) none needed
checking dependency style of arm-linux-gnueabihf-gcc -lasound -I/customer/bluetooth/bluealsa_build/alsa/include -L/customer/bluetooth/bluealsa_build/alsa/lib... (cached) gcc3
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for arm-linux-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.9.0... yes
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS... -lasound -lm -ldl -lpthread
checking for libasound headers version >= 1.0.27... found.
checking for snd_ctl_open in -lasound... yes
checking for snd_ctl_elem_add_enumerated... yes
checking for alsa/pcm.h... yes
checking for alsa/mixer.h... yes
checking for alsa/rawmidi.h... no
checking for alsa/seq.h... no
checking for alsa/use-case.h... no
checking for alsa/topology.h... yes
checking for samplerate.h... no
checking for snd_seq_client_info_get_card in -lasound... no
checking for snd_seq_client_info_get_pid in -lasound... no
checking for fftwf_malloc in -lfftw3f... no
checking for sqrtf in -lm... yes
checking for pthread_create in -lpthread... yes
checking for librt... checking for clock_gettime in -lrt... yes
checking for rst2man... no
Package udev was not found in the pkg-config search path.
Perhaps you should add the directory containing `udev.pc'
to the PKG_CONFIG_PATH environment variable
No package 'udev' found
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether arm-linux-gnueabihf-gcc -lasound -I/customer/bluetooth/bluealsa_build/alsa/include -L/customer/bluetooth/bluealsa_build/alsa/lib needs -traditional... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for SYSTEMD... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating alsactl/Makefile
config.status: creating alsactl/init/Makefile
config.status: creating alsamixer/Makefile
config.status: creating amidi/Makefile
config.status: creating amixer/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating alsaconf/alsaconf
config.status: creating alsaconf/Makefile
config.status: creating alsaconf/po/Makefile
config.status: WARNING: 'alsaconf/po/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating alsaucm/Makefile
config.status: creating topology/Makefile
config.status: creating bat/Makefile
config.status: creating bat/tests/Makefile
config.status: creating bat/tests/asound_state/Makefile
config.status: creating aplay/Makefile
config.status: creating include/Makefile
config.status: creating iecset/Makefile
config.status: creating utils/Makefile
config.status: creating utils/alsa-utils.spec
config.status: creating seq/Makefile
config.status: creating seq/aconnect/Makefile
config.status: creating seq/aplaymidi/Makefile
config.status: creating seq/aseqdump/Makefile
config.status: creating seq/aseqnet/Makefile
config.status: creating speaker-test/Makefile
config.status: creating speaker-test/samples/Makefile
config.status: creating alsaloop/Makefile
config.status: creating alsa-info/Makefile
config.status: creating include/aconfig.h
config.status: include/aconfig.h is unchanged
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing depfiles commands
[fly@752fac4b02e9 alsa-utils-1.1.7]$ env
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
GCC_GLIBC=toolchain/mipsel-24kec-linux-glibc-4.9-2017.08.tar.bz2
LESSCLOSE=/usr/bin/lesspipe %s %s
LANG=en_US.UTF-8
HOSTNAME=752fac4b02e9
OLDPWD=/home/fly/project/mstar/bt_lib
GCC_ARM_MSTAR=toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf.tar.xz
BLUEALSA_INSTALL_PATH=/customer/bluetooth/bluealsa_build
CC=arm-linux-gnueabihf-gcc
GCC_UCLIBC=toolchain/mipsel-24kec-linux-uclibc-4.9-2017.07.tar.bz2
PWD=/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7
HOME=/home/fly
RANLIB=arm-linux-gnueabihf-ranlib
AR=arm-linux-gnueabihf-ar
CXX=arm-linux-gnueabihf-g++
MIPS_ELF=toolchain/mipsel-sde-elf-4.4.3.tar.bz2
SHELL=/bin/bash
TERM=xterm
SHLVL=1
INSTALL_PATH=/customer/bluetooth/bluez_build
CPPFLAGS=-P
PATH=/home/fly/tools:/home/fly/.local/bin:/usr/local/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linuxgnueabihf/bin/:/usr/local/arm/arm-2009q3/bin:/opt/hisi-linux/x86-arm/arm-himix100-linux/bin
PS1=\[\033[0;32m\][\u@\h \W]\$ \[\033[0m\]
PKG_CONFIG_PATH=/customer/bluetooth/bluealsa_build/alsa/lib/pkgconfig/:/customer/bluetooth/bluez_build/bluez/lib/pkgconfig/:/customer/bluetooth/bluez_build/glib/lib/pkgconfig/:/customer/bluetooth/bluez_build/libical/lib/pkgconfig/:/customer/bluetooth/bluez_build/dbus/lib/pkgconfig/:
LESSOPEN=| /usr/bin/lesspipe %s
_=/usr/bin/env
[fly@752fac4b02e9 alsa-utils-1.1.7]$
[fly@752fac4b02e9 alsa-utils-1.1.7]$
[fly@752fac4b02e9 alsa-utils-1.1.7]$ make
Making all in include
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/include'
make all-am
make[2]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/include'
make[2]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/include'
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/include'
Making all in alsactl
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl'
Making all in init
make[2]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl/init'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl/init'
make[2]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl'
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl'
Making all in utils
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/utils'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/utils'
Making all in m4
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/m4'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/m4'
Making all in po
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/po'
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/po'
Making all in alsa-info
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsa-info'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsa-info'
Making all in amixer
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/amixer'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/amixer'
Making all in alsaconf
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsaconf'
Making all in po
make[2]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsaconf/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsaconf/po'
make[2]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsaconf'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsaconf'
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsaconf'
Making all in aplay
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/aplay'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/aplay'
Making all in iecset
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/iecset'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/iecset'
Making all in speaker-test
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/speaker-test'
Making all in samples
make[2]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/speaker-test/samples'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/speaker-test/samples'
make[2]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/speaker-test'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/speaker-test'
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/speaker-test'
Making all in alsaloop
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsaloop'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsaloop'
Making all in bat
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/bat'
Making all in tests
make[2]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/bat/tests'
Making all in asound_state
make[3]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/bat/tests/asound_state'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/bat/tests/asound_state'
make[3]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/bat/tests'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/bat/tests'
make[2]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/bat/tests'
make[2]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/bat'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/bat'
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/bat'
Making all in topology
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/topology'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/topology'
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7'
[fly@752fac4b02e9 alsa-utils-1.1.7]$ make install
Making install in include
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/include'
make[2]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/include'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/include'
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/include'
Making install in alsactl
make[1]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl'
Making install in init
make[2]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl/init'
make[3]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl/init'
make[3]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p '/customer/bluetooth/bluealsa_build/alsa-utils/share/alsa/init'
/usr/bin/install -c -m 644 00main default help info test hda ca0106 '/customer/bluetooth/bluealsa_build/alsa-utils/share/alsa/init'
make[3]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl/init'
make[2]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl/init'
make[2]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl'
make[3]: Entering directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl'
/bin/mkdir -p '/customer/bluetooth/bluealsa_build/alsa-utils/sbin'
/usr/bin/install -c alsactl '/customer/bluetooth/bluealsa_build/alsa-utils/sbin'
/bin/mkdir -p '/customer/bluetooth/bluealsa_build/alsa-utils/share/man/man1'
/usr/bin/install -c -m 644 alsactl.1 '/customer/bluetooth/bluealsa_build/alsa-utils/share/man/man1'
/bin/mkdir -p '/customer/bluetooth/bluealsa_build/alsa-utils/share/man/man7'
/bin/mkdir -p '/lib/systemd/system'
/usr/bin/install -c -m 644 alsa-state.service alsa-restore.service '/lib/systemd/system'
/usr/bin/install: cannot create regular file '/lib/systemd/system/alsa-state.service': Permission denied
/usr/bin/install: cannot create regular file '/lib/systemd/system/alsa-restore.service': Permission denied
Makefile:646: recipe for target 'install-systemdsystemunitDATA' failed
make[3]: *** [install-systemdsystemunitDATA] Error 1
make[3]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl'
Makefile:896: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl'
Makefile:695: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/fly/project/mstar/bt_lib/alsa-utils-1.1.7/alsactl'
Makefile:355: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
