Skip to content
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

make reports a "previous declaration" error in seqlib #77

Closed
roseperrone opened this issue Aug 31, 2017 · 5 comments
Closed

make reports a "previous declaration" error in seqlib #77

roseperrone opened this issue Aug 31, 2017 · 5 comments

Comments

@roseperrone
Copy link

When I run make, I get the following error. How can I fix it?

g++ -static-libgcc -static-libstdc++ -D__cplusplus=201103L -I"./src/" -I"/usr/include/" -I"codebase/seqlib/src/libs/seqan-library-2.0.1/include" -I"codebase/seqlib/src/libs/libdivsufsort-2.0.1-64bit/" -Icodebase/seqlib/src -Icodebase/gindex/src -Icodebase/argumentparser/src -DRELEASE_VERSION -O3 -fdata-sections -ffunction-sections -c -fmessage-length=0 -ffreestanding -fopenmp -m64 -std=c++11 -Werror=return-type -pthread  -o obj_linux/codebase/seqlib/src/libs/libdivsufsort-2.0.1-64bit/utils.o codebase/seqlib/src/libs/libdivsufsort-2.0.1-64bit/utils.cpp
In file included from /usr/local/include/assert.h:5:0,
                 from codebase/seqlib/src/libs/libdivsufsort-2.0.1-64bit/divsufsort_private.h:44,
                 from codebase/seqlib/src/libs/libdivsufsort-2.0.1-64bit/utils.cpp:29:
/usr/local/include/except.h:15:32: error: conflicting declaration ‘typedef struct Except_Frame_T* Except_Frame_T’
 typedef struct Except_Frame_T *Except_Frame_T;
                                ^
/usr/local/include/except.h:15:16: error: ‘struct Except_Frame_T’ has a previous declaration as ‘struct Except_Frame_T’
 typedef struct Except_Frame_T *Except_Frame_T;
                ^
/usr/local/include/except.h:17:18: error: field ‘prev’ has incomplete type
   Except_Frame_T prev;
                  ^
make: *** [obj_linux/codebase/seqlib/src/libs/libdivsufsort-2.0.1-64bit/utils.o] Error 1
@isovic
Copy link
Owner

isovic commented Sep 2, 2017

Hi,
I haven't encountered this error before.
Could you provide a description of the system you are building this on (OS, compiler, etc.)?
Best regards,
Ivan.

@isovic
Copy link
Owner

isovic commented Sep 2, 2017

After Googling, I found this answer which suggests it's a system configuration issue:
https://groups.google.com/forum/#!topic/bedtools-discuss/CURWF19qBuA

@roseperrone
Copy link
Author

It worked, thanks!

@enormandeau
Copy link

enormandeau commented Nov 8, 2017

@roseperrone I'm facing the same issue. What worked exactly?


EDIT: The following worked for me on Linux Mint 18.2 (based on Ubuntu 16.04)

cd /usr/local/include
sudo mv assert.h assert.h.bad
sudo mv except.h except.h.bad

WARNING!: It is possible this will create other problems in the future.

@brielin
Copy link

brielin commented Dec 19, 2017

For anyone else that encounters this or a similar issue, it's possible that GMAP/GSNAP are adding those files and causing the conflict. Uninstalling GMAP/GSNAP, and trying again might solve your issue.

kharchenkolab/dropEst#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants