Giter Site home page Giter Site logo

build error on arm64 about docker-squid HOT 4 CLOSED

b4tman avatar b4tman commented on June 3, 2024
build error on arm64

from docker-squid.

Comments (4)

sunnyjocker avatar sunnyjocker commented on June 3, 2024 1

it works again for the raspberry pi 4 64bit, thanks for the quick response. have a good day.

from docker-squid.

sunnyjocker avatar sunnyjocker commented on June 3, 2024

i tried to tweak Dockerfile a little bit, the 'mkdir' issue is gone, there is my fix:
line 100:

RUN set -x && \
	cd /tmp/build && mkdir -p /usr/local/sbin/ && ln -sf /bin/mkdir /usr/local/sbin/mkdir && \
	nproc=$(n=$(nproc) ; max_n=6 ; [ $n -le $max_n ] && echo $n || echo $max_n) && \
	make -j $nproc && \
	make install && \
	cd tools/squidclient && make && make install-strip

but get stucked here:

#17 4922.8  ../../../../cfgaux/install-sh -c -d '/usr/lib/squid'
#17 4923.0   /bin/sh ../../../../libtool   --mode=install /usr/bin/install -c basic_getpwnam_auth '/usr/lib/squid'
#17 4923.2 libtool: install: /usr/bin/install -c basic_getpwnam_auth /usr/lib/squid/basic_getpwnam_auth
#17 4923.2  ../../../../cfgaux/install-sh -c -d '/usr/share/man/man8'
#17 4923.4  /usr/bin/install -c -m 644 basic_getpwnam_auth.8 '/usr/share/man/man8'
#17 4923.4 make[6]: Leaving directory '/tmp/build/src/auth/basic/getpwnam'
#17 4923.4 make[5]: Leaving directory '/tmp/build/src/auth/basic/getpwnam'
#17 4923.4 Making install in NCSA
#17 4923.4 make[5]: Entering directory '/tmp/build/src/auth/basic/NCSA'
#17 4923.5 make[6]: Entering directory '/tmp/build/src/auth/basic/NCSA'
#17 4923.5  ../../../../cfgaux/install-sh -c -d '/usr/lib/squid'
#17 4923.6   /bin/sh ../../../../libtool   --mode=install /usr/bin/install -c basic_ncsa_auth '/usr/lib/squid'
#17 4923.9 libtool: install: /usr/bin/install -c basic_ncsa_auth /usr/lib/squid/basic_ncsa_auth
#17 4923.9  ../../../../cfgaux/install-sh -c -d '/usr/share/man/man8'
#17 4924.0  /usr/bin/install -c -m 644 basic_ncsa_auth.8 '/usr/share/man/man8'
#17 4924.1 make[6]: Leaving directory '/tmp/build/src/auth/basic/NCSA'
#17 4924.1 make[5]: Leaving directory '/tmp/build/src/auth/basic/NCSA'
#17 4924.1 make[5]: Entering directory '/tmp/build/src/auth/basic'
#17 4924.2 make[6]: Entering directory '/tmp/build/src/auth/basic'
#17 4924.2 make[6]: Nothing to be done for 'install-exec-am'.
#17 4924.2 make[6]: Nothing to be done for 'install-data-am'.
#17 4924.2 make[6]: Leaving directory '/tmp/build/src/auth/basic'
#17 4924.2 make[5]: Leaving directory '/tmp/build/src/auth/basic'
#17 4924.2 make[4]: Leaving directory '/tmp/build/src/auth/basic'
#17 4924.2 Making install in digest
#17 4924.2 make[4]: Entering directory '/tmp/build/src/auth/digest'
#17 4924.3 Making install in file
#17 4924.4 make[5]: Entering directory '/tmp/build/src/auth/digest/file'
#17 4924.5 make[6]: Entering directory '/tmp/build/src/auth/digest/file'
#17 4924.5  ../../../../cfgaux/install-sh -c -d '/usr/lib/squid'
#17 4924.5 Assertion failed: p_rcu_reader->depth != 0 (/qemu/include/qemu/rcu.h: rcu_read_unlock: 101)
#17 4924.6 Aborted (core dumped)
#17 4924.6 make[6]: *** [Makefile:801: install-libexecPROGRAMS] Error 1
#17 4924.6 make[6]: Leaving directory '/tmp/build/src/auth/digest/file'
#17 4924.6 make[5]: *** [Makefile:1197: install-am] Error 2
#17 4924.6 make[5]: Leaving directory '/tmp/build/src/auth/digest/file'
#17 4924.6 make[4]: *** [Makefile:891: install-recursive] Error 1
#17 4924.6 make[4]: Leaving directory '/tmp/build/src/auth/digest'
#17 4924.6 make[3]: *** [Makefile:934: install-recursive] Error 1
#17 4924.6 make[3]: Leaving directory '/tmp/build/src/auth'
#17 4924.6 make[2]: *** [Makefile:7129: install-recursive] Error 1
#17 4924.6 make[2]: Leaving directory '/tmp/build/src'
#17 4924.6 make[1]: *** [Makefile:7657: install] Error 2
#17 4924.6 make[1]: Leaving directory '/tmp/build/src'
#17 4924.6 make: *** [Makefile:588: install-recursive] Error 1

i think the compile process is over cause i don't see any CXX command anymore.
this line is why it failed:
Assertion failed: p_rcu_reader->depth != 0 (/qemu/include/qemu/rcu.h: rcu_read_unlock: 101)
i have no idea of how to get over with it

from docker-squid.

b4tman avatar b4tman commented on June 3, 2024

Hi @endlessbest.

I successfully built v4.16 on arm64 via cloud.drone.io (native build, without qemu), images pushed to:

  • docker.io/b4tman/squid:4.16.1-arm64
  • ghcr.io/b4tman/squid-arm64:4.16.1

Error while loading /usr/local/sbin/mkdir: No such file or directory

not sure about this error
seems like file system problem
try updating docker or:

docker image rm alpine:3.14.0
docker pull alpine:3.14.0

Assertion failed: p_rcu_reader->depth != 0 (/qemu/include/qemu/rcu.h: rcu_read_unlock: 101)

seems like qemu issue, are you using emulation or building on native arm64 machine?

from docker-squid.

sunnyjocker avatar sunnyjocker commented on June 3, 2024

thank you so much for the help, then i don't have to build it myself.

seems like qemu issue, are you using emulation or building on native arm64 machine?

yes, emulation.

from docker-squid.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.