From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12572 Path: news.gmane.org!.POSTED!not-for-mail From: EJ Newsgroups: gmane.linux.lib.musl.general Subject: Re: Generating headers for a specific target Date: Thu, 1 Mar 2018 22:12:26 +0100 Message-ID: <2BD9F715-9AF2-4E4B-A923-2D9C1DB2C207@gmail.com> References: <4A4C5FE4-F3DF-4A19-9D9B-EC7452756F10@gmail.com> <20180301205926.GX1436@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1519938645 29723 195.159.176.226 (1 Mar 2018 21:10:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2018 21:10:45 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-12588-gllmg-musl=m.gmane.org@lists.openwall.com Thu Mar 01 22:10:41 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1erVTL-00073R-JH for gllmg-musl@m.gmane.org; Thu, 01 Mar 2018 22:10:39 +0100 Original-Received: (qmail 12200 invoked by uid 550); 1 Mar 2018 21:12:40 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 12180 invoked from network); 1 Mar 2018 21:12:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=upAHdgKCHzViaYVUTyBtIDfbU1fte98EUUu97KrFRNI=; b=eB5UEZVyWMSF1nEoexXTGGnbnbnALInCRI/kDiE/ivxsTpRx1/fh2htYSTJahtnQ/5 PivaN5XE7ZnpuWpqc854DR2rPsTfU+q8b477ZWj7+nsDUpOwm+tXJ21Bynr33BxHs0z8 qXlMC/XWzDWPAgw3NKl/gGKIIweB/BMQcNP7U7LYoFwH5czecuVyJRlbZJEE8te8oWkg E8VqaRGuXfxXFMwb8LYNuRlUpSbv+ugi0PiMMJB8sxGJKfZC1+r4L1UBSI1/TqQxJv4s zzeKbSvEuO2QRUKVmRbKmaaW8bvP7LNiVe3p7WrIwxjaudczpOjc1bp7o4ZVCl7w/A8R Db2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=upAHdgKCHzViaYVUTyBtIDfbU1fte98EUUu97KrFRNI=; b=JMzVW97UZC58oSnf+/Q29i0E5yGD9rQNitA+pxiZzCvN5Wj/vKbzOsZHcIdrlBbEmT W1MsAvHLgGsI3FMGyov5olzNxDsoh0Tiu7ZpQWh5n/XhyER/SAM8Ex8ADUkrAhgCxT7v 8EYu6KqktHcCkPFMEaFJgHiMVo152xsQpUwa2eNYEnlGnLkOfd8Mxd5Ilp+v0KCOX+qL TX+bMltaYIZ4uRLAzGwRNV708+DCO7lC9jmqiu5hjJfPn1R3bblaosm5b/Dr/yaLPWqu ZepSk3vqlz+ISW8dxrO7aSSlv3E8JC7SHA9qznES/bUWjOSNQK5p0ejWAqpz80lz/2gs KonA== X-Gm-Message-State: APf1xPAfrrU8yYIEtjGOLjcJH2pJ+ri1QdKJ/CC0MloMKsaFH///nGcj h+bm5mSdo2WHwHNLmVL5YzCXpLxR X-Google-Smtp-Source: AG47ELsNHzOL3SYf8F7ZkcL1sfo5C8GLWYRyIlAkwUI2loNZVwORZqKWL4YKLWaJHAcuKQPLtO0GDQ== X-Received: by 10.80.241.154 with SMTP id x26mr4508473edl.59.1519938748474; Thu, 01 Mar 2018 13:12:28 -0800 (PST) In-Reply-To: <20180301205926.GX1436@brightrain.aerifal.cx> X-Mailer: Apple Mail (2.3445.5.20) Xref: news.gmane.org gmane.linux.lib.musl.general:12572 Archived-At: Hi Rich, > On 1 Mar 2018, at 21:59, Rich Felker wrote: >=20 > On Thu, Mar 01, 2018 at 09:49:42PM +0100, EJ wrote: >> Hello, >>=20 >> Is there a way to generate the headers for a specific target without >> having access to the target or a cross-compiler for the target? >>=20 >> I=E2=80=99m not interested in compiling must, just in a complete set = of header files. >=20 > Yes, with a few caveats. Keep in mind that for archs with subarchs, > there will be preprocessor conditionals in the bits headers which > depend on predefined macros from the compiler, so you can't > use/process the headers without knowing the values of those macros. Understood. I=E2=80=99m still planning to run the headers through a = properly configured compiler fornt-end, so that shouldn=E2=80=99t be a problem. > With that said, something like this should work from a clean tree: >=20 > make includedir=3D/where/you/want/them ARCH=3Dwhatever = install-headers >=20 > or out-of-tree in a clean dir: >=20 > make -f /path/to/musl/Makefile srcdir=3D/path/to/musl \ > includedir=3D/where/you/want/them ARCH=3Dwhatever = install-headers >=20 > filling in ARCH=3Dwhatever with the musl name for the target arch (not > including the subarch part). The above works like a charm. > The above make invocations are not entirely documented/public > interfaces, but are probably 90% so and unlikely to change/break in > practice. It might be a good idea to check that they still work with > new versions when upgrading musl though. Understandable. Thanks for your quick and informative response!