[tlbuild] Core dump with image inclusion inside LuaTeX on Sparc Solaris
John Paul Adrian Glaubitz
glaubitz at physik.fu-berlin.de
Thu Aug 15 02:02:30 CEST 2019
Hi!
On 8/14/19 1:09 PM, luigi scarso wrote:
> Has there been any progress yet regarding this bug?
>
>
> Some progress...I have now several ARM boards for testing (and a couple of days free ).
Okay, thanks. I just had a quick look and it seems your #ifdefs are not quite
correct. In ppheap, you are using special alignment conditions when __sun
is defined. But the alignment issues do not generally affect Solaris but SPARC
machines only (Solaris runs on x86 as well).
So, I think the better approach would be to test for the definition of __sparc
which is the most generic definition that's available both on Linux/SPARC as well
as Solaris/SPARC.
On Linux:
glaubitz at kyoto:~$ echo | gcc -E -dM - |grep __sparc
#define __sparc__ 1
#define __sparc 1
#define __sparc_v9__ 1
glaubitz at kyoto:~$
On Solaris:
sysadmin at deimos:/opt/solarisstudio12.3/bin$ ./suncc -xdumpmacros -E /dev/null
#define __LINE__
#define __FILE__
#define __STDC__ 0
#define __STDC_VERSION__ 199409L
#define __DATE__ "Aug 15 2019"
#define __TIME__ "00:00:34"
#define __STDC_IEC_559__ 1
#define __STDC_IEC_559_COMPLEX__ 1
#define __STDC_HOSTED__ 1
#define __SunOS_5_11 1
#define __SUNPRO_C 0x5120
#define __unix 1
#define __SVR4 1
#define __sun 1
#define __SunOS 1
#define __sparcv8 1
#define __sparc 1
#define __BUILTIN_VA_ARG_INCR 1
#define __C99FEATURES__ 1
#define __PRAGMA_REDEFINE_EXTNAME 1
#define unix 1
#define sun 1
#define sparc 1
#define __RESTRICT 1
#define __FLT_EVAL_METHOD__ 0
#define __SUN_PREFETCH 1
#define __NOVECTORSIZE__ 1
# 1 "/dev/null"
#ident "acomp: Sun C 5.12 SunOS_sparc 2011/11/16"
sysadmin at deimos:/opt/solarisstudio12.3/bin$
@Hilmar:
If you patch texk/web2c/luatexdir/luapplib/{ppconf.h,ppheap.c,util/utilarm.h} to
replace "( defined(__sun) && defined(__SVR4))" with "defined __sparc", the problem
should be fixed on Debian sparc64.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz at debian.org
`. `' Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
More information about the tlbuild
mailing list