Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829033 - www-client/firefox-91.4.0: firefox_build/dist/system_wrappers/new:3:15: fatal error: 'new' file not found
Summary: www-client/firefox-91.4.0: firefox_build/dist/system_wrappers/new:3:15: fatal...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-13 02:45 UTC by Felix Janda
Modified: 2022-01-06 22:46 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,7.64 KB, application/x-info)
2021-12-13 02:46 UTC, Felix Janda
Details
build.log (build.log.xz,125.99 KB, application/octet-stream)
2021-12-13 02:47 UTC, Felix Janda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Janda 2021-12-13 02:45:22 UTC
Building firefox on amd64 musl based system with rust-1.56.1::musl yields the error:

firefox_build/dist/system_wrappers/new:3:15: fatal error: 'new' file not found
#include_next <new>

Reproducible: Always
Comment 1 Felix Janda 2021-12-13 02:46:17 UTC
Created attachment 758731 [details]
emerge --info
Comment 2 Felix Janda 2021-12-13 02:47:53 UTC
Created attachment 758732 [details]
build.log
Comment 3 Felix Janda 2022-01-05 15:19:57 UTC
Doing some more digging, the problem in the failing clang command seems to be the "--target=x86_64-unknown-linux-musl", which should be "--target=x86_64-gentoo-linux-musl".
Comment 4 Felix Janda 2022-01-05 15:50:51 UTC
clang++ --target=x86_64-unknown-linux-musl test.cpp for test.cpp containing only "#include_next <new>" reproduces the error (for both clang-13.0.0 and clang-12.0.1).
Comment 5 Jory A. Pratt gentoo-dev 2022-01-05 23:20:05 UTC
enable default_libcxx will workaround your issue at the moment, we have diagnosed this several times on #gentoo-hardened.
Comment 6 Felix Janda 2022-01-06 22:46:12 UTC
Enabling default-libcxx for sys-devel/clang allowed firefox to compile, thanks.