Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  GCC build fails for Arm on Git Hub Action runner on Ubuntu
« previous next »
  • Print
Pages: [1]

Author Topic: GCC build fails for Arm on Git Hub Action runner on Ubuntu  (Read 277 times)

Offline bahus

  • Member
  • *
  • Posts: 119
GCC build fails for Arm on Git Hub Action runner on Ubuntu
« on: November 11, 2022, 12:44:15 PM »
I'm trying to set up Git Hub Action build for Sansa Clip Zip and following https://www.rockbox.org/wiki/LinuxSimpleGuideToCompiling instructions.

See my script:
https://github.com/bahusoid/rockbox/blob/80b0a41f4455916c15257f56bfe469a65b34dea6/.github/workflows/clipZip.yml#L16-L20

It fails building gcc:
Code: [Select]
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

What am I missing? Any ideas how to fix it? Full log is attached.
* build-gcc.log.txt (46.29 kB - downloaded 15 times.)
« Last Edit: November 11, 2022, 12:52:26 PM by bahus »
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 882
Re: GCC build fails for Arm on Git Hub Action runner on Ubuntu
« Reply #1 on: November 11, 2022, 04:35:46 PM »
$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
Logged

Offline bahus

  • Member
  • *
  • Posts: 119
Re: GCC build fails for Arm on Git Hub Action runner on Ubuntu
« Reply #2 on: November 12, 2022, 01:18:48 AM »
It's the problem with gmp:
https://stackoverflow.com/questions/23128949/compiling-gcc-cannot-find-output-from-flex-giving-up

And it's about some "kludge" part in the rockboxdev.sh
https://github.com/Rockbox/rockbox/blob/dd1fbd51fc7bb3fa7237b3bc34335e99bef29e35/tools/rockboxdev.sh#L454-L460

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)
« Last Edit: November 12, 2022, 03:22:01 AM by bahus »
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 882
Re: GCC build fails for Arm on Git Hub Action runner on Ubuntu
« Reply #3 on: November 12, 2022, 05:58:31 AM »
Glad you found it I was playing with it last night till I got fed up with it
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: GCC build fails for Arm on Git Hub Action runner on Ubuntu
« Reply #4 on: November 12, 2022, 09:36:43 AM »
gmp 5.1.0 seems to be the earliest version to fix that bug.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  GCC build fails for Arm on Git Hub Action runner on Ubuntu
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.039 seconds with 22 queries.