Gcc Error Unrecognized Option No-cpp-precomp
option '-no-cpp-precomp' on Mac OS X (10.4.3) From: Paul Martinolich
modified 4 years ago toolset darwin-4.7 error: unrecognized option -no-cpp-precomp Reported by: Julian Gonggrijp Owned by: vladimir_prus Milestone: To Be Determined Component: build Version: Boost 1.49.0 Severity: Problem Keywords: Cc: Description I installed gcc 4.7 from macports and added the following to my user-config.jam: using darwin : 4.7 : /opt/local/bin/g++-mp-4.7 ; Now when I run $ b2 darwin-4.7 , the build process will stop at compilation stage because of an error: g++-mp-4.7: error: unrecognized command line option '-no-cpp-precomp' -no-cpp-precomp was already unrecognized in darwin-4.4, but https://gcc.gnu.org/ml/gcc/2005-12/msg00366.html then it only caused a warning without further obstructing the build process. I don't know at what version of darwin-gcc this changed into an error. If I repeat the displayed command without the -no-cpp-precomp option it works fine. Linking also works without errors. Attachments Change History comment:1 Changed 5 years ago by danieljames I removed it from https://svn.boost.org/trac/boost/ticket/6697 trunk in [75659]. I assumed it would have been merged by now, but I think it can safely cherry-picked if that's okay. comment:2 Changed 5 years ago by stoffle+boost@… I too am having this problem (with gcc 4.6, from macports). Is there a workaround that doesn't involve modifying the boost jamfiles? comment:3 Changed 5 years ago by James Harris
SCAP-on-Apple SmartCard Services WebKit XQuartz Contact Terms of Use Privacy Policy All user-submitted https://trac.macports.org/ticket/23022 text and content on this website is licensed under a Creative Commons Attribution 2.5 License unless otherwise noted. Copyright © 2011 Apple Inc. All http://moses-support.mit.narkive.com/ShG3GXps/g-error-unrecognized-command-line-option-no-cpp-precomp rights reserved. New Ticket Tickets Wiki Browse Source Timeline Roadmap Ticket Reports gcc error Search Search: Context Navigation ← Previous TicketNext Ticket → Ticket #23022 (closed defect: fixed) Opened 7 years ago Last modified 6 years ago gccxml uses 'gcc' not ${configure.cc} Reported by: celil.rufat@… Owned by: macports-tickets@… Priority: Normal Milestone: Component: ports Version: 1.8.1 Keywords: Cc: Port: gccxml gcc error unrecognized Description (last modified by macsforever2000@…) (diff) Attempting to install gccxml on Snow Leopard results in an error: $ sudo port install gccxml ---> Computing dependencies for gccxml ---> Fetching gccxml ---> Verifying checksum(s) for gccxml ---> Extracting gccxml ---> Configuring gccxml ---> Building gccxml Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gccxml/work/build" && /usr/bin/make -j2 all " returned error 2 Command output: gcc: unrecognized option '-no-cpp-precomp' Building C object GCC/libiberty/CMakeFiles/iberty.dir/spaces.o gcc: unrecognized option '-no-cpp-precomp' [ 8%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/strerror.o gcc: unrecognized option '-no-cpp-precomp' [ 8%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/strsignal.o gcc: unrecognized option '-no-cpp-precomp' [ 8%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/ternary.o gcc: unrecognized option '-no-cpp-precomp' [ 9%] [ 9%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/xatexit.o Building C object GCC/libiberty/CMakeFiles/iberty.dir/xexit.o gcc: unrecognized option '-no-cpp-precomp' gcc: unrecognized option '-no-cpp-precomp' [ 9%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/xmalloc.o gcc: unrecognized option '-no-cpp-precomp' [ 9%] Building C object GCC/libiberty/CMakeFiles/iberty.dir
I get the following errorg++: error: unrecognized command line option '-no-cpp-precomp'Whatâs wrong? I have gcc5 and boost 1.59 on my machine via macports ...Thanks for your help!Jörg Hieu Hoang 2015-08-30 08:33:58 UTC PermalinkRaw Message Addtoolset=clangto the bjam compile command. Osx no longer has gccHieu HoangSent while bumping into thingsPost by Jorg TiedemannHi,I tried to make a fresh install of Moses on my new Mac and I get the following errorg++: error: unrecognized command line option '-no-cpp-precomp'Whatâs wrong? I have gcc5 and boost 1.59 on my machine via macports ...Thanks for your help!Jörg_______________________________________________Moses-support mailing listhttp://mailman.mit.edu/mailman/listinfo/moses-support Hieu Hoang 2015-08-31 13:19:40 UTC PermalinkRaw Message the errors for clang looks like it's coming from the stl library. Haveyou fiddled with the PATH variable or otherwise tried to make gcc on OSXwork? You shouldn't do that, it will just mess up the compilationenvironment on your machineUnfortunately, this didnât work for me either. I attach both logiles -one for clang and one for gcc (which I installed via macports)What can I do? Thanks!JörgPost by Hieu HoangAddtoolset=clangto the bjam compile command. Osx no longer has gccHieu HoangSent while bumping into thingsHi,I tried to make a fresh install of Moses on my new Mac and I getthe following errorg++: error: unrecognized command line option '-no-cpp-precomp'Whatâs wrong? I have gcc5 and boost 1.59 on my machine via macports ...Thanks for your help!Jörg_______________________________________________Moses-support mailing listhttp://mailman.mit.edu/mailman/listinfo/moses-support_______________________________________________Moses-support mailing listhttp://mailman.mit.edu/mailman/listinfo/moses-support--Hieu HoangResearcherNew York University, Abu Dhabihttp://www.hoang.co.uk/hieu Jorg Tiedemann 2015-08-31 14:14:10 UTC PermalinkRaw Message Well, I have /opt/local/ search paths in various environment variables to get macports to work.I deleted all this paths and tried again but I still get the same problem.I am confused. And why is gcc not working anymore when installed via macports? I also installed boost with macports. Is that a problem as well?I have also some pr