In the latest vim I now get a test failure and, with gcc7, a lot of build
warnings. The instructions as they are now:
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h./configure
./configure --prefix=/usr
make
make -j1 test
...
I can fix the test failure with:
sed -i '/call/{s/split/xsplit/;s/303/492/}' src/testdir/test_recover.vim
The test is supposed to fail, but doesn't so it is marked as a failed
test. The change just forces the expected failure.
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. It also complains about
inplicit-fallthrough code that is probably intentional.
I can disable these warnings with:
sed -i '/SOURCE=1/{s/1/0/;s/$/ -Wno-implicit-fallthrough/}' src/Makefile
after configure. I can't seem to figure out how to fix the
FORTIFY_SOURCE=1 structure in configure.
The question is, should we even bother with this? Also is there a better
way to fix the Makefile (e.g. configure option or CFLAGS setting) ?
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page