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
redefinition error with gcc 5.1 #11
Comments
|
Hi. You should use https://github.com/CastXML/CastXML, which replaces gccxml and works with newer compilers). |
|
I see, thanks a lot, looking forward pyplusplus' CastXML support. |
|
I'm working on updating pygccxml which is needed by pyplusplus. |
|
The issue is GCC/gcc/toplev.c defines floor_log2() if but the GCC/gcc/toplev.c is compiled with a C compiler (cc), not C++ compiler. Therefore the preprocessor condition is true and the definition will clash with another definition in GCC/gcc/toplev.h: See this GCC commit https://gcc.gnu.org/ml/gcc-patches/2009-06/msg01249.html for potential solution. |
|
I think this patch will do: |
|
Hey, I have been facing the same issue. I have tried applying the patch shared by @ppisar multiple definition of `floor_log2' I have attached the toplevel.c and toplevel.h files in which the patch has been applied. (.c and .h have been converted to txt for upload) I am working on installing pyplusplus I figure this must be a problem with the gccxml or castxml versions. Typing gccxml gives: Note: not all the gccxml options are supported. Typing castxml -- version gives: CastXML project maintained and supported by Kitware (kitware.com). Ubuntu clang version 3.7.1-1ubuntu4 (tags/RELEASE_371/final) (based on LLVM 3.7.1) My system is running 32 bit Ubuntu 16.04 please help, been stuck here since quite a while |
|
Infact using the patch given above and compiling again throws this error:: CMakeFiles/gccxml_cc1plus.dir/except.c.o: In function |
|
On Wed, Jun 15, 2016 at 04:41:37AM -0700, rohan565singh wrote:
-- Petr |
|
Hey, Thanks for the reply. But the actual error seems to be this: CMakeFiles/gccxml_cc1plus.dir/except.c.o: In function nothrow_libfn_p': except.c:(.text+0x2444): undefined reference tolibc_name_p |
|
may be this https://bugzilla.redhat.com/show_bug.cgi?id=476370 will resolve. |
|
cmake -D CMAKE_C_FLAGS=-fgnu89-inline ../gccxml |
Compiling gccxml with gcc 5.1 raises the following error:
The text was updated successfully, but these errors were encountered: