problem(s) with extractbb and extractbb.lua recently introduced
Bruno Voisin
bvoisin at icloud.com
Tue Jul 16 17:15:43 CEST 2024
> MaxChernoff wrote:
>
> Hi all (especially macOS users),
>
> Can you please try testing with the attached script? I'm hoping that it
> should work now, but if not, it should at least give more helpful
> output.
My setup: macOS 15 Sequoia Beta 3, MacTeX 2024, ARM processor. More precisely:
% uname -v
Darwin Kernel Version 24.0.0: Mon Jul 1 21:58:28 PDT 2024; root:xnu-11215.0.132.501.1~1/RELEASE_ARM64_T8103
First I ran the script from a test directory on my desktop, using "./extractbb.lua --version". Then I realized the output was useless, since you compare the script directory and kpathsea's output.
Here's what I get with the scripts installed in /usr/local/texlive/2024/texmf-dist/scripts/:
% extractbb --version
The ffi module is available for:
archictures : ARCH_X86 and ARCH_X64,
operating systems : OS_CE, OS_WIN, OS_LINUX, OS_BSD and OS_POSIX
The ARM processor is currently not supported. There are subtle
differences between this module and the one in luajitTeX and we hope to be in sync around TeXLive 2022.
Different OS can have different interfaces,
for instance OS_WIN has not 'complex.h'. If you want portable
code, stick to the most common concepts.
! extractbb ERROR: The script is in an incorrect location.
Technical Details:
kpse_script_path: (string) /usr/local/texlive/2024/texmf-dist/scripts/texlive/extractbb.lua
resolve_interpreter_name: (string) texlua
os_type: (string) unix
exec_interpreter_dir: (string) /usr/local/texlive/2024/bin/universal-darwin
exec_script_name: (string) extractbb
exec_script_dir: (string) /Library/TeX/texbin
resolve_script_dir: (string) /Library/TeX/texbin
exec_interpreter_name: (string) texlua
resolve_script_name: (string) extractbb
resolve_interpreter_dir: (string) /usr/local/texlive/2024/bin/universal-darwin
resolve_script_path: (string) /Library/TeX/texbin/extractbb
exec_script_path: (string) /Library/TeX/texbin/extractbb
stack traceback:
/Library/TeX/texbin/extractbb:320: in main chunk
Forcing the script to run in Intel mode through Rosetta 2 emulation, not only the ARM warning disappears, but also things change completely:
% arch -x86_64 extractbb --version
(Wrapped by extractbb.lua $Revision: $.)
This is extractbb Version 20240407
Copyright (C) 2008-2024 by Jin-Hwan Cho and Matthias Franz
This is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Better try on an actual Intel Mac, the above may be due to the way Rosetta 2 works. Unfortunately I'm away from home, on very slow ADSL (5 Mb/s). I have access to an old Intel Mac with macOS 10.15 Catalina, on which MacTeX 2024 can be installed, but it will take hours to download. I'll report as soon as that's done.
Bruno
More information about the tex-live
mailing list.