-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
can't build zstd 1.5.0 with cmake after deletion of "lib/common/zstd_trace.c" #2658
Comments
To compile with GCC-8 on IBM AIX (powerpc processor), I added this compiler option:
|
i'm on OS400 7.3 Pase Environment ( is like aix 7.2 ) with gcc6.3 e cmake 3.16 , i got : CMake Warning:
so no luck ... |
i suggest to modify lib/common/zstd_trace.h adding AIX exclude : `/* weak symbol support */ define ZSTD_HAVE_WEAK_SYMBOLS 1#else define ZSTD_HAVE_WEAK_SYMBOLS 0`#endif`` |
I suggest don't define automatically ZSTD_HAVE_WEAK_SYMBOLS on any platform |
* Only enable for ELF on x86-64 or i386. * Also explicitly disable for AIX. Fixes facebook#2658.
This commit :
6cee3c2
prevent build with cmake , missing symbol from deleted ->" lib/common/zstd_trace.c "
ld: 0711-317 ERROR: Undefined symbol: ZSTD_trace_compress_begin
ld: 0711-317 ERROR: Undefined symbol: .ZSTD_trace_compress_begin
ld: 0711-317 ERROR: Undefined symbol: ZSTD_trace_compress_end
ld: 0711-317 ERROR: Undefined symbol: .ZSTD_trace_compress_end
ld: 0711-317 ERROR: Undefined symbol: ZSTD_trace_decompress_end
ld: 0711-317 ERROR: Undefined symbol: .ZSTD_trace_decompress_end
ld: 0711-317 ERROR: Undefined symbol: ZSTD_trace_decompress_begin
ld: 0711-317 ERROR: Undefined symbol: .ZSTD_trace_decompress_begin
To Reproduce
Build with cmake
Expected behavior
correct include o missing symbol.
The text was updated successfully, but these errors were encountered: