Os X Cc1 Error Unrecognized Command Line Option - Wno-long-double
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Mac OSX : python packages failed to build because of gcc issues up vote 1 down vote favorite I am trying to install MySQL-python package with the following error: cc1: error: unrecognized command line option "-arch" cc1: error: unrecognized command line option "-Wno-long-double" error: Setup script exited with error: command 'gcc' failed with exit status 1 I am using Mac OSX version 10.6.8 with gcc bash-3.2$ gcc --version gcc (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) How can I resolve the this issue? thanks python osx mysql-python share|improve this question asked Sep 27 '11 at 16:22 daydreamer 19.5k71246422 What version of Python? -arch might mean mysql-python is trying to compile into i386 or x86_64, and whichever one it is, your Python doesn't like it. –Cody Hess Sep 27 '11 at 17:42 Python 2.5 is installed –daydreamer Sep 27 '11 at 17:49 1 The error has nothing to do with Python directly. The error is coming from gcc. -arch is an Apple extension to gcc found only in the Apple-supplied gcc's shipped in Xcode. –Ned Deily Sep 27 '11 at 17:52 This issue has been resolved, I have added my answer to this. Thanks Ned and Cody –daydreamer Sep 27 '11 at 17:55 add a comment| 3 Answers 3 active oldest votes up vote 5 down vote accepted I restored the gcc that comes with Mac and that removed the first error which is cc1: error: unrecognized command line option "-arch" for the second one, I removed the option from /Library/Frameworks/Python.framework/Versions/Current/lib/python2.5/config/Makefile from BASECFLAGS and added the following to my ~/.bashrc export
a GitHub account Sign in Create a gist now Instantly share code, notes, and snippets. Star 0 Fork 0 guitorri/gist:4085666 Created Nov 16, 2012 Embed What would you like to do? Embed Embed this gist in your website. Embed Share Copy sharable URL for this gist. Share Clone via http://stackoverflow.com/questions/7572429/mac-osx-python-packages-failed-to-build-because-of-gcc-issues HTTPS Clone with Git or checkout with SVN using the repository's web address. HTTPS Learn more about clone URLs Download ZIP Code Revisions 1 gcc-4.2 doens't know "-Wno-long-double" Raw gistfile1.txt homebrew-science/34483559fe23ef0dafc564f32768cbfee55cffba/lp_solve.rb -o /Users/guilherme/Library/Caches/Homebrew/Formula/lp_solve.rb ######################################################################## 100.0% ==> Downloading http://downloads.sourceforge.net/lpsolve/lp_solve_5.5.2.0_source.tar.gz /usr/bin/curl -f#LA Homebrew 0.9.3 https://gist.github.com/guitorri/4085666 (Ruby 1.8.7-358; Mac OS X 10.6.8) http://downloads.sourceforge.net/lpsolve/lp_solve_5.5.2.0_source.tar.gz -o /Users/guilherme/Library/Caches/Homebrew/lp_solve-5.5.2.0.tar.gz ######################################################################## 100.0% /usr/bin/tar xf /Users/guilherme/Library/Caches/Homebrew/lp_solve-5.5.2.0.tar.gz ==> sh ccc.osx # lpsolve55 library sh ccc.osx # lpsolve55 library cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" cc1:
error on Mac OS X 10.6.4 Snow http://www.uwosh.edu/ploneprojects/docs/how-tos/buildout-error-on-mac-os-x-10.6-snow-leopard Leopard cc1: error: unrecognized command line option "-Wno-long-double" When building the bootstrap buildout of Plone 3.2.3 from https://svn.it.uwosh.edu/trac/browser/buildouts/ploneedu/plone-3.2.3 (Trac browser view) or http://www.dreamincode.net/forums/topic/337788-unrecognized-command-line-option-wno-long-double/ https://svn.it.uwosh.edu/svn/plone/buildouts/ploneedu/plone-3.2.3 (svn repo) on Mac OS X 10.6.4 (Snow Leopard) I got this error: creating build/temp.macosx-10.3-i386-2.4/AccessControl /usr/bin/gcc -I/Users/kim/Plone-3.3.4/Python-2.4/include -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd os x -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -IExtensionClass -I. -IAcquisition -I/Users/kim/Plone-3.3.4/Python-2.4/include/python2.4 -c AccessControl/cAccessControl.c -o build/temp.macosx-10.3-i386-2.4/AccessControl/cAccessControl.o cc1: error: unrecognized command line option "-Wno-long-double" error: command '/usr/bin/gcc' failed with exit status 1 While: Installing zope2. An internal error occured due to a bug in either zc.buildout os x cc1 or in a recipe being used: Traceback (most recent call last): File "/Users/kim/src/plone/buildouts/ploneedu/plone-3.2.3/eggs/zc.buildout-1.1.2-py2.4.egg/zc/buildout/buildout.py", line 1509, in main getattr(buildout, command)(args) File "/Users/kim/src/plone/buildouts/ploneedu/plone-3.2.3/eggs/zc.buildout-1.1.2-py2.4.egg/zc/buildout/buildout.py", line 473, in install installed_files = self[part]._call(recipe.install) File "/Users/kim/src/plone/buildouts/ploneedu/plone-3.2.3/eggs/zc.buildout-1.1.2-py2.4.egg/zc/buildout/buildout.py", line 1091, in _call return f() File "/Users/kim/src/plone/buildouts/ploneedu/plone-3.2.3/eggs/plone.recipe.zope2install-3.0-py2.4.egg/plone/recipe/zope2install/__init__.py", line 225, in install 'build_ext', '-i', AssertionError The way I got around this is that after reading that maybe this is a gcc version issue, I did a "which gcc" and found that in /usr/bin there is a gcc symlink to gcc-4.2 but there is also a gcc-4.0. I did an "rm gcc" then "ln -s gcc-4.0 gcc" so that the next time buildout invoked gcc it would really run gcc 4.0, not 4.2. This worked. cpe-24-208-79-251:plone-3.2.3 kim$ which gcc /usr/bin/gcc cpe-24-208-79-251:plone-3.2.3 kim$ pushd /usr/bin /usr/bin ~/src/plone/buildout
1 of 1 New Topic/Question Reply 2 Replies - 785 Views - Last Post: 07 January 2014 - 06:45 AM Rate Topic: #1 guilherme_maranhao New D.I.C Head Reputation: 0 Posts: 1 Joined: 06-January 14 Unrecognized command line option "-Wno-long-double" Posted 06 January 2014 - 04:08 PM Hi, I am trying to install the middleware OpenDDS, which is based on C++, on my MAC OS X 10.7.5 and I've encountered the error below while making ACE library: The line executed is: g++ -Wall -Wpointer-arith -Wno-long-double -g -pipe -pipe -DACE_HAS_CUSTOM_EXPORT_MACROS=0 -I/Applications/DropBox/Dropbox/mestrado/Dissertacao/Projeto/tecnologias/DDS/OpenDDS/ACE_wrappers -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I.. -DACE_BUILD_DLL -c -o .shobj/Local_Name_Space.o Local_Name_Space.cpp and the error is cc1plus: error: unrecognized command line option "-Wno-long-double" Do you know if it has anything to do with my gcc version, which is 4.2.1? I've read in a blog it could be related to earlier versions. Where can I disable the no-long-double option? Any help? Best regards, Guilherme Is This A Good Question/Topic? 0 Back to top MultiQuote Quote + Reply Replies To: Unrecognized command line option "-Wno-long-double" #2 Skydiver Code herder Reputation: 5159 Posts: 17,125 Joined: 05-May 12 Re: Unrecognized command line option "-Wno-long-double" Posted 06 January 2014 - 09:49 PM Ummm... edit the makefile. Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #3 jimblumberg Reputation: 5008 Posts: 15,670 Joined: 25-December 09 Re: Unrecognized command line option "-Wno-long-double" Posted 07 January 2014 - 06:45 AM Ummm... Update your compiler? That version of the gcc compiler is quite old, the current version of the compiler is 4.8.X. Jim Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply ← Previous Topic C and C++ Next Topic → Page 1 of 1 Related C++ TopicsbetaCalculate From Command Line - Takes Operands And Operators From Command Line Vista Directory Permissions-access Denied Message At Cmd Line Compile C++ Compiling Error - Simply Won't Compile Help Reading From Command-line, Sorting, Then Outputting To STDOUT - Sorting I