-
Notifications
You must be signed in to change notification settings - Fork 78
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
Compiler flags for Python bindings #13
Comments
Thank you. I'm actually well aware that -fPIC is required on some systems and that the -march=pentium4 isn't necessarily correct or useful. compile.sh way of building is meant for people who know what they are doing and can't or won't use autotools or even the make utility for some reason. Such a basic script can't reasonably be expected to compile everywhere without some tweaking, this is why things like autotools exist and thrive. Since autotools provide a way of making things work out of the box for a variety of platforms, the "alternative" scripts basically go unmaintained. However, I'm quite willing to modify these old scripts so that they would work on a wider variety of current platforms. As I understand, your proposal is to add '-fPIC' and remove '-march'. If anybody following this has comments or alternative suggestions, I'd be happy to hear (or read) them. |
I've tried building with Automake first, and while it builds the rest of the projects, it doesn't build Python bindings (at least for me). When I then tried to build the Makefile in Python directory, I've got an error that I couldn't really understand. It complained about not finding -lwgdb (which I thought it was supposed to build...) or something like that. Sorry, I'm no good with these things :) So I tried the alternative and could "make it work". I'll try it once again this evening to see what the exact problem was. |
Can you post the output of "./configure --with-python"? |
Ouch, sorry, I didn't know there was a
|
Glad that worked out for you. Will keep the issue open for now, until a decision is made about the compile.sh scripts. |
I've tried to build Python bindings (using compile.sh) and weeding through the compiler warnings and errors I figured that:
-fPIC
(otherwise it won't link wgdb.so).-march
option has an unorthodox value (and was rejected, I had to remove it). Man page for gcc says:Its current value is
pentium4
which seems to be a mistake.After I've done both, I could compile it, and the Python code using wgdb library ran (although I did no extensive testing). I'm using gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8).
The text was updated successfully, but these errors were encountered: