install / make in docker?

44 views
Skip to first unread message

Simon Parten

unread,
Dec 1, 2023, 3:14:06 AM12/1/23
to bcm2835
My ultimate goal is to draw some stuff on an e-ink screen. Sort of following instruction here at the moment.


 I had the hope, to be able to use Docker to simulate the Raspberry pi OS, and ease some of the dev pain points I happen to have. The first lines of the Dockerfile, are this.

FROM balenalib/raspberrypi4-64-debian-openjdk as build-env

RUN install_packages wget ca-certificates unzip git clang libssl-dev cmake build-essential libcap2 libcap-dev libc6-dev
RUN mkdir bcm2835
RUN tar zxf bcm2835-1.71.tar.gz
WORKDIR /bcm2835-1.71
RUN ./configure && make
RUN make check

The last line 'make check'. fails with this message. 

#12 [ 8/24] RUN make check
#12 0.088 Making check in src
#12 0.092 make[1]: Entering directory '/bcm2835-1.71/src'
#12 0.092 make  test
#12 0.094 make[2]: Entering directory '/bcm2835-1.71/src'
#12 0.094 gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -MT test.o -MD -MP -MF .deps/test.Tpo -c -o test.o test.c
#12 0.116 mv -f .deps/test.Tpo .deps/test.Po
#12 0.121 gcc  -g -O2   -o test test.o ./libbcm2835.a -lrt
#12 0.131 make[2]: Leaving directory '/bcm2835-1.71/src'
#12 0.131 make  check-TESTS
#12 0.135 make[2]: Entering directory '/bcm2835-1.71/src'
#12 0.145 make[3]: Entering directory '/bcm2835-1.71/src'
#12 0.148 FAIL: test
#12 0.166 ============================================================================
#12 0.166 Testsuite summary for bcm2835 1.71
#12 0.166 ============================================================================
#12 0.166 # TOTAL: 1
#12 0.166 # PASS:  0
#12 0.166 # SKIP:  0
#12 0.166 # XFAIL: 0
#12 0.167 # FAIL:  1
#12 0.167 # XPASS: 0
#12 0.167 # ERROR: 0
#12 0.167 ============================================================================
#12 0.167 See src/test-suite.log
#12 0.167 Please report to mi...@airspayce.com
#12 0.167 ============================================================================
#12 0.167 make[3]: *** [Makefile:669: test-suite.log] Error 1
#12 0.167 make[3]: Leaving directory '/bcm2835-1.71/src'
#12 0.167 make[2]: *** [Makefile:777: check-TESTS] Error 2
#12 0.167 make[2]: Leaving directory '/bcm2835-1.71/src'
#12 0.167 make[1]: *** [Makefile:851: check-am] Error 2
#12 0.167 make[1]: Leaving directory '/bcm2835-1.71/src'
#12 0.168 make: *** [Makefile:365: check-recursive] Error 1
#12 ERROR: process "/bin/sh -c make check" did not complete successfully: exit code: 2
------

I would openly acknowledge that I'm not particularly skilful in this arena, I guess my first question is whether this would be expected to work? 

With the followup question being if there's anything very obviously wrong with the commands I've put out?

Regards, 
Simon

Simon Parten

unread,
Dec 1, 2023, 3:32:02 AM12/1/23
to bcm2835
I broke open the log file, and believe the interesting line to be this. 

#14 0.269 bcm2835_init: Unable to open /dev/mem: No such file or directory

I can see instruction on the homepage about this, but if I'm 100% honest, I don't understand them   well enough to construct the proper solution. :-(. I have the c libs that apparently are needed to work with / around this - libcap-dev libc6-dev

I suspect, this thread may offer a hint on why this doesn't work. 
And speculatively added dmidecode  but got the same.

So my best guess, is that Docker doesn't provide some low level infrastructure, that this library assumes (probably quite reasonably) exists?

Mike McCauley

unread,
Dec 1, 2023, 3:07:26 PM12/1/23
to bcm...@googlegroups.com
Hello

You will need to read the bcm2835 library documentation about user privileges

Sent from my iPhone

On 1 Dec 2023, at 7:32 pm, Simon Parten <quaf...@gmail.com> wrote:

I broke open the log file, and believe the interesting line to be this. 
--
You received this message because you are subscribed to the Google Groups "bcm2835" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcm2835+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bcm2835/db1d9a48-be99-49a3-a93b-0bc7395dbec5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages