Can't build on UBI8/9 or UDI8 images
Found the error as part of trying to build srcbook
Not sure if it's a versioning issue in the OS or some other compatibility requirement in the version of better-sqlite or the gcc compiler.
As the build log states, the gcc used does not yet support the c++20 option.
226.6 npm error g++: error: unrecognized command line option '-std=c++20'; did you mean '-std=c++2a'?
I think a suitable version is contained within the developer / gcc toolset version 12 which would need to be installed separately and set as a default to be used.
Damn ok. I thought it'd be linked to a toolset version, just wasnt sure of the proper one. Will take a look and confirm.
Thanks!
On Tue, Apr 22, 2025 at 1:25 PM neoxpert @.***> wrote:
As the build log states, the gcc used does not yet support the c++20 option.
226.6 npm error g++: error: unrecognized command line option '-std=c++20'; did you mean '-std=c++2a'?
I think a suitable version is contained within the developer / gcc toolset version 12 which would need to be installed separately and set as a default to be used.
— Reply to this email directly, view it on GitHub https://github.com/WiseLibs/better-sqlite3/issues/1363#issuecomment-2822000068, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZAQJ6LOFYXKEYPZY24AD322Z3O5AVCNFSM6AAAAAB3UCJYGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRSGAYDAMBWHA . You are receiving this because you authored the thread.Message ID: @.***> neoxpert left a comment (WiseLibs/better-sqlite3#1363) https://github.com/WiseLibs/better-sqlite3/issues/1363#issuecomment-2822000068
As the build log states, the gcc used does not yet support the c++20 option.
226.6 npm error g++: error: unrecognized command line option '-std=c++20'; did you mean '-std=c++2a'?
I think a suitable version is contained within the developer / gcc toolset version 12 which would need to be installed separately and set as a default to be used.
— Reply to this email directly, view it on GitHub https://github.com/WiseLibs/better-sqlite3/issues/1363#issuecomment-2822000068, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZAQJ6LOFYXKEYPZY24AD322Z3O5AVCNFSM6AAAAAB3UCJYGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRSGAYDAMBWHA . You are receiving this because you authored the thread.Message ID: @.***>
-- William Karavites Chief AI/ML Cloud Architect RMS CDAO - Lockheed Martin
Cell: 732-822-9405