Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build degradation and warnings even with ccache and ninja #48090

Open
anonrig opened this issue May 21, 2023 · 1 comment
Open

Build degradation and warnings even with ccache and ninja #48090

anonrig opened this issue May 21, 2023 · 1 comment
Labels
build Issues and PRs related to build files or the CI. macos Issues and PRs related to the macOS platform / OSX.

Comments

@anonrig
Copy link
Member

anonrig commented May 21, 2023

I'm receiving the following warnings, as well as a significant increase in build time.

On my local machine (M1 Max, 64 mem.), it takes 27 seconds to rebuild nodejs for release and debug while using ccache and ninja. Previously it was taking around 3 seconds.

time make -j32 -B
+ exec ./configure --ninja --debug
Node.js configure: Found Python 3.11.3...
INFO: configure completed successfully
ninja -C out/Release
ninja: Entering directory `out/Release'
[3/60] ACTION icudata: icudata_cc7672230cb6f4a4cb1b079ff599d36f
generating assembly code for /Users/yagiz/Developer/node/out/Release/gen/icudt73.dat
[35/60] LIBTOOL-STATIC libv8_base_without_compiler.a, POSTBUILDS
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.allocation.o) in output file used for input files: obj/deps/v8/src/heap/cppgc/v8_base_without_compiler.allocation.o and: obj/deps/v8/src/utils/v8_base_without_compiler.allocation.o (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.factory.o) in output file used for input files: obj/tools/v8_gypfiles/gen/torque-generated/v8_base_without_compiler.factory.o and: obj/deps/v8/src/heap/v8_base_without_compiler.factory.o (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.free-list.o) in output file used for input files: obj/deps/v8/src/heap/cppgc/v8_base_without_compiler.free-list.o and: obj/deps/v8/src/heap/v8_base_without_compiler.free-list.o (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.heap.o) in output file used for input files: obj/deps/v8/src/heap/v8_base_without_compiler.heap.o and: obj/deps/v8/src/heap/cppgc/v8_base_without_compiler.heap.o (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.objects-printer.o) in output file used for input files: obj/deps/v8/src/diagnostics/v8_base_without_compiler.objects-printer.o and: obj/tools/v8_gypfiles/gen/torque-generated/v8_base_without_compiler.objects-printer.o (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.sweeper.o) in output file used for input files: obj/deps/v8/src/heap/v8_base_without_compiler.sweeper.o and: obj/deps/v8/src/heap/cppgc/v8_base_without_compiler.sweeper.o (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.testing.o) in output file used for input files: obj/deps/v8/src/heap/cppgc/v8_base_without_compiler.testing.o and: obj/deps/v8/src/sandbox/v8_base_without_compiler.testing.o (due to use of basename, truncation, blank padding or duplicate input files)
[60/60] LINK node, POSTBUILDS
if [ ! -r node ] || [ ! -L node ]; then ln -fs out/Release/node node; fi
ninja -C out/Debug
ninja: Entering directory `out/Debug'
[3/60] ACTION icudata: icudata_cc7672230cb6f4a4cb1b079ff599d36f
generating assembly code for /Users/yagiz/Developer/node/out/Debug/gen/icudt73.dat
[35/60] LIBTOOL-STATIC libv8_base_without_compiler.a, POSTBUILDS
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.allocation.o) in output file used for input files: obj/deps/v8/src/heap/cppgc/v8_base_without_compiler.allocation.o and: obj/deps/v8/src/utils/v8_base_without_compiler.allocation.o (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.factory.o) in output file used for input files: obj/tools/v8_gypfiles/gen/torque-generated/v8_base_without_compiler.factory.o and: obj/deps/v8/src/heap/v8_base_without_compiler.factory.o (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.free-list.o) in output file used for input files: obj/deps/v8/src/heap/cppgc/v8_base_without_compiler.free-list.o and: obj/deps/v8/src/heap/v8_base_without_compiler.free-list.o (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.heap.o) in output file used for input files: obj/deps/v8/src/heap/v8_base_without_compiler.heap.o and: obj/deps/v8/src/heap/cppgc/v8_base_without_compiler.heap.o (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.objects-printer.o) in output file used for input files: obj/deps/v8/src/diagnostics/v8_base_without_compiler.objects-printer.o and: obj/tools/v8_gypfiles/gen/torque-generated/v8_base_without_compiler.objects-printer.o (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.sweeper.o) in output file used for input files: obj/deps/v8/src/heap/v8_base_without_compiler.sweeper.o and: obj/deps/v8/src/heap/cppgc/v8_base_without_compiler.sweeper.o (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (v8_base_without_compiler.testing.o) in output file used for input files: obj/deps/v8/src/heap/cppgc/v8_base_without_compiler.testing.o and: obj/deps/v8/src/sandbox/v8_base_without_compiler.testing.o (due to use of basename, truncation, blank padding or duplicate input files)
[60/60] LINK node, POSTBUILDS
if [ ! -r node_g ] || [ ! -L node_g ]; then ln -fs out/Debug/node node_g; fi
make -j32 -B  27.42s user 5.80s system 117% cpu 28.303 total
@VoltrexKeyva VoltrexKeyva added the build Issues and PRs related to build files or the CI. label May 21, 2023
@tniessen tniessen added the macos Issues and PRs related to the macOS platform / OSX. label May 22, 2023
@kvakil
Copy link
Contributor

kvakil commented May 22, 2023

Hm, it still takes ~3 seconds for me:

$ sw_vers
ProductName:            macOS
ProductVersion:         13.2.1
BuildVersion:           22D68
$ uname -a
Darwin HOSTNAME 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. macos Issues and PRs related to the macOS platform / OSX.
Projects
None yet
Development

No branches or pull requests

5 participants
@anonrig @tniessen @kvakil @VoltrexKeyva and others