compile build failed

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
Armik
Posts: 47
Joined: Mon Mar 28, 2016 7:59 am

compile build failed

Post by Armik »

failing to make your own build constantly fails with various errors.

Code: Select all

 CC      net/netfilter/core.o
  CC      net/netfilter/nf_log.o
  CC      net/netfilter/nf_queue.o
net/netfilter/nf_queue.c: In function '__nf_queue':
net/netfilter/nf_queue.c:178:2: error: label 'err_unlock' used but not defined
  goto err_unlock;
  ^~~~
scripts/Makefile.build:326: recipe for target 'net/netfilter/nf_queue.o' failed
make[8]: *** [net/netfilter/nf_queue.o] Error 1
scripts/Makefile.build:585: recipe for target 'net/netfilter' failed
make[7]: *** [net/netfilter] Error 2
Makefile:1039: recipe for target 'net' failed
make[6]: *** [net] Error 2
make[6]: Leaving directory '/home/stas/gargoyle/custom-src/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/linux-mvebu_cortexa9/linux-4.14.99'
Makefile:21: recipe for target '/home/stas/gargoyle/custom-src/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/linux-mvebu_cortexa9/linux-4.14.99/.image' failed
make[5]: *** [/home/stas/gargoyle/custom-src/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/linux-mvebu_cortexa9/linux-4.14.99/.image] Error 2
make[5]: Leaving directory '/home/stas/gargoyle/custom-src/target/linux/mvebu'
Makefile:13: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/home/stas/gargoyle/custom-src/target/linux'
time: target/linux/install#248.56#27.40#283.23
target/Makefile:23: recipe for target 'target/linux/install' failed
make[3]: *** [target/linux/install] Error 2
make[3]: Leaving directory '/home/stas/gargoyle/custom-src'
target/Makefile:19: recipe for target '/home/stas/gargoyle/custom-src/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/stamp/.target_install' failed
make[2]: *** [/home/stas/gargoyle/custom-src/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/stamp/.target_install] Error 2
make[2]: Leaving directory '/home/stas/gargoyle/custom-src'
/home/stas/gargoyle/custom-src/include/toplevel.mk:216: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: выход из каталога «/home/stas/gargoyle/custom-src»

there was also a mistake "alsa-lib-1.0.29.tar.bz2 error"
WRT3200ACM
PC Engines APU2

Lantis
Moderator
Posts: 5588
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: compile build failed

Post by Lantis »

What custom config are you trying to make?
Generally I recommend creating a new target rather than allowing make custom to run through to (crash) completion. It seems to work better.

viewtopic.php?f=13&t=11479&p=48621&hilit=rescue#p48621

Note the piece of advice at the end, it is always worth doing one normal build on a similar target to check it actually works for you before going custom.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Armik
Posts: 47
Joined: Mon Mar 28, 2016 7:59 am

Re: compile build failed

Post by Armik »

I do not understand it all, I am doing the assembly on the example of openwrt.then I select the architecture profile and the packages I need and run the build.

Code: Select all

git clone https://github.com/openwrt/openwrt.git
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make menuconfig
make clean     
make

I do with you:

Code: Select all

git clone git://github.com/ericpaulbishop/gargoyle.git
cd gargoyle
make custom

you suggest me to build for my architecture without packages??
make mvebu?
WRT3200ACM
PC Engines APU2

Lantis
Moderator
Posts: 5588
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: compile build failed

Post by Lantis »

If you just want to compile mvebu, we already have that set up for you.
Just run, “make FULL_BUILD=true mvebu”

If you are trying to do something more advanced than that, please explain what you want to achieve so we can help.

Be aware that the compilation environment for Openwrt and Gargoyle are similar, but different. Gargoyle is a wrapper for the Openwrt build environment.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Armik
Posts: 47
Joined: Mon Mar 28, 2016 7:59 am

Re: compile build failed

Post by Armik »

I just want to build my build with the packages I need, but the build constantly ends with various errors.
can this be due to the ever-changing packages of nightly builds openwrt?
write if it is not difficult to command and sequence of actions in order to make your build. ;)
Last edited by Armik on Sun Feb 24, 2019 5:50 am, edited 1 time in total.
WRT3200ACM
PC Engines APU2

Lantis
Moderator
Posts: 5588
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: compile build failed

Post by Lantis »

I mean in theory it could, but we lock most of the important packages to specific versions.
The master branch builds fine...

Is mvebu what you want? You still haven’t confirmed that.
If it is, do me a favour.

Run a regular build like I showed before and make sure it works.
If that works fine, we will move on to customising it for you.
Unless we know the foundations work, we can’t do the rest.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Armik
Posts: 47
Joined: Mon Mar 28, 2016 7:59 am

Re: compile build failed

Post by Armik »

collect for linksys wrt3200acm.
WRT3200ACM
PC Engines APU2

Lantis
Moderator
Posts: 5588
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: compile build failed

Post by Lantis »

Alright, so run this

Code: Select all

make FULL_BUILD=true mvebu


And lets see if that finishes ok.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Armik
Posts: 47
Joined: Mon Mar 28, 2016 7:59 am

Re: compile build failed

Post by Armik »

well.thank you
WRT3200ACM
PC Engines APU2

Armik
Posts: 47
Joined: Mon Mar 28, 2016 7:59 am

Re: compile build failed

Post by Armik »

Code: Select all

SHELL= flock /home/stas/gargoyle/mvebu-src/tmp/.alsa-lib-1.0.29.tar.bz2.flock -c '     /home/stas/gargoyle/mvebu-src/scripts/download.pl "/home/stas/gargoyle/mvebu-src/dl" "alsa-lib-1.0.29.tar.bz2" "de67e0eca72474d6b1121037dafe1024" "" "ftp://ftp.alsa-project.org/pub/lib/" "http://alsa.cybermirror.org/lib/"    '
+ curl -f --connect-timeout 20 --retry 5 --location --insecure ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.29.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to ftp.alsa-project.org port 21: No route to host
Download failed.
+ curl -f --connect-timeout 20 --retry 5 --location --insecure http://alsa.cybermirror.org/lib/alsa-lib-1.0.29.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Download failed.
+ curl -f --connect-timeout 20 --retry 5 --location --insecure https://sources.lede-project.org/alsa-lib-1.0.29.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Download failed.
+ curl -f --connect-timeout 20 --retry 5 --location --insecure https://mirror2.openwrt.org/sources/alsa-lib-1.0.29.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Download failed.
+ curl -f --connect-timeout 20 --retry 5 --location --insecure https://downloads.openwrt.org/sources/alsa-lib-1.0.29.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   184  100   184    0     0    915      0 --:--:-- --:--:-- --:--:--   915
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Download failed.
No more mirrors to try - giving up.
Makefile:94: recipe for target '/home/stas/gargoyle/mvebu-src/dl/alsa-lib-1.0.29.tar.bz2' failed
make[4]: *** [/home/stas/gargoyle/mvebu-src/dl/alsa-lib-1.0.29.tar.bz2] Error 2
make[4]: Leaving directory '/home/stas/gargoyle/mvebu-src/package/alsa-lib'
time: package/alsa-lib/compile#0.10#0.05#1.82
package/Makefile:107: recipe for target 'package/alsa-lib/compile' failed
make[3]: *** [package/alsa-lib/compile] Error 2
make[3]: Leaving directory '/home/stas/gargoyle/mvebu-src'
package/Makefile:103: recipe for target '/home/stas/gargoyle/mvebu-src/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/stamp/.package_compile' failed
make[2]: *** [/home/stas/gargoyle/mvebu-src/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/stamp/.package_compile] Error 2
make[2]: Leaving directory '/home/stas/gargoyle/mvebu-src'
/home/stas/gargoyle/mvebu-src/include/toplevel.mk:216: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: выход из каталога «/home/stas/gargoyle/mvebu-src»
stas@stas-virtual-machine:~/gargoyle$
WRT3200ACM
PC Engines APU2

Post Reply