Skip to contentSkip to conversation

travis.yml: Add missing 'flex', 'bison' packages to 'GCC (user)' job

PATCH In review Vaibhav Jain 3 participants 3 messages Apr 17, 2023 – Apr 20, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 travis.yml: Add missing 'flex', 'bison' packages to 'GCC (user)' job

Since commit fd8171fe52b5e("target/hexagon: import lexer for idef-parser") the hexagon target uses 'flex', 'bison' to generate idef-parser. However default travis builder image for 'focal' may not have these pre-installed, consequently following error is seen with travis when trying to execute the 'GCC (user)' job that also tries to build hexagon user binary:

<snip>
export CONFIG="--disable-containers --disable-system" <snip>
Program flex found: NO

../target/hexagon/meson.build:179:4: ERROR: Program 'flex' not found or not executable
<snip>

Fix this by explicitly add 'flex' and 'bison' to the list of addon apt-packages for the 'GCC (user)' job.

---
Changelog:

Since v1:

- Added 'bison' also to the addon package list (Thomas)
- Updated the patch description

---
 .travis.yml | 2 ++
 1 file changed, 2 insertions(+)
.travis.yml +2 -0
index 11894eb810..b958eca5de 100644
@@ -237,6 +237,8 @@ jobs:
           - libglib2.0-dev
           - libgnutls28-dev
           - ninja-build
+          - flex
+          - bison
       env:
         - CONFIG="--disable-containers --disable-system"
 
Signature · 1 line
2.39.2
Reviewed-by on v2 1/1
#1 lore raw

Re: [PATCH v2] travis.yml: Add missing 'flex','bison' packages to 'GCC (user)' job

Quoted 36 lines · Vaibhav Jain

Since commit fd8171fe52b5e("target/hexagon: import lexer for idef-parser") the hexagon target uses 'flex', 'bison' to generate idef-parser. However default travis builder image for 'focal' may not have these pre-installed, consequently following error is seen with travis when trying to execute the 'GCC (user)' job that also tries to build hexagon user binary:

<snip>
export CONFIG="--disable-containers --disable-system" <snip>
Program flex found: NO

../target/hexagon/meson.build:179:4: ERROR: Program 'flex' not found or not executable
<snip>

Fix this by explicitly add 'flex' and 'bison' to the list of addon apt-packages for the 'GCC (user)' job.

---
Changelog:

Since v1:

- Added 'bison' also to the addon package list (Thomas)
- Updated the patch description

---
  .travis.yml | 2 ++
  1 file changed, 2 insertions(+)
.travis.yml +0 -0
index 11894eb810..b958eca5de 100644

.travis.yml jobs: · line 243

Quoted 7 lines
.travis.yml +2 -0
@@ -237,6 +237,8 @@ jobs:
            - libglib2.0-dev
            - libgnutls28-dev
            - ninja-build
+          - flex
+          - bison
        env:
          - CONFIG="--disable-containers --disable-system"

Thanks, queued it for my next pull request.

Thomas

Reviewed-by on v2 1/1
#2 lore raw

Re: [PATCH v2] travis.yml: Add missing 'flex','bison' packages to 'GCC (user)' job

In reply to Vaibhav Jain
Quoted 11 lines · Vaibhav Jain

Since commit fd8171fe52b5e("target/hexagon: import lexer for idef-parser") the hexagon target uses 'flex', 'bison' to generate idef-parser. However default travis builder image for 'focal' may not have these pre-installed, consequently following error is seen with travis when trying to execute the 'GCC (user)' job that also tries to build hexagon user binary:

<snip>
export CONFIG="--disable-containers --disable-system" <snip>
Program flex found: NO

Quoted 8 lines

../target/hexagon/meson.build:179:4: ERROR: Program 'flex' not found or not executable
<snip>

Fix this by explicitly add 'flex' and 'bison' to the list of addon apt-packages for the 'GCC (user)' job.

Quoted 25 lines

---
Changelog:

Since v1:

- Added 'bison' also to the addon package list (Thomas)
- Updated the patch description

---
  .travis.yml | 2 ++
  1 file changed, 2 insertions(+)
.travis.yml +2 -0
index 11894eb810..b958eca5de 100644
@@ -237,6 +237,8 @@ jobs:
            - libglib2.0-dev
            - libgnutls28-dev
            - ninja-build
+          - flex
+          - bison
        env:
          - CONFIG="--disable-containers --disable-system"