c0mm4nd / GxMiner

GxMiner is a highly optimized miner for random-x series algorithm
23 stars 12 forks source link

Build the static hwloc lib help me #8

Open JieSinTime opened 2 years ago

JieSinTime commented 2 years ago

[ 85%] Building CXX object CMakeFiles/randomx-codegen.dir/src/tests/code-generator.cpp.o [ 85%] Building CXX object CMakeFiles/randomx-benchmark.dir/src/tests/benchmark.cpp.o [ 88%] Linking CXX executable randomx-codegen [ 88%] Built target randomx-codegen Scanning dependencies of target randomx-tests [ 91%] Building CXX object CMakeFiles/randomx-tests.dir/src/tests/tests.cpp.o [ 94%] Building CXX object CMakeFiles/randomx-benchmark.dir/src/tests/affinity.cpp.o [ 97%] Linking CXX executable randomx-benchmark [ 97%] Built target randomx-benchmark [100%] Linking CXX executable randomx-tests [100%] Built target randomx-tests github.com/maoxs2/gxminer/go-hwloc

github.com/maoxs2/gxminer/go-hwloc

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libhwloc.a(topology-linux.o): in function hwloc_linux_component_instantiate': (.text+0x8a1): undefined reference toudev_new' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libhwloc.a(topology-linux.o): in function hwloc_linux_backend_disable': (.text+0x8eb): undefined reference toudev_unref' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libhwloc.a(topology-linux.o): in function hwloc_linuxfs_block_class_fillinfos.isra.0': (.text+0x5185): undefined reference toudev_device_new_from_subsystem_sysname' /usr/bin/ld: (.text+0x51a5): undefined reference to udev_device_get_property_value' /usr/bin/ld: (.text+0x51ce): undefined reference toudev_device_get_property_value' /usr/bin/ld: (.text+0x51fc): undefined reference to udev_device_get_property_value' /usr/bin/ld: (.text+0x522d): undefined reference toudev_device_get_property_value' /usr/bin/ld: (.text+0x5266): undefined reference to udev_device_get_property_value' /usr/bin/ld: (.text+0x528b): undefined reference toudev_device_unref' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libhwloc.a(components.o): in function hwloc__dlforeach_cb': (.text+0xa4): undefined reference tolt_dlopenext' /usr/bin/ld: (.text+0x12e): undefined reference to lt_dlsym' /usr/bin/ld: (.text+0x15a): undefined reference tolt_dlclose' /usr/bin/ld: (.text+0x19f): undefined reference to lt_dlerror' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libhwloc.a(components.o): in functionhwloc_plugins_exit': (.text+0x48c): undefined reference to lt_dlclose' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libhwloc.a(components.o): in functionhwloc_components_init': (.text+0xbe8): undefined reference to lt_dlinit' /usr/bin/ld: (.text+0xc33): undefined reference tolt_dlforeachfile' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libhwloc.a(components.o): in function hwloc_plugins_exit': (.text+0x4c1): undefined reference tolt_dlexit' collect2: error: ld returned 1 exit status @C0MM4ND

c0mm4nd commented 2 years ago

seems lacking libudev and libltdl