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

CMake build does not install realm_gex_wrapper_objs #1762

Open
elliottslaughter opened this issue Sep 18, 2024 · 1 comment
Open

CMake build does not install realm_gex_wrapper_objs #1762

elliottslaughter opened this issue Sep 18, 2024 · 1 comment
Assignees
Labels
Realm Issues pertaining to Realm
Milestone

Comments

@elliottslaughter
Copy link
Contributor

elliottslaughter commented Sep 18, 2024

Building any application against a Legion installation built with CMake fails to link because realm_gex_wrapper_objs is missing.

To reproduce (I'm running this on Sapling, though any machine with Infiniband should work):

git clone [email protected]:StanfordLegion/legion.git legion-build-test
cd legion-build-test
mkdir build
cd build
cmake .. -DLegion_NETWORKS=gasnetex -DLegion_EMBED_GASNet=ON -DGASNet_CONDUIT=ibv -DCMAKE_INSTALL_PREFIX=$PWD/../install
make install -j20
cd ../examples/circuit
mkdir build
cd build
CMAKE_PREFIX_PATH=$PWD/../../../install cmake .. -DCMAKE_CXX_STANDARD=17
make -j20

Results in:

[100%] Linking CXX executable circuit
/usr/bin/ld: cannot find -lrealm_gex_wrapper_objs

Verbose output:

[ 20%] Linking CXX executable circuit
/usr/local/cmake-3.26.3/bin/cmake -E cmake_link_script CMakeFiles/circuit.dir/link.txt --verbose=1
/usr/bin/c++ -Wl,--export-dynamic -rdynamic CMakeFiles/circuit.dir/circuit.cc.o CMakeFiles/circuit.dir/circuit_cpu.cc.o CMakeFiles/circuit.dir/circuit_init.cc.o CMakeFiles/circuit.dir/circuit_mapper.cc.o -o circuit  /scratch/eslaught/legion-build-test/install/lib/liblegion.a /scratch/eslaught/legion-build-test/install/lib/librealm.a -ldl -lpthread -lrt -lrealm_gex_wrapper_objs /usr/lib/x86_64-linux-gnu/libz.so -latomic 
/usr/bin/ld: cannot find -lrealm_gex_wrapper_objs
collect2: error: ld returned 1 exit status

Contents of install/lib:

$ ls lib/
liblegion.a  librealm.a
@muraj
Copy link

muraj commented Sep 19, 2024

Hmm... realm_gex_wrapper_objs is an object library, it shouldn't be added to the linker line... Taking a look.

@muraj muraj self-assigned this Sep 20, 2024
@muraj muraj added the Realm Issues pertaining to Realm label Sep 20, 2024
@muraj muraj added this to the 24.09 milestone Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Realm Issues pertaining to Realm
Projects
None yet
Development

No branches or pull requests

2 participants