Skip to content

Compilation error when building NodeJS 22.13.0 with ASAN #57161

Open
@GoldFish2500

Description

Version

22.13.0

Platform

Ubuntu 20.04.4 running on VMWare

Subsystem

Compilation from source

What steps will reproduce the bug?

export CC=clang
export CXX=clang++
export CFLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer"
export CXXFLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer"
export LDFLAGS="-fsanitize=address,undefined"

clang version 10.0.0-4ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix

I follow the instruction at https://github.com/nodejs/node/blob/main/BUILDING.md#building-an-asan-build:

./configure --debug --enable-asan
make test-only

How often does it reproduce? Is there a required condition?

Every time

What is the expected behavior? Why is that the expected behavior?

Compilation without errors

What do you see instead?

../deps/icu-small/source/i18n/rbtz.cpp:86:15: error: use of overloaded operator '!=' is ambiguous (with operand types 'icu_76::RuleBasedTimeZone' and 'const icu_76::RuleBasedTimeZone')
if (*this != right) {
~~~~~ ^ ~~~~~
../deps/icu-small/source/i18n/unicode/rbtz.h:89:18: note: candidate function
virtual bool operator!=(const TimeZone& that) const;
^
../deps/icu-small/source/i18n/unicode/rbtz.h:79:18: note: candidate function
virtual bool operator==(const TimeZone& that) const override;
^
../deps/icu-small/source/i18n/unicode/rbtz.h:79:18: note: candidate function (with reversed parameter order)
../deps/icu-small/source/i18n/rbtz.cpp:107:23: error: use of overloaded operator '!=' is ambiguous (with operand types 'icu_76::InitialTimeZoneRule' and 'icu_76::InitialTimeZoneRule')
if (*fInitialRule != *(rbtz->fInitialRule)) {
~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
../deps/icu-small/source/i18n/unicode/tzrule.h:259:18: note: candidate function
virtual bool operator!=(const TimeZoneRule& that) const override;
^
../deps/icu-small/source/i18n/unicode/tzrule.h:250:18: note: candidate function
virtual bool operator==(const TimeZoneRule& that) const override;
^
../deps/icu-small/source/i18n/unicode/tzrule.h:250:18: note: candidate function (with reversed parameter order)
../deps/icu-small/source/i18n/rbtz.cpp:530:23: error: use of overloaded operator '!=' is ambiguous (with operand types 'icu_76::InitialTimeZoneRule' and 'icu_76::InitialTimeZoneRule')
if (*fInitialRule != *(that.fInitialRule)) {
~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
../deps/icu-small/source/i18n/unicode/tzrule.h:259:18: note: candidate function
virtual bool operator!=(const TimeZoneRule& that) const override;
^
../deps/icu-small/source/i18n/unicode/tzrule.h:250:18: note: candidate function
virtual bool operator==(const TimeZoneRule& that) const override;
^
../deps/icu-small/source/i18n/unicode/tzrule.h:250:18: note: candidate function (with reversed parameter order)
3 errors generated.
make[1]: *** [tools/icu/icutools.target.mk:606: /home/ubuntu/Desktop/Work/asan/node_22.13.0/out/Release/obj.target/icutools/deps/icu-small/source/i18n/rbtz.o] Error 1
make: *** [Makefile:135: node] Error 2

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions