• LLVM toolchain on x32? (v2)

    From =?utf-8?B?0L3QsNCx?=@21:1/5 to All on Fri May 22 14:10:02 2020
    Hi!

    I've been porting zfsutils-linux to x32, with moderate success[1]
    so far, but had wanted to also test my patches on clang, what with the potential for funny compiler-specific behaviour; thing is ‒ I haven't
    been able to get my hands on an x32 clang build.

    So far I've tried:
    * getting it from the archive, but a quick survey of packages.d.o
    revealed that llvm-toolchain-9 FTBFS[2] on x32
    (and has been that way since l-t-7);
    * building the package from source, which failed in the same exact way
    as it did on x32-do-01[3] after running for a full day on
    my underpowered machine; this proved to be another dead end,
    as debugging an arcane cmake build failure with such unusable
    iteration times is a bit out of reach for me;
    * building a clean upstream clang-10, which was partially successful,
    in that it *built*, but failed cryptically on the link step
    (I've re-tried this later in an x32 chroot on a different machine
    with 8G of RAM, and it OOMed nicely when it ran out of address space,
    not sure why it'd fail weirdly when the host has only 4G?);
    it cross-linked from amd64 but never worked when executed,
    segfaulting somewhere within the STL allocator during argument
    parsing (cf. here[4] (warning: language));
    * similarly with clang-9, but it never linked.

    And so, after three or four days, I've temporarily given up;
    however I may've missed something obvious (though a look through the
    x32-tagged bugs on b.d.o and a search of this mailing list for x32
    haven't turned anything up), so here I am in hopes someone here
    has tried this before and has arrived at some sort of conclusion,
    be it that clang/llvm simply Does Not Work on x32, or otherwise?

    Thanks in advance,
    наб

    [1]: https://github.com/openzfs/zfs/issues/844#issuecomment-629909893
    [2]: https://buildd.debian.org/status/package.php?p=llvm-toolchain-9
    [3]: https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-9&arch=x32&ver=1%3A9.0.1-12&stamp=1586606773&raw=0
    [4]: https://twitter.com/nabijaczleweli/status/1263176311356428288

    (I have sent a different version of this message to the list yesterday,
    but it has not appeared in the archive since, so I'd assumed this means
    that the list software did not like it, for some reason. If, however,
    the list /has/ accepted it but the archive has not: sorry!)

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAl7HwBMACgkQvP0LAY0m WPEHGA//evgkU6Oiw0JxXEHlJutbg9/pEKfIfN5PbRZ+tMlb747154ulHEx8FOSu RKyXebokVsNBYnbry++lRFh0xvD6K9z1PjJqGgYcmvjnOjFH036oRAgBA96gVb8Y LD3EXtVAzFW1DABxl5bMvhTvNSuZD+/XwdkPJV6enzjKOeUJCyrQ0V9WfJY4l78v tPRUm19DWLjdP7VCW7I7uzStDNimUpV0yIiHltnWUMpOeocDBYHeVzfyT/7i9Jqd +B3OtM7nTYi4utgNQ+Tpf4iWLsMuY68ZHJ91l870ofkQXcfPWYM4YwKMha3Z7isn NtYk/QqqUMUP0HEMvaWN7NLWp8okKb5O8YNgCAlzVYbEDH5iHTklC2OE4R3Vv13P M1oIjAwfF15ddYB77NeD2p6VQNVb8oB4Ky+4tQ+VAD5vtYIJ5u66dm+5tKyqZGsa eAiUHFDmm7qfCoTQQSolV2YPUcNxaKlzwhrh2g1iRiSzs7NVpBjg1m5tttedeWei +NPm2N6LYo9btFII0tbD2BwIVRLR1LRkTSTfB4rd4Nba0sNkXeoGC49ncd7Wvfua rb2XEnVH3hBPW+UnTuvTIdtYFUK7X5tkG1LOsuigmzSzCu0AWsuG3xeheLZTBAam pCJ9VimCyQmeMyTW9sXSqBfmmG9Ofwv0Jhvp3Rm9tPaQoFKby5Q=
    =EF1U
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)