Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 925451

Summary: net-libs/nodejs-22.10 fails to compile with Assertion failed: !result->early_return()
Product: Gentoo Linux Reporter: Alexis Praga <alexis.praga>
Component: Current packagesAssignee: William Hubbs <williamh>
Status: RESOLVED WORKSFORME    
Severity: normal CC: alexis.praga
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log
emerge --info

Description Alexis Praga 2024-02-24 23:29:46 UTC
Created attachment 885912 [details]
Build log

Hi,

On an up-to-date Gentoo machine, nodejs fails to compile due to 

  #  /var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot[4930]: int BuildSnapshot(int, char**) at ../../tools/snapshot/node_mksnapshot.cc:69
  #  Assertion failed: !result->early_return()

Output of emerge --pqv.txt
[ebuild  N    ] net-libs/nodejs-20.11.0  USE="icu npm snapshot ssl system-icu system-ssl -corepack -debug -doc -inspector (-lto) -pax-kernel -test" CPU_FLAGS_X86="sse2" 

Build log attached.

Thanks,
Comment 1 Alexis Praga 2024-02-24 23:30:22 UTC
Created attachment 885913 [details]
emerge --info
Comment 2 Alexis Praga 2024-02-25 11:51:27 UTC
After looking into it, it was actually an incorrect OpenSSL configuration that was causing the issue. Closing the issue and sorry for the noise !
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-25 20:22:38 UTC
(In reply to Alexis Praga from comment #2)
> After looking into it, it was actually an incorrect OpenSSL configuration
> that was causing the issue. Closing the issue and sorry for the noise !

Could you elaborate?
Comment 4 Alexis Praga 2024-02-25 21:55:47 UTC
Sure. Testing the binary for nodejs complained about a badly formatted line in openssl configuration. I've been playing around with /etc/ssl/openssl.cnf so reverting the configuration file to its default version made the binary work and Gentoo package compile. Unfortunately, I don't have the "wrong" version anymore for openssl.cnf.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-25 22:02:40 UTC
(In reply to Alexis Praga from comment #4)
> Sure. Testing the binary for nodejs complained about a badly formatted line
> in openssl configuration. I've been playing around with /etc/ssl/openssl.cnf
> so reverting the configuration file to its default version made the binary
> work and Gentoo package compile. Unfortunately, I don't have the "wrong"
> version anymore for openssl.cnf.

Thank you! This sort of thing is quite helpful to know for future debugging.