[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Older Lua versions no longer compile under current gcc
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 7 Jan 2018 18:24:41 -0200
I've tried lua-all with gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609.
Everything worked fine, except for these:
cd lua-2.1 && make all
./lua test.lua
*** buffer overflow detected ***: ./lua terminated
cd lua-2.2 && make all
./lua test.lua
*** buffer overflow detected ***: ./lua terminated
cd lua-3.2 && make all
./lua test.lua
make[1]: *** [all] Segmentation fault (core dumped)
Using -O0 instead of -O2 fixes the first two but not the third one.
That Lua 3.2 fails to compile under gcc 4.0+ is already mentioned in
the README.
I'd appreciate if someone can track down what exactly needs to be
changed to make these versions compile and run with -O2.
Thanks.
--lhf