-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Segmentation fault with static build #32
Comments
Hello @Kunzol https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52590#c3 Also about it here: Some workarounds are:
Regards, |
Cool, thanks !! I am not a developer (actually I am Sysadmin and need to get code of others running), thus I still have to learn more about cmake and its options. I missed to build libatopp.a with the debug symbols. After finding out how to create it with debug symbols I came the solution nearer. But without your hint, I guess I couldn't find the solution. To make it complete, here is the complete compile command I used for building it static.
I promise I will not use it in a production environment :-) |
You are welcome |
I tried to build oatpp static (need it for a test in qemu for arm) but accessing it throws a segmentation fault.
For testing I did it on Linux amd64 with g++.
I did the build according to #18 building the static liboatpp.a with cmake:
This creates the liboatpp.a in the build directory.
Now I use the oatpp-starter (in src) for testing the lib.
Which creates the static binary of the oatpp-starter as expected.
Running it works, but as soon as I try to access it, I get the sementation fault.
To find out more, I run it in gdb ...
The oatpp-starter from the same source compiled with shared libraries works as expected.
Any ideas how to solve the problem with the static compile?
The text was updated successfully, but these errors were encountered: