Mojave Xcode libstdc++ issue when pip installing pyfasttext










0















After I have upgraded to Mojave I got a plethora of problems with Xcode. I have googled the problem that I have but everywhere the instructions are too vague to fix it. Some tell to copy the libstdc++ td files to Applications/Xcode but do not say where to find these files. Some tell to remove libstdc++ files. Some say to copy old files to new files. Some say to amend CXXFLAGS (does not work for me)... etc.



The issue that I have when trying to execute pip install pyfasttext in iTerm2 is the following:



gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -iquote . -include src/custom_exit.h -Isrc -I/anaconda3/envs/prometheus/lib/python3.6/site-packages/cysignals -I. -Isrc/variant/include -I/anaconda3/envs/prometheus/include/python3.6m -I/anaconda3/envs/prometheus/lib/python3.6/site-packages/numpy/core/include -c src/pyfasttext.cpp -o build/temp.macosx-10.7-x86_64-3.6/src/pyfasttext.o -Wno-sign-compare -std=c++0x
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]



What is an easy way to add the -std=libc++ option to gcc? Or is there a better solution?



EDIT:



Installing older command line tools partially solved the issue, until I hit a new one:
src/pyfasttext.cpp:607:10: fatal error: 'random' file not found
#include <random>



Macintosh is so much fun.










share|improve this question
























  • Because it has been removed with XCode 10: stackoverflow.com/questions/51060596/…

    – Larme
    Nov 13 '18 at 11:31











  • yeah I have read that, then why do I keep getting this problem. My version of XCode is 10.

    – i squared - Keep it Real
    Nov 13 '18 at 11:31















0















After I have upgraded to Mojave I got a plethora of problems with Xcode. I have googled the problem that I have but everywhere the instructions are too vague to fix it. Some tell to copy the libstdc++ td files to Applications/Xcode but do not say where to find these files. Some tell to remove libstdc++ files. Some say to copy old files to new files. Some say to amend CXXFLAGS (does not work for me)... etc.



The issue that I have when trying to execute pip install pyfasttext in iTerm2 is the following:



gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -iquote . -include src/custom_exit.h -Isrc -I/anaconda3/envs/prometheus/lib/python3.6/site-packages/cysignals -I. -Isrc/variant/include -I/anaconda3/envs/prometheus/include/python3.6m -I/anaconda3/envs/prometheus/lib/python3.6/site-packages/numpy/core/include -c src/pyfasttext.cpp -o build/temp.macosx-10.7-x86_64-3.6/src/pyfasttext.o -Wno-sign-compare -std=c++0x
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]



What is an easy way to add the -std=libc++ option to gcc? Or is there a better solution?



EDIT:



Installing older command line tools partially solved the issue, until I hit a new one:
src/pyfasttext.cpp:607:10: fatal error: 'random' file not found
#include <random>



Macintosh is so much fun.










share|improve this question
























  • Because it has been removed with XCode 10: stackoverflow.com/questions/51060596/…

    – Larme
    Nov 13 '18 at 11:31











  • yeah I have read that, then why do I keep getting this problem. My version of XCode is 10.

    – i squared - Keep it Real
    Nov 13 '18 at 11:31













0












0








0








After I have upgraded to Mojave I got a plethora of problems with Xcode. I have googled the problem that I have but everywhere the instructions are too vague to fix it. Some tell to copy the libstdc++ td files to Applications/Xcode but do not say where to find these files. Some tell to remove libstdc++ files. Some say to copy old files to new files. Some say to amend CXXFLAGS (does not work for me)... etc.



The issue that I have when trying to execute pip install pyfasttext in iTerm2 is the following:



gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -iquote . -include src/custom_exit.h -Isrc -I/anaconda3/envs/prometheus/lib/python3.6/site-packages/cysignals -I. -Isrc/variant/include -I/anaconda3/envs/prometheus/include/python3.6m -I/anaconda3/envs/prometheus/lib/python3.6/site-packages/numpy/core/include -c src/pyfasttext.cpp -o build/temp.macosx-10.7-x86_64-3.6/src/pyfasttext.o -Wno-sign-compare -std=c++0x
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]



What is an easy way to add the -std=libc++ option to gcc? Or is there a better solution?



EDIT:



Installing older command line tools partially solved the issue, until I hit a new one:
src/pyfasttext.cpp:607:10: fatal error: 'random' file not found
#include <random>



Macintosh is so much fun.










share|improve this question
















After I have upgraded to Mojave I got a plethora of problems with Xcode. I have googled the problem that I have but everywhere the instructions are too vague to fix it. Some tell to copy the libstdc++ td files to Applications/Xcode but do not say where to find these files. Some tell to remove libstdc++ files. Some say to copy old files to new files. Some say to amend CXXFLAGS (does not work for me)... etc.



The issue that I have when trying to execute pip install pyfasttext in iTerm2 is the following:



gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -iquote . -include src/custom_exit.h -Isrc -I/anaconda3/envs/prometheus/lib/python3.6/site-packages/cysignals -I. -Isrc/variant/include -I/anaconda3/envs/prometheus/include/python3.6m -I/anaconda3/envs/prometheus/lib/python3.6/site-packages/numpy/core/include -c src/pyfasttext.cpp -o build/temp.macosx-10.7-x86_64-3.6/src/pyfasttext.o -Wno-sign-compare -std=c++0x
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]



What is an easy way to add the -std=libc++ option to gcc? Or is there a better solution?



EDIT:



Installing older command line tools partially solved the issue, until I hit a new one:
src/pyfasttext.cpp:607:10: fatal error: 'random' file not found
#include <random>



Macintosh is so much fun.







python xcode macos gcc






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 6:35









Cœur

18.1k9108148




18.1k9108148










asked Nov 13 '18 at 11:29









i squared - Keep it Reali squared - Keep it Real

700520




700520












  • Because it has been removed with XCode 10: stackoverflow.com/questions/51060596/…

    – Larme
    Nov 13 '18 at 11:31











  • yeah I have read that, then why do I keep getting this problem. My version of XCode is 10.

    – i squared - Keep it Real
    Nov 13 '18 at 11:31

















  • Because it has been removed with XCode 10: stackoverflow.com/questions/51060596/…

    – Larme
    Nov 13 '18 at 11:31











  • yeah I have read that, then why do I keep getting this problem. My version of XCode is 10.

    – i squared - Keep it Real
    Nov 13 '18 at 11:31
















Because it has been removed with XCode 10: stackoverflow.com/questions/51060596/…

– Larme
Nov 13 '18 at 11:31





Because it has been removed with XCode 10: stackoverflow.com/questions/51060596/…

– Larme
Nov 13 '18 at 11:31













yeah I have read that, then why do I keep getting this problem. My version of XCode is 10.

– i squared - Keep it Real
Nov 13 '18 at 11:31





yeah I have read that, then why do I keep getting this problem. My version of XCode is 10.

– i squared - Keep it Real
Nov 13 '18 at 11:31












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53280067%2fmojave-xcode-libstdc-issue-when-pip-installing-pyfasttext%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53280067%2fmojave-xcode-libstdc-issue-when-pip-installing-pyfasttext%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kleinkühnau

Makov (Slowakei)

Deutsches Schauspielhaus