On 6/29/2025 4:37 PM, Max Chernoff wrote:
Hi Nasser,
On Sun, 2025-06-29 at 06:56 -0500, Nasser M. Abbasi wrote:
I am on Linux,
cat /etc/os-release
NAME="EndeavourOS"
PRETTY_NAME="EndeavourOS"
ID="endeavouros"
ID_LIKE="arch"
Any idea why lualatex fails to compile this time?
Your system just upgraded to GCC 15 I'm guessing. This is a known issue
https://tug.org/pipermail/tlbuild/2025q2/005813.html
and will hopefully be fixed before TL26, but for now, you should be able
to fix it by setting your CFLAGS to the following:
CFLAGS=-std=gnu17
CXXFLAGS=-std=gnu++20
Thanks Max, this worked! I changed build.sh to
export CFLAGS="-std=gnu17 -D_FORTIFY_SOURCE=2 -O3"
export CXXFLAGS="-std=gnu++20 -D_FORTIFY_SOURCE=2 -O3"
And now build.sh finished with no error.
Everytime there is a new TL releases, I download lualatex
and build it from source after increasing dest_names_size
to be able to build my large latex files. Otherwise they will
not compile as the hardcoded value is small.
I don't think that there's any particular reason sup_dest_names_size to
have the value that it currently has, other than that it seemed big
enough to the LuaTeX developers at the time. And if you've been using
that increased value for a few years now without any ill effects, it
should probably be safe to change. So maybe it would be a good idea to
apply that same patch to the upstream LuaTeX? Luigi?
Thanks,
-- Max
I asked for this change more than 3 years ago
<https://www.mail-archive.com/[email protected]/msg07512.html>
But there was no response.
I am not the only one who get this error
sorry [number of destination names (dest_names_size)=131072]
I got email from others who got this error also on large documents
and used the note I wrote to fix it.
It will good to either increase this number to say 2^22 or 2^23
or better, make it configurable via texmf.cnf if possible.
For now, I keep doing this each time there is new texlive
release, to be able to compile my large files.
Thanks,
--Nasser
--Nasser