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

Error: "OPENSSL_API_COMPAT expresses an impossible API compatibility level" #1767

Open
hush-mirror opened this issue Dec 12, 2024 · 0 comments

Comments

@hush-mirror
Copy link

hush-mirror commented Dec 12, 2024

I was unable to compile oxen-core software on Ubuntu 22.04.

Logs:

Determining if the function memset_s exists in the c failed with the following output:
Change Dir: /home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_84da5/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_84da5.dir/build.make CMakeFiles/cmTC_84da5.dir/build
gmake[1]: Entering directory '/home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_84da5.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=memset_s -fPIE -std=c11 -o CMakeFiles/cmTC_84da5.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.22/Modules/CheckFunctionExists.c
Linking C executable cmTC_84da5
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_84da5.dir/link.txt --verbose=1
/usr/bin/cc  -DCHECK_FUNCTION_EXISTS=memset_s CMakeFiles/cmTC_84da5.dir/CheckFunctionExists.c.o -o cmTC_84da5   -L/home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp/string.h  -Wl,-rpath,/home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp/string.h -lc 
/usr/bin/ld: CMakeFiles/cmTC_84da5.dir/CheckFunctionExists.c.o: in function `main':
CheckFunctionExists.c:(.text+0x14): undefined reference to `memset_s'
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_84da5.dir/build.make:99: cmTC_84da5] Error 1
gmake[1]: Leaving directory '/home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_84da5/fast] Error 2

Performing C++ SOURCE FILE Test HAVE_EXTINT failed with the following output:
Change Dir: /home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_5ad3c/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_5ad3c.dir/build.make CMakeFiles/cmTC_5ad3c.dir/build
gmake[1]: Entering directory '/home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_5ad3c.dir/src.cxx.o
/usr/bin/c++ -DHAVE_EXTINT  -fPIE -std=gnu++20 -o CMakeFiles/cmTC_5ad3c.dir/src.cxx.o -c /home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp/src.cxx
/home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp/src.cxx:4:32: warning: missing terminating ' character
    4 | #    error UBSAN and bitint don't work together yet, see https://github.com/llvm/llvm-project/issues/64100
      |                                ^
/home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’:
/home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp/src.cxx:9:11: error: expected type-specifier before ‘_ExtInt’
    9 |   using T=_ExtInt(512);
      |           ^~~~~~~
gmake[1]: *** [CMakeFiles/cmTC_5ad3c.dir/build.make:78: CMakeFiles/cmTC_5ad3c.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory '/home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_5ad3c/fast] Error 2

Source file was:

[#if](tg://search_hashtag?hashtag=if) defined(__has_feature)
#  if __has_feature(undefined_behavior_sanitizer)
#    error UBSAN and bitint don't work together yet, see https://github.com/llvm/llvm-project/issues/64100
#  endif
[#endif](tg://search_hashtag?hashtag=endif)

int main() {
  using T=_ExtInt(512);
  return 0;
}

Performing C++ SOURCE FILE Test THREAD_SANITIZER_AVAILABLE failed with the following compile output:
Change Dir: /home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_f5899/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_f5899.dir/build.make CMakeFiles/cmTC_f5899.dir/build
gmake[1]: Entering directory '/home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_f5899.dir/src.cxx.o
/usr/bin/c++ -DTHREAD_SANITIZER_AVAILABLE  -fsanitize=thread -fPIE -std=c++20 -o CMakeFiles/cmTC_f5899.dir/src.cxx.o -c /home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_f5899
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f5899.dir/link.txt --verbose=1
/usr/bin/c++  -fsanitize=thread CMakeFiles/cmTC_f5899.dir/src.cxx.o -o cmTC_f5899 
gmake[1]: Leaving directory '/home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp'

...and run output:
FATAL: ThreadSanitizer: unexpected memory mapping 0x57dd2e076000-0x57dd2e077000

Return value: 66
Source file was:
int main() { return 0; }
Determining if the -Wl,-z,noexecheap
linker flag is supported failed with the following output:
Change Dir: /home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_169aa/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_169aa.dir/build.make CMakeFiles/cmTC_169aa.dir/build
gmake[1]: Entering directory '/home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_169aa.dir/CheckLinkerFlag.c.o
/usr/bin/cc   -Wl,-z,noexecheap  -fPIE   -Wl,-z,noexecheap -std=c11 -o CMakeFiles/cmTC_169aa.dir/CheckLinkerFlag.c.o -c /home/ubuntu/oxen-core/cmake/CheckLinkerFlag.c
Linking C executable cmTC_169aa
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_169aa.dir/link.txt --verbose=1
/usr/bin/cc -Wl,-z,noexecheap  CMakeFiles/cmTC_169aa.dir/CheckLinkerFlag.c.o -o cmTC_169aa 
/usr/bin/ld: warning: -z noexecheap ignored
gmake[1]: Leaving directory '/home/ubuntu/oxen-core/build/CMakeFiles/CMakeTmp'

stdout after make -j 4:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant