Rockbox Development > Starting Development and Compiling

GCC build fails for Arm on Git Hub Action runner on Ubuntu


I'm trying to set up Git Hub Action build for Sansa Clip Zip and following instructions.

See my script:

It fails building gcc:

--- Code: ---checking lex output file root... configure: error: cannot find output from flex; giving up
make[1]: *** [Makefile:4352: configure-gmp] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/rbdev-build/build-gcc'
make: *** [Makefile:846: all] Error 2

--- End code ---

What am I missing? Any ideas how to fix it? Full log is attached.

$apt-get update
$apt-get install -V flex
If that doesn't work you might want to check that its not the wrong version

The -V might be in the wrong place I'm doing this from memory

It's the problem with gmp:

And it's about some "kludge" part in the

Apparently this "kludge" check is broken as removing it fixes the problem for Git Hub Actions (or at least more recent versions should be used for downloading)

Glad you found it I was playing with it last night till I got fed up with it

gmp 5.1.0 seems to be the earliest version to fix that bug.


[0] Message Index

Go to full version