adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
Other
4.09k stars 1.21k forks source link

Build failure for raspberry PI 4 #5992

Closed waqas-shafique closed 2 years ago

waqas-shafique commented 2 years ago

CircuitPython version

circuitpython-7.2.0-alpha.1

Code/REPL

It looks like the error message is originating from

if not qcfgs:
        sys.stderr.write("ERROR: Empty preprocessor output - check for errors above\n")
        sys.exit(1)

Behavior

make BOARD=raspberrypi_pi4b Use make V=1, make V=2 or set BUILD_VERBOSE similarly in your environment to increase build verbosity. ERROR: Empty preprocessor output - check for errors above make: [../../py/py.mk:269: build-raspberrypi_pi4b/genhdr/qstrdefs.enum.h] Error 1 make: Deleting file 'build-raspberrypi_pi4b/genhdr/qstrdefs.enum.h'

Description

No response

Additional information

No response

jerryneedell commented 2 years ago

It builds OK for me -- did you install everything as in this guide https://learn.adafruit.com/building-circuitpython?

waqas-shafique commented 2 years ago

@jerryneedell verifying all steps again, will update you shortly

waqas-shafique commented 2 years ago

I tried all steps again with a fresh clone of the repo but the same result as before.

I tried to build another board using make BOARD=circuitplayground_express and it builds fine.

However, for make BOARD=raspberrypi_pi4b I'm getting the same error i.e.

GEN build-raspberrypi_pi4b/genhdr/mpversion.h python3 ../../py/makeversionhdr.py build-raspberrypi_pi4b/genhdr/mpversion.h GEN build-raspberrypi_pi4b/genhdr/qstrdefs.enum.h python3 ../../py/makeqstrdata.py build-raspberrypi_pi4b/genhdr/qstrdefs.preprocessed.h > build-raspberrypi_pi4b/genhdr/qstrdefs.enum.h ERROR: Empty preprocessor output - check for errors above make: [../../py/py.mk:269: build-raspberrypi_pi4b/genhdr/qstrdefs.enum.h] Error 1 make: Deleting file 'build-raspberrypi_pi4b/genhdr/qstrdefs.enum.h'

Also git describe --tags command shows below result 7.2.0-alpha.1-343-gfd2cbc00f

dhalbert commented 2 years ago

Debugging this in discord. The aarch64 toolchain was missing, but it wasn't obvious from the errors above. Perhaps there should be an earlier more obvious check for the toolchain existence.

Also having trouble due to mkfs.fat v4.1 not having --offset arg. Need v4.2, which is not immediately available for Ubuntu 20.04.