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

[x86_64-gcc10.2.0-linux5.9.13-uclibc1.0.36] Custom build ubuntu version of docker file is too old and archives 404, it also fails on other versions with the kernel headers, unable to extract them. #1

Open
BornTactical opened this issue Oct 7, 2021 · 8 comments

Comments

@BornTactical
Copy link

BornTactical commented Oct 7, 2021

I tried everything up to Ubuntu 21:10 and still joy when it reaches step 2 on kernel headers.

@BornTactical BornTactical changed the title Custom build ubuntu version i docker file is too old and archives 404, it also fails on other versions with the kernel headers, unable to extract them. Custom build ubuntu version of docker file is too old and archives 404, it also fails on other versions with the kernel headers, unable to extract them. Oct 7, 2021
@BornTactical
Copy link
Author

Fixed one of the problems by adding xz-utils to the docker script.

@v3l0c1r4pt0r
Copy link
Owner

Please, be more precise on what is the problem. Kernel headers have nothing to do with Ubuntu. What branch did you use? Do you have any logs from the fail?

@BornTactical
Copy link
Author

BornTactical commented Oct 7, 2021

Latest x86_64 build - running make build gave me a bunch of 404s when trying to access the default version of ubuntu pulled from archives, so I switched to a newer version. (FROM ubuntu 18.04, second line of the Dockerfile). After getting past the 404 errors the next issue was an inability to cd into the linux kernel directory because the kernel xz files failed to extract until I added xz-utils near the comment # for bzip2 extraction also in the dockerfile.

The third problem I had was was it getting stuck at a prompt for the system time but that was apparently a bug with a particular ubuntu build - just something to note.

The fourth problem was on building uClibc itself. Since I had modified the settings of the .config files (needed IPV6 and the old version of utime.h) it detected the change during the build but the silentoldconfig option prevented the build from continuing. I switched it to just regular oldconfig and it continued.

After all of that was done, it finally finished the container and I was able to run/sdk it.

@BornTactical
Copy link
Author

Here's a log of make build:

docker rmi -f x86_64-gcc10.2.0-linux5.9.13-uclibc1.0.36:1-9-g83f860a || true
Error: No such image: x86_64-gcc10.2.0-linux5.9.13-uclibc1.0.36:1-9-g83f860a
docker build --build-arg=JOBS=1 --tag x86_64-gcc10.2.0-linux5.9.13-uclibc1.0.36:1-9-g83f860a .
Sending build context to Docker daemon    212kB
Step 1/65 : ARG JOBS=1
Step 2/65 : FROM ubuntu:12.04
12.04: Pulling from library/ubuntu
d8868e50ac4c: Already exists 
83251ac64627: Already exists 
589bba2f1b36: Already exists 
d62ecaceda39: Already exists 
6d93b41cfc6b: Already exists 
Digest: sha256:18305429afa14ea462f810146ba44d4363ae76e4c8dfc38288cf73aa07485005
Status: Downloaded newer image for ubuntu:12.04
 ---> 5b117edd0b76
Step 3/65 : ARG JOBS
 ---> Running in 76cfd27f4bde
Removing intermediate container 76cfd27f4bde
 ---> 754224d81f8a
Step 4/65 : RUN apt-get update && apt-get upgrade -yq && apt-get install -yq   sudo   gcc g++ make gawk texinfo file m4 patch   rsync   bzip2   wget ca-certificates   libncurses5-dev
 ---> Running in 006af6552e05
Ign http://archive.ubuntu.com precise Release.gpg
Ign http://archive.ubuntu.com precise-updates Release.gpg
Ign http://archive.ubuntu.com precise-security Release.gpg
Ign http://archive.ubuntu.com precise Release
Ign http://archive.ubuntu.com precise-updates Release
Ign http://archive.ubuntu.com precise-security Release
Err http://archive.ubuntu.com precise/main Sources
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise/restricted Sources
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise/universe Sources
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise/main amd64 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise/restricted amd64 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise/universe amd64 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise/main i386 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise/restricted i386 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise/universe i386 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-updates/main Sources
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-updates/restricted Sources
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-updates/universe Sources
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-updates/main amd64 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-updates/restricted amd64 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-updates/universe amd64 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-updates/main i386 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-updates/restricted i386 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-updates/universe i386 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-security/main Sources
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-security/restricted Sources
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-security/universe Sources
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-security/main amd64 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-security/restricted amd64 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-security/universe amd64 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-security/main i386 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-security/restricted i386 Packages
  404  Not Found [IP: 91.189.88.142 80]
Err http://archive.ubuntu.com precise-security/universe i386 Packages
  404  Not Found [IP: 91.189.88.142 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/main/source/Sources  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/restricted/source/Sources  404  Not Found [IP: 91.189.88.142 80]                   

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/universe/source/Sources  404  Not Found [IP: 91.189.88.142 80]                     

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.142 80]                  

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/main/source/Sources  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/source/Sources  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/universe/source/Sources  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/main/binary-i386/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/universe/binary-i386/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/main/source/Sources  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/restricted/source/Sources  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/universe/source/Sources  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/main/binary-i386/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.88.142 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/universe/binary-i386/Packages  404  Not Found [IP: 91.189.88.142 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c apt-get update && apt-get upgrade -yq && apt-get install -yq   sudo   gcc g++ make gawk texinfo file m4 patch   rsync   bzip2   wget ca-certificates   libncurses5-dev' returned a non-zero code: 100
make: *** [Makefile:32: build] Error 100

@BornTactical
Copy link
Author

BornTactical commented Oct 7, 2021

Here's a relevant excerpt after upgrading Ubuntu in the Dockerfile to 18.04

Extracting sources...
Removing intermediate container f743f2df2649
 ---> a6120e5d44b0
Step 36/65 : RUN for f in *.tar*; do echo "$f...";tar -xf $f; echo "done"; done
 ---> Running in 76b692fd2076
binutils-2.35.1.tar.gz...
done
gcc-10.2.0.tar.gz...
done
gmp-6.2.0.tar.bz2...
done
linux-5.9.1.tar.xz...
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

Which actually doesn't exit but continues on until it tries to cd into the extracted directory, then it fails.
This is fixed by adding xz-utils to the dockerfile.

@BornTactical BornTactical changed the title Custom build ubuntu version of docker file is too old and archives 404, it also fails on other versions with the kernel headers, unable to extract them. [x86_64-gcc10.2.0-linux5.9.13-uclibc1.0.36] Custom build ubuntu version of docker file is too old and archives 404, it also fails on other versions with the kernel headers, unable to extract them. Oct 7, 2021
@BornTactical
Copy link
Author

silentoldconfig seemed to work on this build after editing the uclibc config file. I'm assuming I had some docker container garbage that broke things.

@BornTactical
Copy link
Author

20.04 is the ubuntu version where it gets stuck at a timezone configuration option, that would be a version to dodge in the future. Anyway, that's all I have.
Your website is excellent.

@v3l0c1r4pt0r
Copy link
Owner

Ok, thanks for the information. This should be enough to identify the problem. I'll try to take a look and fix this as soon as I have some spare time. By the way, if you like, you can always pull prebuilt image from Docker Hub, or ready-to-use bundle from Github that you can use outside container.

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