Closed kivutar closed 7 years ago
Not sure. I haven't tested this in Arch. What version of gcc do you have?
You could try to pull my latest changes to see if that makes any difference. I kind of doubt it though since this is built in a pretty standard way.
I have gcc (GCC) 7.1.1 20170528
I still get this error with the latest master:
../../gcc-6.3.0/gcc/ubsan.c: Dans la fonction « bool ubsan_use_new_style_p(location_t) »:
../../gcc-6.3.0/gcc/ubsan.c:1474:23: error: le C++ ISO interdit la comparaison entre un pointeur et un entier [-fpermissive]
|| xloc.file == '\0' || xloc.file[0] == '\xff'
Perhaps there are issues attempting to build GCC 6.3.0 with GCC 7.1.1. The GCC documentation may be of help: https://gcc.gnu.org/install/index.html
The 7.1 release notes don't mention -fpermissive so not sure what is going on there.
Unrelated but why is Arch packaging x.x.1 releases of GCC? Those are development snapshots. https://gcc.gnu.org/develop.html
It's possible to perhaps try building the toolchain with a different GCC version. Grab the package, drop it into toolchain/files, and update the toolchain/Makefile GCC_VERSION var.
I've had to apply that patch for a couple other toolchains, too.
Hi, It happens also on Ubuntu 17.10:
danielv@ubuntu:~/gendev$ 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.
danielv@ubuntu:~/gendev$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.10
DISTRIB_CODENAME=artful
DISTRIB_DESCRIPTION="Ubuntu 17.10"
Details on message:
../../gcc-6.3.0/gcc/ubsan.c: In function ‘bool ubsan_use_new_style_p(location_t)’:
../../gcc-6.3.0/gcc/ubsan.c:1474:23: error: ISO C++ forbids comparison between pointer and integer
Best regards
Should be resolved now.
hi, It is compiling without trouble. Thank you. Too bad gcc team didn't rollout a minor-release fixing it themselves without going for 6.4.0
regards
Thanks for verifying! Apologies for the super-slow turn around on this.
I cloned master and did a sudo make.
I'm getting this error:
In the log, I can see: