Created attachment 844553 [details] build.log Configure while using ebuild … configure does not work. "cannot run C compiled programs". The manual way, cd'ing to work and execute ./configure (with same options) works fine. Also all other packages, using emerge -e @world build fine. Somehow the configure script of ncurses is broken for portage. The last working version is: sys-libs/ncurses-6.3_p20220423 sys-libs/ncurses-6.3_p20220423-r1 The first non working version is: sys-libs/ncurses-6.3_p20220820 The latest stable version is broken, too: sys-libs/ncurses-6.3_p20221203 checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for C compiler default output... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. !!! Please attach the following file when seeking support: !!! /var/tmp/portage/sys-libs/ncurses-6.3_p20221203/work/cross/config.log * ERROR: sys-libs/ncurses-6.3_p20221203::local failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 136: Called src_configure * environment, line 2193: Called do_configure 'cross' '--without-shared' '--with-normal' '--with-progs' * environment, line 671: Called econf '--with-terminfo-dirs=/etc/terminfo:/usr/share/terminfo' '--enable-pc-files' '--with-pkg-config-libdir=/usr/lib64/pkgconfig' '--with-shared' '--without-hashed-db' '--without-ada' '--with-cxx' '--with-cxx-binding' '--with-cxx-shared' '--without-debug' '--without-profile' '--without-gpm' '--disable-term-driver' '--disable-termcap' '--enable-symlinks' '--with-rcs-ids' '--with-manpage-format=normal' '--enable-const' '--enable-colorfgbg' '--enable-hard-tabs' '--enable-echo' '--enable-warnings' '--without-assertions' '--enable-leaks' '--without-expanded' '--with-macros' '--with-progs' '--without-tests' '--without-trace' '--with-termlib' '--disable-stripping' '--disable-pkg-ldflags' '--disable-widec' '--without-pthread' '--without-reentrant' '--includedir=/usr/include/cross' '--without-shared' '--with-normal' '--with-progs' * phase-helpers.sh, line 730: Called __helpers_die 'econf failed' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=sys-libs/ncurses-6.3_p20221203::local'`, * the complete build log and the output of `emerge -pqv '=sys-libs/ncurses-6.3_p20221203::local'`. * The complete build log is located at '/var/tmp/portage/sys-libs/ncurses-6.3_p20221203/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/ncurses-6.3_p20221203/temp/environment'. * Working directory: '/var/tmp/portage/sys-libs/ncurses-6.3_p20221203/work/cross' * S: '/var/tmp/portage/sys-libs/ncurses-6.3_p20221203/work/ncurses-6.3'
Created attachment 844555 [details] config.log
Created attachment 844557 [details] emerge --info
Workaround: While using: ebuild ... prepare then cd to work/ calling: configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-terminfo-dirs=/etc/terminfo:/usr/share/terminfo --enable-pc-files --with-pkg-config-libdir=/usr/lib64/pkgconfig --with-shared --without-hashed-db --without-ada --with-cxx --with-cxx-binding --with-cxx-shared --without-debug --without-profile --without-gpm --disable-term-driver --disable-termcap --enable-symlinks --with-rcs-ids --with-manpage-format=normal --enable-const --enable-colorfgbg --enable-hard-tabs --enable-echo --enable-warnings --without-assertions --enable-leaks --without-expanded --with-macros --with-progs --without-tests --without-trace --with-termlib --disable-stripping --disable-pkg-ldflags --disable-widec --without-pthread --without-reentrant --includedir=/usr/include/cross --without-shared --with-normal --with-progs 587 ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-terminfo-dirs=/etc/terminfo:/usr/share/terminfo --enable-pc-files --with-pkg-config-libdir=/usr/lib64/pkgconfig --with-shared --without-hashed-db --without-ada --with-cxx --with-cxx-binding --with-cxx-shared --without-debug --without-profile --without-gpm --disable-term-driver --disable-termcap --enable-symlinks --with-rcs-ids --with-manpage-format=normal --enable-const --enable-colorfgbg --enable-hard-tabs --enable-echo --enable-warnings --without-assertions --enable-leaks --without-expanded --with-macros --with-progs --without-tests --without-trace --with-termlib --disable-stripping --disable-pkg-ldflags --disable-widec --without-pthread --without-reentrant --includedir=/usr/include/cross --without-shared --with-normal --with-progs directly, it's working: ** Configuration summary for NCURSES 6.3 20221203: extended funcs: yes xterm terminfo: xterm-new bin directory: /usr/bin lib directory: /usr/lib64 include directory: /usr/include/cross man directory: /usr/share/man terminfo directory: /usr/share/terminfo pkg-config directory: /usr/lib64/pkgconfig ** Include-directory is not in a standard location
Created attachment 844599 [details] make.conf
The feature set: -sandbox -usersandbox -ipc-sandbox -network-sandbox -mount-sandbox -pid-sandbox did not solve the issue.
Created attachment 844601 [details] ebuild new file format working The good news, the new file format of the ebuild is working, this indicates some later patch is causing the problem.
The ebuild with patchset 20220430 is the first non working version.
Created attachment 844603 [details] configure file of 1st broken 20220430
Created attachment 844605 [details] configure file last working version 20220423
Changes in https://github.com/ThomasDickey/ncurses-snapshots/compare/v6_3_20220423...v6_3_20220430 have nothing obvious. So it's going to depend on what the test program actually is here..
(In reply to cilly from comment #7) > The ebuild with patchset 20220430 is the first non working version. I need to re-test this, since ebuild pulled in latest patch by default.
(In reply to cilly from comment #11) > (In reply to cilly from comment #7) > > The ebuild with patchset 20220430 is the first non working version. > > I need to re-test this, since ebuild pulled in latest patch by default. I did rest, the following change is causing the error: diff ncurses-6.3_p20220423-r2.ebuild ncurses-6.3_p20220430.ebuild 58a59 > 20220430 To clarify: I used the ncurses-6.3_p20220430.ebuild which does not configure, removed the line 20220430 and renamed it to ncurses-6.3_p20220423-r2.ebuild and it configured without errors.
It seems the problem is in the ebuild with the line: LDFLAGS="${BUILD_LDFLAGS} ${lbuildflags}" \ Once the line is commented out: #LDFLAGS="${BUILD_LDFLAGS} ${lbuildflags}" \ the ebuild configures & compiles. For the record, if you do it manually, it works: ebuild ... prepare cd workdir ./configure (with all options from ebuild configure)
Same error for the new ebuild 6.4_p20230401
Created attachment 861630 [details] Working ebuild, added line lbuildflags="", reverted do compile cross
Created attachment 861632 [details, diff] this is the diff, for convenience
Created attachment 861634 [details, diff] this is the diff, for convenience diff vice versa