Skip to content

build: show cc outputs when version detection failed#61700

Open
legendecas wants to merge 1 commit intonodejs:mainfrom
legendecas:configure-cc-vers
Open

build: show cc outputs when version detection failed#61700
legendecas wants to merge 1 commit intonodejs:mainfrom
legendecas:configure-cc-vers

Conversation

@legendecas
Copy link
Member

@legendecas legendecas commented Feb 5, 2026

There are chances that ./configure fails on GitHub Actions.
Print the output of the command to see if there is any way to
improve it.

Example: https://github.com/nodejs/node/actions/runs/21730375777/job/62683227640?pr=61699

make: Entering directory '/home/runner/work/node/node/node'
python3 ./configure --verbose --error-on-warn --v8-enable-temporal-support
sccache: error: Timed out waiting for server startup. Maybe the remote service is unreachable?
Run with SCCACHE_LOG=debug SCCACHE_NO_DAEMON=1 to get more information
Node.js configure: Found Python 3.14.2...
Traceback (most recent call last):
  File "/home/runner/work/node/node/node/./configure", line 27, in <module>
    import configure
  File "/home/runner/work/node/node/node/configure.py", line 2587, in <module>
    check_compiler(output)
    ~~~~~~~~~~~~~~^^^^^^^^
  File "/home/runner/work/node/node/node/configure.py", line 1510, in check_compiler
    ok, is_clang, clang_version, gcc_version, is_apple = try_check_compiler(CXX, 'c++')
                                                         ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/home/runner/work/node/node/node/configure.py", line 1291, in try_check_compiler
    is_apple = values[7] == '1'
               ~~~~~~^^^
IndexError: list index out of range
make: *** [Makefile:626: build-ci] Error 1
make: Leaving directory '/home/runner/work/node/node/node'

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run. labels Feb 5, 2026
@richardlau
Copy link
Member

There are chances that ./configure fails on GitHub Actions. Print the output of the command to see if there is any way to improve it.

Example: https://github.com/nodejs/node/actions/runs/21730375777/job/62683227640?pr=61699

make: Entering directory '/home/runner/work/node/node/node'
python3 ./configure --verbose --error-on-warn --v8-enable-temporal-support
sccache: error: Timed out waiting for server startup. Maybe the remote service is unreachable?
Run with SCCACHE_LOG=debug SCCACHE_NO_DAEMON=1 to get more information
Node.js configure: Found Python 3.14.2...
Traceback (most recent call last):
  File "/home/runner/work/node/node/node/./configure", line 27, in <module>
    import configure
  File "/home/runner/work/node/node/node/configure.py", line 2587, in <module>
    check_compiler(output)
    ~~~~~~~~~~~~~~^^^^^^^^
  File "/home/runner/work/node/node/node/configure.py", line 1510, in check_compiler
    ok, is_clang, clang_version, gcc_version, is_apple = try_check_compiler(CXX, 'c++')
                                                         ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/home/runner/work/node/node/node/configure.py", line 1291, in try_check_compiler
    is_apple = values[7] == '1'
               ~~~~~~^^^
IndexError: list index out of range
make: *** [Makefile:626: build-ci] Error 1
make: Leaving directory '/home/runner/work/node/node/node'

I think the failure is due to the sccache error in that output?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants