Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955404 - net-print/hplip-3.25.2: configure: error: C++ compiler cannot create executables - error: invalid argument '-std=gnu17' not allowed with 'C++'
Summary: net-print/hplip-3.25.2: configure: error: C++ compiler cannot create executab...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-04 10:18 UTC by eroen
Modified: 2025-05-04 10:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
net-print:hplip-3.25.2:20250504-101125.log (net-print:hplip-3.25.2:20250504-101125.log,12.25 KB, text/x-log)
2025-05-04 10:18 UTC, eroen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2025-05-04 10:18:32 UTC
Created attachment 927585 [details]
net-print:hplip-3.25.2:20250504-101125.log

This error probably only occurs with CXX=clang++.

The -std=gnu17 flag was recently added to resolve bug 954891.


checking xargs -n works... yes
checking whether the C++ compiler works... no
configure: error: in '/var/tmp/portage/net-print/hplip-3.25.2/work/hplip-3.25.2':
configure: error: C++ compiler cannot create executables
See 'config.log' for more details

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-print/hplip-3.25.2/work/hplip-3.25.2/config.log
 * ERROR: net-print/hplip-3.25.2::gentoo failed (configure phase):
 *   econf failed
Comment 1 Larry the Git Cow gentoo-dev 2025-05-04 10:21:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e1ce2ab2c5f4cdc7cdc59d0895e75026bfed235

commit 1e1ce2ab2c5f4cdc7cdc59d0895e75026bfed235
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-05-04 10:20:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-04 10:20:47 +0000

    net-print/hplip: use append-cflags for gnu17
    
    ... as apparently hplip has some C++ too.
    
    Closes: https://bugs.gentoo.org/955404
    Bug: https://bugs.gentoo.org/954891
    Signed-off-by: Sam James <sam@gentoo.org>

 net-print/hplip/hplip-3.25.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 eroen 2025-05-04 10:27:08 UTC
Thank you Sam, that was incredibly quick, pushing a fix faster than I could upload the logs to the bug.