Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22055

Trying to install pytext, error due to incompatibility of g++ versions

$
0
0

I am trying to use the slot filling model pre-shipped in pytext on MacOS, it initially gave me the error that my g++ version was not compatible so, I went and installed a newer version of gcc/g++

                               !! WARNING !!

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Your compiler (g++) is not compatible with the compiler Pytorch was
    built with for this platform, which is clang++ on darwin. Please
    use clang++ to to compile your extension. Alternatively, you may
    compile PyTorch from source using g++, and then you can also use
    g++ to compile your extension.

    See https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md for help
    with compiling PyTorch from source.
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                                  !! WARNING !!

      platform=sys.platform))
    skipping 'fairseq/data/data_utils_fast.cpp' Cython extension (up-to-date)
    skipping 'fairseq/data/token_block_utils_fast.cpp' Cython extension (up-to-date)
    building 'fairseq.libbleu' extension
    creating build/temp.macosx-10.6-intel-3.6
    creating build/temp.macosx-10.6-intel-3.6/fairseq
    creating build/temp.macosx-10.6-intel-3.6/fairseq/clib
    creating build/temp.macosx-10.6-intel-3.6/fairseq/clib/libbleu
    gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -stdlib=libc++ -I/usr/local/opt/postgresql@10/include -I/Users/codhek/summ/Slot_Filling/pytext/pytext_venv/include -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c fairseq/clib/libbleu/libbleu.cpp -o build/temp.macosx-10.6-intel-3.6/fairseq/clib/libbleu/libbleu.o -stdlib=libc++ -O3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=libbleu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
    gcc: error: unrecognized command line option '-stdlib=libc++'
    gcc: error: unrecognized command line option '-stdlib=libc++'
    error: command 'gcc' failed with exit status 1

g++ version I am using :

(pytext_venv) gaganganapathyas:pytext codhek$ g++ --version
g++ (Homebrew GCC 9.2.0_3) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

clang version :

(pytext_venv) gaganganapathyas:pytext codhek$ clang --version
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

nvcc version (if required) :

(pytext_venv) gaganganapathyas:pytext codhek$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:46_CST_2017
Cuda compilation tools, release 8.0, V8.0.61

I have followed the instructions for pytext installation from here : https://pytext.readthedocs.io/en/master/installation.html

I am really at a dead end and am not able to proceed any further, any help would be really appreciated! Thanks! :D


Viewing all articles
Browse latest Browse all 22055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>