igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] Compiler error installing python-igraph: Warnings treated as er


From: Christian Staudt
Subject: [igraph] Compiler error installing python-igraph: Warnings treated as errors
Date: Tue, 30 Sep 2014 12:10:02 +0200

Hi igraph users,

I have problems installing python-igraph via pip for Python 3. At some point the compiler fails with:

building 'igraph._igraph' extension

creating build/temp.linux-x86_64-3.4

creating build/temp.linux-x86_64-3.4/src

gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC -Iigraphcore/include -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python3.4m -c src/edgeobject.c -o build/temp.linux-x86_64-3.4/src/edgeobject.o

gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC -Iigraphcore/include -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python3.4m -c src/igraphmodule.c -o build/temp.linux-x86_64-3.4/src/igraphmodule.o

gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC -Iigraphcore/include -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python3.4m -c src/edgeseqobject.c -o build/temp.linux-x86_64-3.4/src/edgeseqobject.o

gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC -Iigraphcore/include -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python3.4m -c src/filehandle.c -o build/temp.linux-x86_64-3.4/src/filehandle.o

src/filehandle.c: In function igraphmodule_filehandle_init’:

src/filehandle.c:38:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]

cc1: some warnings being treated as errors

error: command 'gcc' failed with exit status 1

Note the "cc1: some warnings being treated as errors“ - if a warning is the cause of the failed compilation, can this be switched off?

The error is also described here:
https://stackoverflow.com/questions/26117722/compiler-error-installing-python-igraph-warnings-treated-as-errors

Can anyone help? Thank you
Christian


Institute of Theoretical Informatics - Parallel Computing Group 
Building 50.34 Room 034
Karlsruhe Institute of Technology (KIT)








Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


reply via email to

[Prev in Thread] Current Thread [Next in Thread]