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

How to resolve GCC syntax error when installing using pip?

$
0
0

I am trying to install pyq for Python using pip. However, it fails during the build process on the following command:

C:\FAST\anacondaforPython3.5.2\4.1.1\Scripts\gcc.bat -shared -s build\temp.win-amd64-3.5\Release\src\pyq\_k.o build\temp.win-amd64-3.5\Release\src\pyq\_k.cp35-win_amd64.def -Lc:\fast\anacondaforpython3.5.2\4.1.1\libs -Lc:\fast\anacondaforpython3.5.2\4.1.1\PCbuild\amd64 -lpython35 -lvcruntime140 -o build\lib.win-amd64-3.5\pyq\_k.cp35-win_amd64.pyd src\pyq\kx\w32\q.lib

which leads to the following syntax error:

c:/fast/anacondaforpython3.5.2/4.1.1/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: build\temp.win-amd64-3.5\Release\src\pyq\_k.cp35-win_amd64.def:1: syntax error
c:/fast/anacondaforpython3.5.2/4.1.1/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe:build\temp.win-amd64-3.5\Release\src\pyq\_k.cp35-win_amd64.def: file format not recognized; treating as linker script
c:/fast/anacondaforpython3.5.2/4.1.1/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe:build\temp.win-amd64-3.5\Release\src\pyq\_k.cp35-win_amd64.def:1: syntax error
collect2.exe: error: ld returned 1 exit status
error: command 'C:\\FAST\\anacondaforPython3.5.2\\4.1.1\\Scripts\\gcc.bat' failed with exit status 1

I'm at a loss at how to resolve this.

For a start, where can I find the offending file build\temp.win-amd64-3.5\Release\src\pyq\_k.cp35-win_amd64.def? I've searched all over my C:\ drive and cannot find this file.

Does anyone have any ideas how to debug this?

I'm using GCC 4.7 with Windows 10.


Viewing all articles
Browse latest Browse all 22032

Trending Articles



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