Open JonathanReeve opened 7 years ago
Humm is that compiling with clang? And where dies cython come into the mix (we use cffi)
All I'm doing is running the above commands to try to install cld2-cffi using pip. I'm not running cython or any other command. I'd be happy to test compiling with clang, but I don't know how that would work, since I've never used it.
Can you send me
uname -a
gcc --version
thanks
.... Nevermind
$ for prog in python pip gcc; do $prog --version; done
Python 3.5.2
pip 9.0.1 from /usr/lib/python3.5/site-packages (python 3.5)
gcc (GCC) 6.2.1 20160830
That is a very very very new compiler, but let me see what can be done with it.
So I am thinking the best solution to this is to get round to implementing #11, then you wont have to compile
FWIW, here's uname -a
, too:
Linux jon-laptop 4.8.11-1-ARCH #1 SMP PREEMPT Sun Nov 27 09:26:14 CET 2016 x86_64 GNU/Linux
BTW, it does look like this is a compiler issue--I was able to successfully compile the cfd2-cffi with an old GCC, using sudo env CC=/usr/bin/gcc-5 pip install -U cld2-cffi
.
I am guessing that GCC 6 is more strict with narrowed strings (notice that is the error) I dont have the time to look into it right now, but I will try to figure out how to cope with gcc6.
On Tue, Dec 6, 2016, at 05:06 PM, Jonathan Reeve wrote:
BTW, it does look like this is a compiler issue--I was able to successfully compile the cfd2-cffi with an old GCC, using sudo env CC=/usr/bin/gcc- 5 pip install -U cld2-cffi. — You are receiving this because you commented. Reply to this email directly, view it on GitHub[1], or mute the thread[2].
Links:
I just ran into this error with GCC 6 also.
As a workaround I did a CFLAGS="-Wno-narrowing" pip install cld2-cffi
which allowed it to build and install. I assume there must be some way to add that compiler flag to the setup.py/build process to allow it to build for everyone (unless the flag is unrecognized / causes errors for GCC 5).
The following worked for me:
pip install --upgrade 'git+https://github.com/GregBowyer/cld2-cffi.git@d048c5fa98066bdb130f1c7e52641a0645aef5ac'
gcc (Gentoo 8.3.0-r1 p1.1) 8.3.0
I had the same installation issue. The fix in branch Fix-21 worked for me.
When I try to install cld2-cffi via
sudo pip install cld2-cffi
orpip install -U cld2-cffi
, this is what happens: