-
Notifications
You must be signed in to change notification settings - Fork 31
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
Compile failure, possibly glibc related. #55
Comments
The game automatically uses bundled library version if the library (package) is not installed in OS. Because Linux (unlike Windows) is so scattered, the bundled libraries can be sometimes incompatible with OS and other libraries. You have to install system package for |
odd thing is, even after installing that it still is failing. Perhaps my version is too old? I wonder what libopenmpt version I need. |
libopenmpt version usually doesn't matter, because the game uses only old API which is in any version. |
Ahh okay. Well its version 0.5.12 supposedly of libopenmpt CMAKE version is 3.15 if that helps. More info from log: Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Run Build Command(s):/usr/bin/make -f Makefile cmTC_d654f/fast && /usr/bin/make -f CMakeFiles/cmTC_d654f.dir/build.make CMakeFiles/cmTC_d654f.dir/build Source file was: static void* test_func(void* data) int main(void) return 0; Determining if the function pthread_create exists in the pthreads failed with the following output: Run Build Command(s):/usr/bin/make -f Makefile cmTC_07661/fast && /usr/bin/make -f CMakeFiles/cmTC_07661.dir/build.make CMakeFiles/cmTC_07661.dir/build |
I meant the CMake output usually written to terminal, it should look like this:
And |
I'll rebuild it just to be safe. Maybe doing cmake again will fix it if I do ir from scratch. |
output.txt |
No, this is build output, but CMake has another output. You should see the same as I shown you 2 messages above. |
Oh sorry, I am a bit confused which file? OH... I get it now my bad. |
cmakeerror.txt Or possibly this? -- Compiling for architecture: x86_64 |
Yes, the last one, but it's too short. Try to delete everything, redownload it and rerun it, so everything is recreated. |
-- The CXX compiler identification is GNU 8.4.0 |
It looks fine. It doesn't build now? |
Yeah... I dunno why. |
I have the dependencies here: https://aur.archlinux.org/packaes/jazz2-bin Also, but I wondered if there are any hidden ones I am unaware of EDIT: No it was 2.1 the last version I used. I wonder... maybe I should try building from older snapshots see what the newest one that works is. Btw, I think I remember how to backtrack to a specific commit, but I am not sure if I remember. just a heads up. |
EDIT again, this is a mystery to me, I don't know what I did. I thought I backtracked it to 2.6, but when I look closer, I had tried to push it back to 2.5 with a98af96 But when I look closer, it says r663*c697586 when I boot jazz2 up and the menu appears. |
I did so many changes between 2.5.0 and master, so it's hard to tell what's different and why it doesn't work for you now. Probably the only way is to find last working commit. |
Added |
I am erasing what I originally wrote, because I realize that my error is a prefix one. I think that is what keeps getting in my way. I want to be able to change prefix to /usr but when I try using cmake commands it very obnoxiously ignores it mostly. Not sure why, but anywho, you have done fine. |
Why do you want to changed the prefix? You should be able to configure and build it like this:
|
I change the prefix more because that's usually how I do it in Hyperbola. /usr is where stuff goes not /ust/local That's how I have been doing it more than anything. So you are saying I need to do this in cmake and make for it to work though? Is this correct? |
Yeah, I don't know anything about Hyperbola, but the game builds just fine in Fedora and Ubuntu. |
Closing due to inactivity. Feel free to re-open if needed. |
Jazz² Resurrection version
2.6.1
System information
Linux Hyperbola 0.4.4 Intel® HD Graphics 4000
Issue description
After the make part, it fails at 100% like the below:
/usr/bin/ld: _deps/ncine_libraries-src/Linux/x86_64/libopenmpt.so: undefined reference to
std::__throw_bad_array_new_length()@GLIBCXX_3.4.29' /usr/bin/ld: _deps/ncine_libraries-src/Linux/x86_64/libopenmpt.so: undefined reference to
__libc_single_threaded@GLIBC_2.32'/usr/bin/ld: _deps/ncine_libraries-src/Linux/x86_64/libopenmpt.so: undefined reference to
std::to_chars(char*, char*, double)@GLIBCXX_3.4.29' /usr/bin/ld: _deps/ncine_libraries-src/Linux/x86_64/libopenmpt.so: undefined reference to
std::__glibcxx_assert_fail(char const*, int, char const*, char const*)@GLIBCXX_3.4.30'collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/jazz2.dir/build.make:4688: jazz2] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/jazz2.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Steps to reproduce
attempted compiling after,
mkdir build in the main folder, cd build, cmake .. CMAKE_SYSTEM_PREFIX_PATH=/usr
then make
at 100% it fails for some reason. No idea why. Maybe glibc related? Sorry, would build from earlier release probably but you have no archives.
I will say, I look forward to online mode.
The text was updated successfully, but these errors were encountered: