Open interfect opened 7 years ago
dumpversion in GCC 7.2.0 also returns 7 instead of 7.2
me@VirtualBox:~/cjdns$ gcc --version
gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0
Copyright (C) 2017 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.
me@VirtualBox:~/cjdns$ gcc -dumpversion
7
So shoud you get major & minor version from --version
but not -dumpversion
?
My build throws the following error building libuv:
It then continues on and dies because libuv didn't build.
It's because Ubuntu 17.10 (which I am cool enough to be running in August) ships GCC 7, which has a version (from
gcc -dumpversion
) of just7
(and not7.0
).gyp_uv.py
assums that thegcc -dumpversion
output will always contain a.
:version
gets unpacked into a 2-element tuple later, but GCC 7 makesversion
only have one item.