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

Compiler warning while building OpenSSL 3 on macOS #40421

Closed
targos opened this issue Oct 12, 2021 · 5 comments
Closed

Compiler warning while building OpenSSL 3 on macOS #40421

targos opened this issue Oct 12, 2021 · 5 comments
Labels
build Issues and PRs related to build files or the CI. macos Issues and PRs related to the macOS platform / OSX. openssl Issues and PRs related to the OpenSSL dependency.

Comments

@targos
Copy link
Member

targos commented Oct 12, 2021

[132/3702] CC obj/deps/openssl/config/archs/darwin64-arm64-cc/asm_avx2/crypto/sha/openssl.sha1-armv8.o
<built-in>:416:9: warning: 'OPENSSLDIR' macro redefined [-Wmacro-redefined]
#define OPENSSLDIR "/System/Library/OpenSSL/"
        ^
<built-in>:415:9: note: previous definition is here
#define OPENSSLDIR "/Users/targos/git/nodejs/node/$|CONFIGURATION_NAME/obj/deps/openssl"
        ^
1 warning generated.

This is printed many times.

@targos targos added build Issues and PRs related to build files or the CI. openssl Issues and PRs related to the OpenSSL dependency. labels Oct 12, 2021
@iam-frankqiu iam-frankqiu added the macos Issues and PRs related to the macOS platform / OSX. label Oct 12, 2021
@targos
Copy link
Member Author

targos commented Oct 12, 2021

@nodejs/crypto @danbev

@targos
Copy link
Member Author

targos commented Oct 12, 2021

BTW, $|CONFIGURATION_NAME looks wrong?

@mscdex
Copy link
Contributor

mscdex commented Oct 12, 2021

Looks like $|CONFIGURATION_NAME comes from gyp's ninja generator.

@mscdex
Copy link
Contributor

mscdex commented Oct 13, 2021

Seems to be happening on the OSX CI machines as well, but since make is used there we get:

20:46:03 In file included from <built-in>:363:
20:46:03 <command line>:36:9: warning: 'OPENSSLDIR' macro redefined [-Wmacro-redefined]
20:46:03 #define OPENSSLDIR "/System/Library/OpenSSL/"
20:46:03         ^
20:46:03 <command line>:35:9: note: previous definition is here
20:46:03 #define OPENSSLDIR "/Users/iojs/build/workspace/node-test-commit-osx/nodes/osx1015/out/$(BUILDTYPE)/obj.target/deps/openssl"
20:46:03         ^
20:46:03 1 warning generated.

@danbev
Copy link
Contributor

danbev commented May 9, 2022

I think this was fixed in cf7801d

I've taken a look at a recent CI build and I can't see the warning:

cc -o /Users/iojs/build/workspace/node-test-commit-osx-arm/nodes/osx11/out/Release/obj.target/openssl/deps/openssl/config/archs/darwin64-arm64-cc/asm_avx2/crypto/sha/sha1-armv8.o ../deps/openssl/config/archs/darwin64-arm64-cc/asm_avx2/crypto/sha/sha1-armv8.S '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-DNODE_OPENSSL_HAS_QUIC' '-D_DARWIN_USE_64_BIT_INODE=1' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DOPENSSL_NO_HW' '-DOPENSSL_API_COMPAT=0x10100001L' '-DSTATIC_LEGACY' '-DNDEBUG' '-DL_ENDIAN' '-DOPENSSL_BUILDING_OPENSSL' '-DECP_NISTZ256_ASM' '-DKECCAK1600_ASM' '-DOPENSSL_BN_ASM_MONT' '-DOPENSSL_CPUID_OBJ' '-DPOLY1305_ASM' '-DSHA1_ASM' '-DSHA256_ASM' '-DSHA512_ASM' '-DVPAES_ASM' '-DOPENSSL_PIC' '-DMODULESDIR="/Users/iojs/build/workspace/node-test-commit-osx-arm/nodes/osx11/out/Release/obj.target/deps/openssl/lib/openssl-modules"' '-DOPENSSLDIR="/Users/iojs/build/workspace/node-test-commit-osx-arm/nodes/osx11/out/Release/obj.target/deps/openssl"' '-DENGINESDIR="/dev/null"' -I../deps/openssl/openssl -I../deps/openssl/openssl/include -I../deps/openssl/openssl/crypto -I../deps/openssl/openssl/crypto/include -I../deps/openssl/openssl/crypto/modes -I../deps/openssl/openssl/crypto/ec/curve448 -I../deps/openssl/openssl/crypto/ec/curve448/arch_32 -I../deps/openssl/openssl/providers/common/include -I../deps/openssl/openssl/providers/implementations/include -I../deps/openssl/config -I../deps/openssl/config/archs/darwin64-arm64-cc/asm_avx2 -I../deps/openssl/config/archs/darwin64-arm64-cc/asm_avx2/include -I../deps/openssl/config/archs/darwin64-arm64-cc/asm_avx2/crypto -I../deps/openssl/config/archs/darwin64-arm64-cc/asm_avx2/crypto/include/internal -I../deps/openssl/config/archs/darwin64-arm64-cc/asm_avx2/providers/common/include  -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -MMD -MF /Users/iojs/build/workspace/node-test-commit-osx-arm/nodes/osx11/out/Release/.deps//Users/iojs/build/workspace/node-test-commit-osx-arm/nodes/osx11/out/Release/obj.target/openssl/deps/openssl/config/archs/darwin64-arm64-cc/asm_avx2/crypto/sha/sha1-armv8.o.d.raw   -c

I'm going to close this issue but if anyone is still seeing this issue please re-open and I'll take a look.

@danbev danbev closed this as completed May 9, 2022
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. openssl Issues and PRs related to the OpenSSL dependency.
Projects
None yet
Development

No branches or pull requests

4 participants