Github messages for voidlinux
 help / color / mirror / Atom feed
From: jjsullivan5196 <jjsullivan5196@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: zig: cross-compile the toolchain
Date: Mon, 21 Sep 2020 01:49:35 +0200	[thread overview]
Message-ID: <20200920234935.CuSpC7aNSE7oVDnrtwtVfMqir61dlfhOcYU3BdEFD6E@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24959@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 2055 bytes --]

New comment by jjsullivan5196 on void-packages repository

https://github.com/void-linux/void-packages/issues/24959#issuecomment-695852519

Comment:
Alright, pretty sure I have the simplest way to accomplish this. It required a small patch to zig's cmake, to force using `llvm-config` to find llvm dependencies for the target. I can fully bootstrap the compiler for aarch64 on one x86_64 machine, and the ldd output is the same (minus offsets)

now on aarch64:
```
        linux-vdso.so.1 (0x0000007f86265000)
        libLLVM-10.so => /usr/lib/libLLVM-10.so (0x0000007f81486000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x0000007f81456000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0000007f811de000)
        libm.so.6 => /usr/lib/libm.so.6 (0x0000007f81135000)
        libc.so.6 => /usr/lib/libc.so.6 (0x0000007f80fc7000)
        libffi.so.7 => /usr/lib/../lib/libffi.so.7 (0x0000007f80fae000)
        libedit.so.0 => /usr/lib/../lib/libedit.so.0 (0x0000007f80f66000)
        libz.so.1 => /usr/lib/../lib/libz.so.1 (0x0000007f80f41000)
        libdl.so.2 => /usr/lib/../lib/libdl.so.2 (0x0000007f80f2d000)
        libncursesw.so.6 => /usr/lib/../lib/libncursesw.so.6 (0x0000007f80eb0000)
        libxml2.so.2 => /usr/lib/../lib/libxml2.so.2 (0x0000007f80d40000)
        libgcc_s.so.1 => /usr/lib/../lib/libgcc_s.so.1 (0x0000007f80d1c000)
        /lib/ld-linux-aarch64.so.1 => /usr/lib/ld-linux-aarch64.so.1 (0x0000007f86237000)
        libicui18n.so.67 => /usr/lib/../lib/libicui18n.so.67 (0x0000007f80a24000)
        libicuuc.so.67 => /usr/lib/../lib/libicuuc.so.67 (0x0000007f80836000)
        libicudata.so.67 => /usr/lib/../lib/libicudata.so.67 (0x0000007f80824000)
        liblzma.so.5 => /usr/lib/../lib/liblzma.so.5 (0x0000007f807ef000)
```

Check the template+patch [here](https://github.com/jjsullivan5196/void-packages/tree/zig-cross/srcpkgs/zig), I'll also submit this against zig master. If anyone has a better way to get around the ugly heredoc in the xbps template, feel free to correct me :^)

  parent reply	other threads:[~2020-09-20 23:49 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-17 21:42 [ISSUE] zig: cross-compile support jjsullivan5196
2020-09-17 22:07 ` jjsullivan5196
2020-09-18  9:36 ` jjsullivan5196
2020-09-18  9:36 ` jjsullivan5196
2020-09-18 11:20 ` zig: cross-compile the toolchain jjsullivan5196
2020-09-18 11:21 ` jjsullivan5196
2020-09-18 11:21 ` jjsullivan5196
2020-09-18 11:35 ` jjsullivan5196
2020-09-18 18:42 ` jjsullivan5196
2020-09-18 18:43 ` jjsullivan5196
2020-09-18 20:54 ` jjsullivan5196
2020-09-18 21:10 ` q66
2020-09-18 21:46 ` andrewrk
2020-09-18 21:47 ` andrewrk
2020-09-18 22:02 ` Johnnynator
2020-09-18 22:02 ` Johnnynator
2020-09-18 22:03 ` andrewrk
2020-09-18 22:03 ` andrewrk
2020-09-18 22:03 ` jjsullivan5196
2020-09-18 22:33 ` jjsullivan5196
2020-09-18 22:34 ` andrewrk
2020-09-18 22:36 ` jjsullivan5196
2020-09-18 22:36 ` jjsullivan5196
2020-09-18 22:52 ` jjsullivan5196
2020-09-18 22:52 ` jjsullivan5196
2020-09-18 22:53 ` jjsullivan5196
2020-09-19 22:39 ` jjsullivan5196
2020-09-19 22:41 ` jjsullivan5196
2020-09-20 23:49 ` jjsullivan5196 [this message]
2021-01-21 17:44 ` ericonr
2021-01-21 17:44 ` [ISSUE] [CLOSED] " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200920234935.CuSpC7aNSE7oVDnrtwtVfMqir61dlfhOcYU3BdEFD6E@z \
    --to=jjsullivan5196@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).