klayout icon indicating copy to clipboard operation
klayout copied to clipboard

klayout-0.27.3 fails to build with musl

Open akhuettel opened this issue 3 years ago • 5 comments

(Note, this is an issue that has been found via automated build testing. I'm not a musl expert and not running the CI system either...)

In an installation using the alternative libc musl, the build of klayout-0.27.3 fails with the following error (which may only be the first one):

../../src/lay/lay/laySignalHandler.cc:44:12: fatal error: execinfo.h: No such file or directory

More details including a full build log can be found on the original bug.

akhuettel avatar Feb 06 '22 00:02 akhuettel

Is there is no execinfo.h available, you can try to exclude the stack trace code with some proper #if defined(...) in laySignalHandler.cc.

klayoutmatthias avatar Feb 06 '22 22:02 klayoutmatthias

Is there is no execinfo.h available, you can try to exclude the stack trace code with some proper #if defined(...) in laySignalHandler.cc.

Makes sense. I'll try later.

Best is probably to guard execinfo.h and dependent code with #ifdef __GLIBC__ (since it's a glibc-specific extension).

akhuettel avatar Feb 26 '22 22:02 akhuettel

PS. An alternative would be to use https://github.com/ianlancetaylor/libbacktrace when glibc is not available. (I just added that to Gentoo, because this problem occurs more often, not just for klayout)

akhuettel avatar Feb 26 '22 23:02 akhuettel

Any news here? Otherwise I'd close this ticket. Matthias

klayoutmatthias avatar Dec 06 '22 23:12 klayoutmatthias

Any news here? Otherwise I'd close this ticket. Matthias

Only that in the meantime I figured out that the libbacktrace mentionend above is not a valid replacement. Feel free to close. I still have my Gentoo bug, and may poke at it if I ever need a useful occupation.

(There's to my knowledge no actual user involved here (yet), this came up during automated build testing.)

akhuettel avatar Jun 12 '23 20:06 akhuettel