Skip to content

ent-14916: Added function for autotools configure to cat config.log in case of failure - #2602

Open
craigcomstock wants to merge 1 commit into
cfengine:masterfrom
craigcomstock:ent-14916/master
Open

craigcomstock wants to merge 1 commit into
cfengine:masterfrom
craigcomstock:ent-14916/master

Conversation

@craigcomstock

@craigcomstock craigcomstock commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Ticket: ENT-14916
Changelog: none

@craigcomstock

Copy link
Copy Markdown
Contributor Author

@cf-bottom jenkins no tests

@cf-bottom

Copy link
Copy Markdown

@craigcomstock

Copy link
Copy Markdown
Contributor Author

@cf-bottom jenkins no tests

@cf-bottom

Copy link
Copy Markdown

@craigcomstock

Copy link
Copy Markdown
Contributor Author

@cf-bottom jenkins no tests

@cf-bottom

Copy link
Copy Markdown

@craigcomstock
craigcomstock marked this pull request as ready for review November 3, 2026 22:33
@craigcomstock

Copy link
Copy Markdown
Contributor Author

I will revert the GH workflow disablements and squash commits tomorrow.

Comment thread build-scripts/functions Resolved
@craigcomstock

Copy link
Copy Markdown
Contributor Author

@cf-bottom jenkins no tests

@cf-bottom

Copy link
Copy Markdown

@craigcomstock

Copy link
Copy Markdown
Contributor Author

The happy case seems OK.

13:13:54 configure: debug: running configure on core repo...
13:14:54 configure: debug: running configure on enterprise repo...
13:15:01 configure: debug: running configure on nova repo...
13:15:06 configure: debug: running configure on masterfiles repo...

I will add a breaking core PR to this and see how it fares then.

@craigcomstock

Copy link
Copy Markdown
Contributor Author

Build Status

@craigcomstock

Copy link
Copy Markdown
Contributor Author

Build Status

@craigcomstock

Copy link
Copy Markdown
Contributor Author

@cf-bottom jenkins no tests

@cf-bottom

Copy link
Copy Markdown

@craigcomstock
craigcomstock marked this pull request as draft November 12, 2026 22:14
@craigcomstock

Copy link
Copy Markdown
Contributor Author

@cf-bottom jenkins no tests

@cf-bottom

Copy link
Copy Markdown

@craigcomstock

Copy link
Copy Markdown
Contributor Author

This is looking good to me.

16:20:16 bootstrap-tarballs: debug: Running configure on core repository...
16:20:16 Failed to run ./configure -C in /home/jenkins/workspace/bootstrap-pr/core
16:20:16 --- Start of ./configure -C output ---
16:20:16 checking build system type... x86_64-pc-linux-gnu
16:20:16 checking host system type... x86_64-pc-linux-gnu
16:20:16 checking target system type... x86_64-pc-linux-gnu

and then later

16:20:16 checking for mdb_dbi_opennope in -llmdb... no
16:20:16 configure: error: Cannot find Lightning MDB
16:20:16 --- End of ./configure -C output ---
16:20:16 --- Start of config.log ---
16:20:16 This file contains any messages produced by compilers while
16:20:16 running configure, to aid debugging if configure makes a mistake.

and still later we see clearly what the problem was in finding lightning mdb:

16:20:17 configure:14850: checking for mdb_dbi_opennope in -llmdb
16:20:17 configure:14875: gcc -o conftest -pthread     -L/var/cfengine/lib -Wl,-R/var/cfengine/lib  conftest.c -llmdb    >&5
16:20:17 /tmp/ccaylvZp.o: In function `main':
16:20:17 conftest.c:(.text+0xa): undefined reference to `mdb_dbi_opennope'
16:20:17 collect2: error: ld returned 1 exit status

It is a lot of logs but I think it is worth it. Without the bug things should be nice and quiet. I will test that now.

@craigcomstock

Copy link
Copy Markdown
Contributor Author

@cf-bottom jenkins no tests

@cf-bottom

Copy link
Copy Markdown

@craigcomstock craigcomstock changed the title Added function for autotools configure to cat config.log in case of failure ent-14916: Added function for autotools configure to cat config.log in case of failure Nov 13, 2026
@craigcomstock

Copy link
Copy Markdown
Contributor Author

last failure was due to a cache being full, retry here: Build Status (rhel-7 only)

@craigcomstock

Copy link
Copy Markdown
Contributor Author

not sure why it failed, try again: Build Status

@craigcomstock

craigcomstock commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

I think I would prefer that the LAST thing I see is the tail of configure output aka "the overview" and then if/when I need to I can dig back further UP to find the details. Build Status

…ailure

Removed $OPTS from configure script. It has been there since the initial commit but seems unused so will remove as it simplifies this script.

Ticket: ENT-14916
Changelog: none
@craigcomstock
craigcomstock marked this pull request as ready for review November 13, 2026 20:27
@craigcomstock

Copy link
Copy Markdown
Contributor Author

Not sure why, but lmdb cached package isn't being detected during configure. Build Status

@craigcomstock

Copy link
Copy Markdown
Contributor Author

build host had cached the bad lmdb cfbuild package. rebuild: Build Status

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants