question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: command 'gcc' failed with exit status 1 - fairseq/clib/libbleu/libbleu.cpp:9:10: fatal error: 'map' file not found

See original GitHub issue

ython setup.py build develop running build running build_py running build_ext building ‘fairseq.libbleu’ extension gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/jpope/miniconda3/envs/tf/include -arch x86_64 -I/Users/jpope/miniconda3/envs/tf/include -arch x86_64 -I/Users/jpope/miniconda3/envs/tf/include/python3.7m -c fairseq/clib/libbleu/libbleu.cpp -o build/temp.macosx-10.7-x86_64-3.7/fairseq/clib/libbleu/libbleu.o -std=c++11 fairseq/clib/libbleu/libbleu.cpp:9:10: fatal error: ‘map’ file not found #include <map> ^~~~~ 1 error generated. error: command ‘gcc’ failed with exit status 1

I’m on majove / 10.14 I have xcode 10.1 beta installed with command line tools.

xcodebuild -version && xcrun --find clang --version Xcode 9.4.1 Build version 9F2000 Apple LLVM version 9.1.0 (clang-902.0.39.2) Target: x86_64-apple-darwin18.0.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

33reactions
likeucodecommented, Nov 10, 2018

For mac os Mojave for me was using export CFLAGS=‘-stdlib=libc++’ before calling python setup.py install

3reactions
tlikhomanenkocommented, Nov 7, 2018

For Linux system solution for me was using export CFLAGS='-std=c++11' before calling python setup.py build develop.

Read more comments on GitHub >

github_iconTop Results From Across the Web

command 'gcc' failed with exit status 1 while installing eventlet ...
Your install is failing because you don't have the python development headers installed. You can do this through apt on ubuntu/debian with:
Read more >
Error Command “gcc” Failed With Exit Status 1 - Linux Hint
The “Error command “gcc” failed with exit status 1” error is caused when attempting to compile Python packages and the required packages.
Read more >
error: command 'gcc' failed: no such file or directory - You.com
error : command 'gcc' failed: No such file or directory but I am capable of running gcc from command prompt (i have added...
Read more >
Resolved installation issue with Mac OSX 10.12 -- gcc/psutil
The environment was created successfully, but DLC was not installed: I received an error that psutil failed to install. In file included ...
Read more >
[C++] Clang Parsing - STL Headers - CopperSpice Forum
fatal error : 'map' file not found ... "command": "C:\\PROGRA~1\\LLVM\\bin\\clang-cl.exe /nologo -TP -IC:\\folder\\common -IC:\\folder\\util ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found