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

dump1090-fa fails to build on pi4 4GB with 32 bit pi-os image #222

Open
mw0cqu opened this issue Jul 13, 2023 · 2 comments
Open

dump1090-fa fails to build on pi4 4GB with 32 bit pi-os image #222

mw0cqu opened this issue Jul 13, 2023 · 2 comments

Comments

@mw0cqu
Copy link

mw0cqu commented Jul 13, 2023

For reasons of additional apps compatibility that I need to build onto my PI4 , I am trying to build a pi4 with the 32 bit bullseye OS (obtained from the Raspberry Pi imager) and dump1090-fa.

instructions being followed from:
https://github.com/flightaware/dump1090/blob/master/README.md

Steps taken:

  1. installed deps (git was missing from the list by the way!)

  2. the second step (./prepare-build.sh bullseye) incorrectly assumes you have already cloned the git ! - I hadn't ) installed git, I cloned the git , and cd'd to dump1090

  3. ./prepare-build.sh bullseye - needed to be prefixed with sudo but then worked 100%

  4. cd package-bullseye - worked 100%

  5. as I am only using rtl-sdr' s for dump-1090-fa and dumpvdl2, Itherefore I used the "limited dependencies" line:

dpkg-buildpackage -b --no-sign --build-profiles=custom,rtlsdr

starts building then dies with the following error:

cc -DSTACK_LINE_READER_BUFFER_SIZE=1024 -DNDEBUG -Icpu_features/include -DHAVE_STRONG_GETAUXV AL -g -O2 -ffile-prefix-map=/home/pi/dump1090/package-bullseye=. -fstack-protector-strong -Wfo rmat -Werror=format-security -std=c99 -c cpu_features/src/cpuinfo_aarch64.c -o cpu_features/sr c/cpuinfo_aarch64.o
In file included from cpu_features/src/cpuinfo_aarch64.c:15:
cpu_features/include/cpuinfo_aarch64.h:153:2: error: #error "Including cpuinfo_aarch64.h from a non-aarch64 target."
153 | #error "Including cpuinfo_aarch64.h from a non-aarch64 target."
| ^~~~~
make[2]: *** [Makefile:206: cpu_features/src/cpuinfo_aarch64.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/pi/dump1090/package-bullseye'
dh_auto_build: error: make -j4 RTLSDR=yes BLADERF=no HACKRF=no LIMESDR=no DUMP1090_VERSION=8.2 returned exit code 2
make[1]: *** [debian/rules:48: override_dh_auto_build] Error 2
make[1]: Leaving directory '/home/pi/dump1090/package-bullseye'
make: *** [debian/rules:63: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

I'm not a coder, but my "layman's interpretation" of what happens is:

  • it detects my 64 bit capable CPU
  • despite my 32bit OS , the build falls apart spectacularly.

I need the 32 bit OS to ensure compatibility with parallel apps (mainly radar upload clients)
I need the CPU/RAM of a pi4 as dumpVDL2 was consuming >98% CPU on a 3B+

I have tried 3 or 4 different ways of building this (e.g. dpkg from the ppa) - they all dump out at the same point .

Any clues as to how to pass this roadblock please ?

Many thanks in advance!

@mutability
Copy link

Try the dev branch? It has some commits around this area that may help.

@mok0
Copy link

mok0 commented Aug 15, 2023

I get the same error, from the master branch, on a Raspberry Pi 400 running the 32 bit OS.

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

3 participants