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

[VL] Failed to build cmake-3.29 #5912

Closed
boobpoop opened this issue May 29, 2024 · 6 comments
Closed

[VL] Failed to build cmake-3.29 #5912

boobpoop opened this issue May 29, 2024 · 6 comments
Labels

Comments

@boobpoop
Copy link

Problem description

  • gluten branch:main(1.2.0-snapshot)
  • oap velox branch: 2024_05_23
  • OS:centos7
    Since Velox merged the PR : Update cmake to version 3.28.3,executing ./build_velox.sh on centos7 has been failing. Can gluten support building cmake-3.29 on centos7?

System information

Velox System Info v0.0.2
Commit: 452c8a340e5ee29951bd57351f9e5a2564e8142b
CMake Version: 3.29.3
System: Linux-4.18.0-147.mt20200626.413.el8_1.x86_64
Arch: x86_64
C++ Compiler: /opt/rh/devtoolset-10/root/usr/bin/c++
C++ Compiler Version: 10.2.1
C Compiler: /opt/rh/devtoolset-10/root/usr/bin/cc
C Compiler Version: 10.2.1
CMake Prefix Path: /usr/local;/usr;/;/opt/cmake/cmake329;/usr/local;/usr/X11R6;/usr/pkg;/opt

CMake log

[ 42%] Built target cmcurl
[ 42%] Building C object Utilities/cmcurl/CMakeFiles/curltest.dir/curltest.c.o
[ 42%] Linking C executable curltest
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /usr/local/lib64/libcrypto.a(dso_dlfcn.o): in function `dlfcn_load':
dso_dlfcn.c:(.text+0x111): undefined reference to `dlopen'
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: dso_dlfcn.c:(.text+0x142): undefined reference to `dlerror'
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: dso_dlfcn.c:(.text+0x1f4): undefined reference to `dlclose'
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /usr/local/lib64/libcrypto.a(dso_dlfcn.o): in function `dlfcn_unload':
dso_dlfcn.c:(.text+0x2ba): undefined reference to `dlclose'
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /usr/local/lib64/libcrypto.a(dso_dlfcn.o): in function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x3b4): undefined reference to `dlsym'
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: dso_dlfcn.c:(.text+0x3e7): undefined reference to `dlerror'
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /usr/local/lib64/libcrypto.a(dso_dlfcn.o): in function `dlfcn_pathbyaddr':
dso_dlfcn.c:(.text+0x77e): undefined reference to `dladdr'
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: dso_dlfcn.c:(.text+0x7e9): undefined reference to `dlerror'
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /usr/local/lib64/libcrypto.a(dso_dlfcn.o): in function `dlfcn_globallookup':
dso_dlfcn.c:(.text+0x82c): undefined reference to `dlopen'
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: dso_dlfcn.c:(.text+0x84a): undefined reference to `dlsym'
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: dso_dlfcn.c:(.text+0x85a): undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
make[2]: *** [Utilities/cmcurl/CMakeFiles/curltest.dir/build.make:102: Utilities/cmcurl/curltest] Error 1
make[1]: *** [CMakeFiles/Makefile2:1797: Utilities/cmcurl/CMakeFiles/curltest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 42%] Linking CXX executable cmsysTestsCxx
[ 42%] Built target cmsysTestsCxx
[ 42%] Linking C static library libcmzstd.a
[ 42%] Built target cmzstd
[ 42%] Linking CXX static library libcmcppdap.a
[ 42%] Built target cmcppdap
make: *** [Makefile:166: all] Error 2
@FelixYBW
Copy link
Contributor

looks velox uses 3.28.

facebookincubator/velox#9861

@boobpoop
Copy link
Author

looks velox uses 3.28.

facebookincubator/velox#9861

Building cmake 3.28 will also fail.

@zhanglistar
Copy link
Contributor

Seems that -ldl is missing.

@boobpoop
Copy link
Author

boobpoop commented Jun 6, 2024

@kecookier

@guobj
Copy link

guobj commented Nov 27, 2024

I encountered the same problem, did you solve it? How was it solved?

@kecookier
Copy link
Contributor

I encountered the same problem, did you solve it? How was it solved?

We use static compilation to work around this problem.

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

No branches or pull requests

5 participants