Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build on armel #473

Open
hpreusse opened this issue Oct 12, 2024 · 7 comments
Open

Fails to build on armel #473

hpreusse opened this issue Oct 12, 2024 · 7 comments

Comments

@hpreusse
Copy link

I have some issues to build the asy package on architecture armel on a Debian box. The issue happens on an official Debian sbuild builder and can be reproduced inside a chroot. The full build log is visible here. I made four attempts, but the build fails always with the same error message:

cd .. && ../asy -dir ../base -config "" -render=0 -f png -o png/ shadedtiling.asy
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2025/dev/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2024-06-01> patch level 2
L3 programming layer <2024-08-16>

(/usr/share/texlive/texmf-dist/tex/latex/tools/.tex File ignored)
! I can't find file `shadedtiling_.tex'.
<*> ...\input \nonstopmode\input shadedtiling_.tex

So the call of asy itself, does not generate the intermediate TeX file or it is deleted to early. I've created an "strace -f" of the asy call, it is attached. Sorry, I currently don't have more input.
I had the same issue on mips64el, but after repeating the build, the issue was gone. So I expect some kind of timing issue. I set the "ulimit -c" to unlimited, but no core dump was created, so asy does not crash. Let me know if anything else is needed. Many thanks!

@johncbowman
Copy link
Member

It might be a parallelization issue. Does
make all -j1
work?

@hpreusse
Copy link
Author

It might be a parallelization issue. Does make all -j1 work?

Did not try, but I can call the command as described alone and it fails. So it is not issue caused by the building process.

@johncbowman
Copy link
Member

What exactly do you mean by "command as described alone" and "it fails"?
In the top level source directory, does
./asy -dir base doc/shadedtiling
produce an error and if so please post the error message.

@johncbowman
Copy link
Member

P.S. If that succeeds, the next test to try is:
./asy -dir base doc/shadedtiling -fpng -vv

@hpreusse
Copy link
Author

hpreusse commented Oct 13, 2024

P.S. If that succeeds, the next test to try is: ./asy -dir base doc/shadedtiling -fpng -vv

Attached. Interestingly with Option -vv I get a different error than without that option. This is reproducibly.
debug_1.txt

@johncbowman
Copy link
Member

The option -vv simply enables more diagnostics.

What version of ghostscript are you using?

Please copy and paste exactly this command in the top level source directory:
./asy -dir base doc/shadedtiling -fpng -vv -k
and post the output along with the generated file shadedtiling_0.pdf

I notice that you are using an untested version of TeXLive (2025). Have you tried the current 2024 release of pdflatex?

@hpreusse
Copy link
Author

The option -vv simply enables more diagnostics.

Yes, I would expect that.

What version of ghostscript are you using?

10.04.0~dfsg-1 (this is the Debian version). Not sure, how many patches are in there.

Please copy and paste exactly this command in the top level source directory: ./asy -dir base doc/shadedtiling -fpng -vv -k and post the output along with the generated file shadedtiling_0.pdf

Done that on x86 & armel. Both files are here shadedtiling_0_armel.pdf shadedtiling_0_x86.pdf. The x86 file can be processed using pdftotext, the file from armel seems to be broken somehow:

hille@rasppi2:~/devel/misc/asymptote-2.92+ds_armel $ pdftotext -layout -nopgbrk shadedtiling_0.pdf
Syntax Error: ExtGState 'R7' is unknown
Syntax Error: ExtGState 'R16' is unknown
Syntax Warning: Bad color space 'R9'
Syntax Error (510): Bad color space (fill)

Displaying the file in a pdf viewer also does not give the expected result.

I notice that you are using an untested version of TeXLive (2025). Have you tried the current 2024 release of pdflatex?

This is the texlive-bin tar ball, which is used in TL 2024 (AFAICT). I have to say I don't have an official TL installation here, just the Debian packages I've built. I've replaced on armel the generated pdf file shadedtiling_0.pdf by the one fron x86 and the pdflatex run for shadedtiling_.tex is successful.

This sehds some light on the issue. Many thanks for your help for now! Please be so kind to keep the ticket open, set it on "wait-for-user", I'll call back. Hilmar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants