Skip to content

Update Dockerfile.ubuntu22.04 - #272

Closed
observerw wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
observerw:patch-1
Closed

observerw wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
observerw:patch-1

Conversation

@observerw

Copy link
Copy Markdown

Contains two necessary changes to build successfully:

  1. Move DEBIAN_FRONTEND to avoid timezone interaction. Current ARG DEBIAN_FRONTEND not seems to work.
  2. Install libfl-dev, otherwise OpenSTA make will failed:
0.717 CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
0.717 Please set them or make sure they are set and tested correctly in the CMake files:
0.717 /OpenSTA/FLEX_INCLUDE_DIR
0.717    used as include directory in directory /OpenSTA

Contains two necessary changes for build success:

1. Move `DEBIAN_FRONTEND` to avoid timezone interaction. Current `ARG DEBIAN_FRONTEND` not seems to work.
2. Install `libfl-dev`, otherwise OpenSTA make will failed:

```
0.717 CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
0.717 Please set them or make sure they are set and tested correctly in the CMake files:
0.717 /OpenSTA/FLEX_INCLUDE_DIR
0.717    used as include directory in directory /OpenSTA
```

Signed-off-by: 王博伟 <wozluohd@gmail.com>
@CLAassistant

CLAassistant commented Feb 25, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@maliberty

Copy link
Copy Markdown
Member

@dsengupta0628 not sure if this is still relevant or not

@dsengupta0628

Copy link
Copy Markdown
Collaborator

Checked this against current master - I don't think it's still needed.

Both changes were verified in Docker against the current Dockerfile.ubuntu22.04:

1. ARG DEBIAN_FRONTEND

It does work. A minimal build confirms the build arg is exported into the RUN environment:

[2/2] RUN echo "FRONTEND=[$DEBIAN_FRONTEND]"
FRONTEND=[noninteractive]

Building the current apt stage as-is completes with no tzdata prompt.

2. libfl-dev / FLEX_INCLUDE_DIR NOTFOUND

libfl-dev is a Recommends of the flex package on Ubuntu 22.04:

$ apt-cache show flex | grep Recommends
Recommends: gcc | c-compiler, libfl-dev

So the current apt-get install -y flex already pulls it in, and /usr/include/FlexLexer.h is present - confirmed by building the existing apt stage. The NOTFOUND error only appears once --no-install-recommends is added, which is the other half of this PR. In other words, the missing libfl-dev is caused by the change itself rather than being a pre-existing bug.

@observerw
observerw deleted the patch-1 branch September 12, 2026 05:28
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

Successfully merging this pull request may close these issues.

4 participants