[ compiling pyv8 ] error: command 'gcc' failed with exit status 1 [ fedora server 27 ]
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824
Rep:
[ compiling pyv8 ] error: command 'gcc' failed with exit status 1 [ fedora server 27 ]
hello all.
i am trying to compile pyv8 but i cant because i get an error.
Code:
In file included from /home/thug/pyv8/build/v8_r19632/src/elements.h:32:0,
from /home/thug/pyv8/build/v8_r19632/src/objects-inl.h:38,
from /home/thug/pyv8/build/v8_r19632/src/v8.h:62,
from src/V8Internal.h:7,
from src/Utils.cpp:12:
/home/thug/pyv8/build/v8_r19632/src/objects.h: At global scope:
/home/thug/pyv8/build/v8_r19632/src/objects.h:6440:44: error: left operand of shift expression ‘(-1 << 3)’ is negative [-fpermissive]
static const int kElementsKindMask = (-1 << kElementsKindShift) &
~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/thug/pyv8/build/v8_r19632/src/objects.h:8631:36: error: left operand of shift expression ‘(-8 << 26)’ is negative [-fpermissive]
(~kMaxCachedArrayIndexLength << kArrayIndexHashLengthShift) |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command 'gcc' failed with exit status 1
i am following these steps :
Code:
$ git clone https://github.com/buffer/pyv8.git
$ cd pyv8
~/pyv8 $ python setup.py build # <-- here i get the error
~/pyv8 $ sudo python setup.py install
Looks like a bug in the source, possibly when that was written the compiler was less strict so it didn't trigger an error. I believe the [-fpermissive] at the end of the message indicates you can pass that flag to the compiler to turn the error into a warning. Try adding
Code:
extra_compile_args += ['-fpermissive']
to setup.py, around line 249 should probably work (though I'm not very familiar with such setup code).
-fpermissive
Downgrade some diagnostics about nonconformant code from errors to warnings. Thus, using -fpermissive will allow some nonconforming code to compile.
Last edited by ntubski; 01-30-2018 at 07:07 AM.
Reason: link to more recent gcc docs
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.