Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 17th, 2012, 07:31 AM
moushakes12 moushakes12 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 6 moushakes12 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 m 16 sec
Reputation Power: 0
Error: command 'gcc' failed with exit status 1

Hello,

i am installing CVXOPT using the instructions of this site "abel.ee.ucla.edu/cvxopt/install/index.html"

When i reach "python setup.py build --compiler=mingw32" i face the following problem

C:\Python27\cvxopt-1.1.5\src>python setup.py build --compiler=mingw32
running build
running build_py
running build_ext
building 'base' extension
C:\G77\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python27\cvxopt-1.1.5\src\inc
lude -IC:\Python27\cvxopt-1.1.5\src\PC -c C/base.c -o build\temp.win32-2.7\Relea
se\c\base.o
In file included from C:\Python27\cvxopt-1.1.5\src\include\sys\types.h:21,
from C:\Python27\cvxopt-1.1.5\src\include\io.h:20,
from C:\Python27\cvxopt-1.1.5\src\include\pyconfig.h:68,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:8,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stddef.h:6: No include path in which to fin
d stddef.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\stdint.h:24,
from C:\Python27\cvxopt-1.1.5\src\include\io.h:21,
from C:\Python27\cvxopt-1.1.5\src\include\pyconfig.h:68,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:8,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stddef.h:6: No include path in which to fin
d stddef.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\stdio.h:26,
from C:\Python27\cvxopt-1.1.5\src\include\pyconfig.h:296,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:8,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stddef.h:6: No include path in which to fin
d stddef.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\stdio.h:28,
from C:\Python27\cvxopt-1.1.5\src\include\pyconfig.h:296,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:8,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stdarg.h:6: No include path in which to fin
d stdarg.h
In file included from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\Python.h:35: #error "Python.h requires that
stdio.h define NULL."
In file included from C:\Python27\cvxopt-1.1.5\src\include\string.h:24,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:38,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stddef.h:6: No include path in which to fin
d stddef.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\stdlib.h:22,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:42,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stddef.h:6: No include path in which to fin
d stddef.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\Python.h:49,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stddef.h:6: No include path in which to fin
d stddef.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\time.h:21,
from C:\Python27\cvxopt-1.1.5\src\include\pyport.h:325,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:58,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stddef.h:6: No include path in which to fin
d stddef.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\sys\stat.h:21,
from C:\Python27\cvxopt-1.1.5\src\include\pyport.h:377,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:58,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stddef.h:6: No include path in which to fin
d stddef.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\unicodeobject.h:4,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:85,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stdarg.h:6: No include path in which to fin
d stdarg.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\ctype.h:20,
from C:\Python27\cvxopt-1.1.5\src\include\unicodeobject.h:57,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:85,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stddef.h:6: No include path in which to fin
d stddef.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\wchar.h:26,
from C:\Python27\cvxopt-1.1.5\src\include\unicodeobject.h:120,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:85,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stddef.h:6: No include path in which to fin
d stddef.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\wctype.h:32,
from C:\Python27\cvxopt-1.1.5\src\include\wchar.h:45,
from C:\Python27\cvxopt-1.1.5\src\include\unicodeobject.h:120,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:85,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stddef.h:6: No include path in which to fin
d stddef.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\stringobject.h:10,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:94,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stdarg.h:6: No include path in which to fin
d stdarg.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\bytearrayobject.h:9,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:98,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stdarg.h:6: No include path in which to fin
d stdarg.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\pyerrors.h:319,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:121,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stdarg.h:6: No include path in which to fin
d stdarg.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\modsupport.h:10,
from C:\Python27\cvxopt-1.1.5\src\include\Python.h:126,
from C/base.c:24:
C:\Python27\cvxopt-1.1.5\src\include\stdarg.h:6: No include path in which to fin
d stdarg.h
In file included from C:\Python27\cvxopt-1.1.5\src\include\structmember.h:10,
from C\cvxopt.h:23,
from C/base.c:25:
C:\Python27\cvxopt-1.1.5\src\include\stddef.h:6: No include path in which to fin
d stddef.h
error: command 'gcc' failed with exit status 1


Can u please help?

Reply With Quote
  #2  
Old October 17th, 2012, 08:45 AM
b49P23TIvg's Avatar
b49P23TIvg b49P23TIvg is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Aug 2011
Posts: 3,350 b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 3 Days 7 h 38 m 45 sec
Reputation Power: 383
Your compiler cannot find for inclusion these files which should be part of the compiler distribution:

stdarg.h
stddef.h

I usually doubt the advice when told to "reinstall my xxx". Sorry. Reinstalling your mingw compiler might solve the problem.

Otherwise, you need to find the files on your computer system and somehow pass options through setup.py .

I'm certain that, were I using your computer directly, I could finish this build. It would be messy because I've never figured out setup.py.


stddef.h is in some directory. Let's call the directory

c:/Program Files/mingw/gcc/include

You need to pass the argument

-I"c:/Program Files/mingw/gcc/include"

to gcc.

stddef.h and stdarg.h are probably in the same directory.


Alternatively, you could copy those files into
C:\Python27\cvxopt-1.1.5\src\include\

and run the build command you first tried.


I expect you'll have more issues before this is finished.
__________________
[code]Code tags[/code] are essential for python code!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Error: command 'gcc' failed with exit status 1

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap