-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to build with Fedora 26 (gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC) ) #4
Comments
I assume it should be xloc.file[0] here ? |
I am not getting this error in my build of Are you using the build script in E.g. the commands
will build a stage 1 GCC targeted at IA-16, followed by Thank you! |
I did my own build so that's why I hit it. |
You need to give the correct options to GCC's Among other things, I think you need to specify Again, I suggest checking out the |
Yeah I've built a few gcc's in my time. With the problem line tweaked I have it built and generating what looks like sane code. |
Glad to hear it. Thank you! |
g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/dpd -I../libdecnumber -I../.././gcc/../libbacktrace -o ubsan.o -MT ubsan.o -MMD -MP -MF ./.deps/ubsan.TPo ../.././gcc/ubsan.c
../.././gcc/ubsan.c: In function ‘bool ubsan_use_new_style_p(location_t)’:
../.././gcc/ubsan.c:1474:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
|| xloc.file == '\0' || xloc.file[0] == '\xff'
^~~~
make[2]: *** [Makefile:1084: ubsan.o] Error 1
The text was updated successfully, but these errors were encountered: