Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build shairport-sync #3914

Closed
lvjinqiao opened this issue Mar 8, 2020 · 13 comments
Closed

Failed to build shairport-sync #3914

lvjinqiao opened this issue Mar 8, 2020 · 13 comments

Comments

@lvjinqiao
Copy link

make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/spksrc/spksrc/cross/busybox'
make[2]: Entering directory '/spksrc/spksrc/cross/shairport-sync'
===> Processing dependencies of shairport-sync
make[3]: Entering directory '/spksrc/spksrc/cross/libtool'
make[3]: Nothing to be done for 'default'.
make[3]: Leaving directory '/spksrc/spksrc/cross/libtool'
make[3]: Entering directory '/spksrc/spksrc/cross/libconfig'
make[3]: Nothing to be done for 'default'.
make[3]: Leaving directory '/spksrc/spksrc/cross/libconfig'
make[3]: Entering directory '/spksrc/spksrc/cross/popt'
===> Downloading files for popt
wget http://rpm5.org/files/popt/popt-1.16.tar.gz
wget: unable to resolve host address ‘rpm5.org’
make[3]: *** [../../mk/spksrc.download.mk:57: download_target] Error 4
make[3]: Leaving directory '/spksrc/spksrc/cross/popt'
make[2]: *** [../../mk/spksrc.depend.mk:44: depend_target] Error 2
make[2]: Leaving directory '/spksrc/spksrc/cross/shairport-sync'
make[1]: *** [../../mk/spksrc.depend.mk:44: depend_target] Error 2
make[1]: Leaving directory '/spksrc/spksrc/spk/shairport-sync'
make: [../../mk/spksrc.spk.mk:463: arch-armada370] Error 2 (ignored)

@hgy59
Copy link
Contributor

hgy59 commented Mar 8, 2020

welcome @lvjinqiao
a lot of contributors here are not native english speaking, so there might always be some communication issues, but let's try...

from your logs, I read that you want to build the shairport-sync package for armada370 architecture.

what I cannot see is, whether you are using the docker image or a debian environment for the build.

you have two options (see readme: Setup Development Environment)

  1. (the prefered one) use the dockerimage
  2. use a pysical or virtual debian linux and install all the required dependencies

Instructions to build shairport.sync for armada370 6.1 with the docker image:
Prerequisite is a linux system with docker installed.

# navigate into a working folder
cd ~
mkdir syno
cd syno

# clone the spksrc repository
git clone https://github.com/SynoCommunity/spksrc.git spksrc

# run the spksrc environment as a docker container
docker run -it -v $(pwd)/spksrc:/spksrc synocommunity/spksrc /bin/bash

# verify the volume mount
# output of pwd should be /spksrc
pwd
# ls -la sould list all files and folder of the root folders in the repository (files: Makefile, ...; folders: cross, spk, ...)
ls -la 

# within the running container: execute make setup to initialize some default values like TCVERSION=6.1
make setup

# change path to desired spk
cd spk/shairport-sync

# build for specific arch 
# or call make all-supported to build packages for all supported architectures
make arch-armada370

# if the build succeeds, the spk package is in
# /spksrc/packages                 # in the container
# $(HOME)/syno/spksrc/packages     # on the host computer

Some Remarks

  • the first build takes longer time, since the source code and the toolchain packages must be downloaded (once)
  • the shairport-sync package is outdated and build might fail
  • you find a more current version of shairport-sync on hgy59:fix_shairport see PR Fix shairport #3866

@lvjinqiao
Copy link
Author

welcome @lvjinqiao
a lot of contributors here are not native english speaking, so there might always be some communication issues, but let's try...

from your logs, I read that you want to build the shairport-sync package for armada370 architecture.

what I cannot see is, whether you are using the docker image or a debian environment for the build.

you have two options (see readme: Setup Development Environment)

  1. (the prefered one) use the dockerimage
  2. use a pysical or virtual debian linux and install all the required dependencies

Instructions to build shairport.sync for armada370 6.1 with the docker image:
Prerequisite is a linux system with docker installed.

# navigate into a working folder
cd ~
mkdir syno
cd syno

# clone the spksrc repository
git clone https://github.com/SynoCommunity/spksrc.git spksrc

# run the spksrc environment as a docker container
docker run -it -v $(pwd)/spksrc:/spksrc synocommunity/spksrc /bin/bash

# verify the volume mount
# output of pwd should be /spksrc
pwd
# ls -la sould list all files and folder of the root folders in the repository (files: Makefile, ...; folders: cross, spk, ...)
ls -la 

# within the running container: execute make setup to initialize some default values like TCVERSION=6.1
make setup

# change path to desired spk
cd spk/shairport-sync

# build for specific arch 
# or call make all-supported to build packages for all supported architectures
make arch-armada370

# if the build succeeds, the spk package is in
# /spksrc/packages                 # in the container
# $(HOME)/syno/spksrc/packages     # on the host computer

Some Remarks

  • the first build takes longer time, since the source code and the toolchain packages must be downloaded (once)
  • the shairport-sync package is outdated and build might fail
  • you find a more current version of shairport-sync on hgy59:fix_shairport see PR Fix shairport #3866

hello,I use the dockerimage,but my system is debian linux.you means i must use the dockerimage on syno to compile the spk??because i am in chinad so i think maybe i cannot wget some things.

@lvjinqiao
Copy link
Author

welcome @lvjinqiao
a lot of contributors here are not native english speaking, so there might always be some communication issues, but let's try...
from your logs, I read that you want to build the shairport-sync package for armada370 architecture.
what I cannot see is, whether you are using the docker image or a debian environment for the build.
you have two options (see readme: Setup Development Environment)

  1. (the prefered one) use the dockerimage
  2. use a pysical or virtual debian linux and install all the required dependencies

Instructions to build shairport.sync for armada370 6.1 with the docker image:
Prerequisite is a linux system with docker installed.

# navigate into a working folder
cd ~
mkdir syno
cd syno

# clone the spksrc repository
git clone https://github.com/SynoCommunity/spksrc.git spksrc

# run the spksrc environment as a docker container
docker run -it -v $(pwd)/spksrc:/spksrc synocommunity/spksrc /bin/bash

# verify the volume mount
# output of pwd should be /spksrc
pwd
# ls -la sould list all files and folder of the root folders in the repository (files: Makefile, ...; folders: cross, spk, ...)
ls -la 

# within the running container: execute make setup to initialize some default values like TCVERSION=6.1
make setup

# change path to desired spk
cd spk/shairport-sync

# build for specific arch 
# or call make all-supported to build packages for all supported architectures
make arch-armada370

# if the build succeeds, the spk package is in
# /spksrc/packages                 # in the container
# $(HOME)/syno/spksrc/packages     # on the host computer

Some Remarks

  • the first build takes longer time, since the source code and the toolchain packages must be downloaded (once)
  • the shairport-sync package is outdated and build might fail
  • you find a more current version of shairport-sync on hgy59:fix_shairport see PR Fix shairport #3866

hello,I use the dockerimage,but my system is debian linux.you means i must use the dockerimage on syno to compile the spk??because i am in chinad so i think maybe i cannot wget some things.

And this is my steps:
first, docker run -it -v ~/spksrc:/spksrc synocommunity/spksrc /bin/bash
second, cd /spksrc/spk/shairport-sync
next,make arch-armada370
and it will tell me this
root@570305cb0f6d:/spksrc/spksrc/spk/shairport-sync# make arch-armada370
===> Building package for arch armada370
make[1]: Entering directory '/spksrc/spksrc/spk/shairport-sync'
===> Processing dependencies of shairport-sync
make[2]: Entering directory '/spksrc/spksrc/cross/busybox'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/spksrc/spksrc/cross/busybox'
make[2]: Entering directory '/spksrc/spksrc/cross/shairport-sync'
===> Processing dependencies of shairport-sync
make[3]: Entering directory '/spksrc/spksrc/cross/libtool'
make[3]: Nothing to be done for 'default'.
make[3]: Leaving directory '/spksrc/spksrc/cross/libtool'
make[3]: Entering directory '/spksrc/spksrc/cross/libconfig'
make[3]: Nothing to be done for 'default'.
make[3]: Leaving directory '/spksrc/spksrc/cross/libconfig'
make[3]: Entering directory '/spksrc/spksrc/cross/popt'
===> Downloading files for popt
wget http://rpm5.org/files/popt/popt-1.16.tar.gz
wget: unable to resolve host address ‘rpm5.org’
make[3]: *** [../../mk/spksrc.download.mk:57: download_target] Error 4
make[3]: Leaving directory '/spksrc/spksrc/cross/popt'
make[2]: *** [../../mk/spksrc.depend.mk:44: depend_target] Error 2
make[2]: Leaving directory '/spksrc/spksrc/cross/shairport-sync'
make[1]: *** [../../mk/spksrc.depend.mk:44: depend_target] Error 2
make[1]: Leaving directory '/spksrc/spksrc/spk/shairport-sync'
make: [../../mk/spksrc.spk.mk:463: arch-armada370] Error 2 (ignored)
root@570305cb0f6d:/spksrc/spksrc/spk/shairport-sync#

but when i download the tar ,and put it in the folder ,it not work.

@hgy59
Copy link
Contributor

hgy59 commented Mar 8, 2020

That is the same environment that I use

The dockerimage is officially supported on docker hub.
If you not already have, you can get it on the command line with:
docker pull synocommunity/spksrc

the command docker image ls must list synocommunity/spksrc:latest when the pull succeeded.

please follow each step of my instructions above.

Log entries like make[2]: Nothing to be done for 'default'. are hints, that you did not call make setup

I have no idea, whether the download of the cross modules source code is available in your country.
If the download of some cross modules works and for some others not, it might be that these are outdated (these are fixed on my branch I noted above).
If the download of cross-source-code does not work at all, you can try to download manually. Therefore you have to evaluate the download links in each cross module Makefile. If the manual download succeeds, you need to put the downloaded files into the folder spksrc/digests. The file name must be the same as listed in the digests file of the cross module.

And please do not quote the whole message, we have the history available here.

@hgy59
Copy link
Contributor

hgy59 commented Mar 8, 2020

If you do not run make setup in the /spksrc folder, you need to specify the TC-VERSION for the build like:
make arch-armada370-6.1

@lvjinqiao
Copy link
Author

i run make setup,i think the problem is because "wget http://rpm5.org/files/popt/popt-1.16.tar.gz" in
my country cannot succeds,and the manual download succeeds, but i can't find the folder spksec/digests,so i made a folder with name digests,and it not work...do you understand me hhh

@lvjinqiao
Copy link
Author

oh, i solve the problem, maybe the folder is not digests ,the folder name is distrib,and thank you very much ,do you know thank you very much ?? thank you very much

@hgy59
Copy link
Contributor

hgy59 commented Mar 8, 2020

yes the folder is distrib (I am out and have no access to my system at home).

currently http://rpm5.org/files/popt/ is not reachable for me too. So it is not a restriction for your location. May be you should try later (some hours, or even days) or we must find a mirror or other source for popt source code.

@hgy59
Copy link
Contributor

hgy59 commented Mar 8, 2020

this works for me:
ftp://anduin.linuxfromscratch.org/BLFS/popt/popt-1.16.tar.gz

@lvjinqiao
Copy link
Author

YEAH!! I am already compile the spk succeeds. thank you very much! Our country has a super big network firewall. You can't use Google or watch YouTube here. It's terrible

@hgy59 hgy59 changed the title hello,when i compile this spk,i found this problem,and i download the tar,i also put it in the folder,but it can't work.Do you understand me ??MY english is just so so..... Failed to build shairport-sync Mar 8, 2020
@hgy59
Copy link
Contributor

hgy59 commented Mar 8, 2020

I gave this issue a more descriptive title ;-)

@hgy59
Copy link
Contributor

hgy59 commented Mar 8, 2020

you're welcome and I am happy too, that you succeeded.

@hgy59 hgy59 closed this as completed Mar 8, 2020
@hgy59
Copy link
Contributor

hgy59 commented Mar 8, 2020

It is not the first time rpm5.org is not reachable:
linuxboot/heads#421

So it is better update PR #3866 to use ftp://anduin.linuxfromscratch.org/BLFS/popt/popt-1.16.tar.gz for cross/popt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants