public inbox for gentoo-musl@lists.gentoo.org
 help / color / mirror / Atom feed
From: Lei Zhang <zhanglei.april@gmail.com>
To: Luca Barbato <lu_zero@gentoo.org>,
	soc-admins@gentoo.org, gentoo-musl@lists.gentoo.org
Subject: [gentoo-musl] Re: [GSoC] native-clang: daily report 07/01
Date: Mon, 4 Jul 2016 17:03:12 +0800	[thread overview]
Message-ID: <CAOYuCc2gw1OM411_DuJ8nxbY=uDJzjj2+eAB=8Z_-kHUDmZnKg@mail.gmail.com> (raw)
In-Reply-To: <CAOYuCc2mGeOoiFfbYNoNNGyg-DHotT8XVHO3jLYjDHNYcpcxDA@mail.gmail.com>

2016-07-01 23:42 GMT+08:00 Lei Zhang <zhanglei.april@gmail.com>:
> Plan for today:
> - write ebuild for NetBSD's crtbegin/end
> - write ebuild for libc++abi
>
> Progress:
> - write ebuild for crtbegin/end
>
> libc++abi's situation is a bit complicated. To configure it, you need
> the specify paths to libc++ and LLVM's source. libc++ has a similar
> issue: it also needs to know the path to LLVM's source. Actually
> libc++'s ebuild maintainer wrote a Makefile to circumvent its cmake
> system, which works without knowing LLVM's source path. I guess libc++
> doesn't really need LLVM's source; it's just some quirk of their cmake
> system.
>
> But I can't tell yet if libc++abi really needs libc++ or LLVM's
> source. If not, perhaps I can write a Makefile just like libc++'s;
> otherwise, maybe I need to keep LLVM's source somewhere after
> installing it.

It turns out libc++abi doesn't really need LLVM's source, but *does*
depend on libc++'s headers. I managed to write a Makefile for it to
circumvent cmake, providing libc++'s headers can be found somewhere.

The problem is: lib++ is supposed be built after libc++abi. My thought:
- if libc++ is already installed (e.g. against libcxxrt), installing
libc++abi has no impact on libc++
- otherwise, installing libc++abi also installs libc++, and libc++
will be configured against libc++abi

Or alternatively: replace libcxxrt with libc++abi in portage repo, and
always install libc++ and libc++abi together, just as clang and LLVM
do.

Which makes sense more?


Lei


  reply	other threads:[~2016-07-04  9:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-01 15:42 [gentoo-musl] [GSoC] native-clang: daily report 07/01 Lei Zhang
2016-07-04  9:03 ` Lei Zhang [this message]
     [not found]   ` <0f0d2d59-c3b6-65e0-8ab5-5acf48d3d9f6@gentoo.org>
2016-07-04 12:27     ` [gentoo-musl] " Lei Zhang

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='CAOYuCc2gw1OM411_DuJ8nxbY=uDJzjj2+eAB=8Z_-kHUDmZnKg@mail.gmail.com' \
    --to=zhanglei.april@gmail.com \
    --cc=gentoo-musl@lists.gentoo.org \
    --cc=lu_zero@gentoo.org \
    --cc=soc-admins@gentoo.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