Ken Moffat wrote:
On Wed, May 03, 2017 at 04:13:42PM -0500, Bruce Dubbs wrote:
There are also a huge number of warnings during the build. They are caused
by a gcc command line of -D_FORTIFY_SOURCE=1 and gcc7 does not like that if
the -O level is greater than zero.
Just to comment on that one point: I thought most distros were using
-D_FORTIFY_SOURCE now. Ah, a quick look at vim in fedora shows they
are passing -D_FORTIFY_SOURCE=2 : would that help ?
For the rest, I have no comments at the moment (except that I'm NOT
looking forward to trying to build C++ progs - I was looking at
qtwebengine in fedora last night, they seem to have about 3.5K of
patches for gcc7 for that one package although they are only
changing 3 or 4 places).
OK, I figured out a little. vim has src/Makefile that is not generated by
configure. I has a hard coded line CFLAGS=...
If that line is commented out (and the comments indicate it should be):
sed -i '/^CFLAGS/s/^/#/' src/Makefile
The build is clean. The command lines now look like:
gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=1 -DEXITFREE -o objects/regexp.o regexp.c
The key here is to have -O2 and not have -Wall.
We still have one test failure that I can override with a moderate
complexity, but one line, sed that I posted the original message.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page