From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7760 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Lucas_Sim=C3=B5es?= Newsgroups: gmane.linux.lib.musl.general Subject: Using Musl with LLVM/Clang Date: Mon, 25 May 2015 20:32:37 +0000 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0149c19c21bbe40516ede9ca X-Trace: ger.gmane.org 1432588236 21174 80.91.229.3 (25 May 2015 21:10:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 May 2015 21:10:36 +0000 (UTC) To: musl@lists.openwall.com, Paulo Castro Original-X-From: musl-return-7772-gllmg-musl=m.gmane.org@lists.openwall.com Mon May 25 23:10:24 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Ywzdg-0006DA-36 for gllmg-musl@m.gmane.org; Mon, 25 May 2015 23:10:24 +0200 Original-Received: (qmail 11844 invoked by uid 550); 25 May 2015 21:10:03 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 19883 invoked from network); 25 May 2015 20:32:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=gXb7E12UcEI9eCb42HzBNH6ZAEGn7CCPn77cv+Ak3vo=; b=Kn7SmH5vV+mKdB4QRuzCUA2U22pznHFvATCjTg7FSTAhkCYJj/lZyfS1sEnfQBL71V GjSZ1FkKyAUJFbRuM/8bRsS1xArAPXhYDWWdE7/UnH+8AXPZFOUIQwm0zJXFi0GoNyjB KGu18VUK024QpGQA8Lty3uOxpUfdpKJzH5wTmdsCP52+FdOkFoHbd/NosTJQnZ84B8Dj Z/ppxZ9McngPewwaJz9nm956JW37DFWI4XqNPoT2FhjcEQngcVNlfoMHGlRdJ0o7vHU5 voeoA7TqW2r3ryg7LsL7rcxvpMlf0gS8QA1Svj+dd/EltJ1UriN91lEd/S/ga8w9SBUx maUQ== X-Received: by 10.236.29.74 with SMTP id h50mr21501144yha.126.1432585957913; Mon, 25 May 2015 13:32:37 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:7760 Archived-At: --089e0149c19c21bbe40516ede9ca Content-Type: text/plain; charset=UTF-8 Hi everyone, Me and my friend CC'd on this email are trying to use musl as libc to compile some programs on ArchLinux. We've successfuly used musl with GCC using yours' musl-gcc script, on the other hand we couldn't find a way to use it altogether with Clang. Do you guys have any idea on which flags needed to achieve this? Thank you very much and sorry about the silly question, we couldn't find it anywhere on the web. Lucas Please CC to simoes.lucas.silva@gmail.com and p.oliveira.castro@gmail.com --089e0149c19c21bbe40516ede9ca Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi everyone,

Me and= my friend CC'd on this email are trying to use musl as libc to compile= some programs on ArchLinux.
We've successfuly used musl with GCC u= sing yours' musl-gcc script, on the other hand we couldn't find a w= ay to use it altogether with Clang.

Do you guys have any = idea on which flags needed to achieve this?

Th= ank you very much and sorry about the silly question, we couldn't find = it anywhere on the web.

Lucas

Ple= ase CC to simoes.lucas.silv= a@gmail.com and p.olivei= ra.castro@gmail.com
--089e0149c19c21bbe40516ede9ca-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7765 Path: news.gmane.org!not-for-mail From: Shiz Newsgroups: gmane.linux.lib.musl.general Subject: Re: Using Musl with LLVM/Clang Date: Tue, 26 May 2015 03:33:19 +0200 Message-ID: <12AE8608-7269-4325-9566-9897073E61A3@shiz.me> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_FBF2A5C8-5C9B-489F-9648-491BF87D3D48"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Trace: ger.gmane.org 1432604036 30043 80.91.229.3 (26 May 2015 01:33:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2015 01:33:56 +0000 (UTC) Cc: Paulo Castro , simoes.lucas.silva@gmail.com To: musl@lists.openwall.com Original-X-From: musl-return-7777-gllmg-musl=m.gmane.org@lists.openwall.com Tue May 26 03:33:51 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Yx3kb-0003tv-NL for gllmg-musl@m.gmane.org; Tue, 26 May 2015 03:33:49 +0200 Original-Received: (qmail 22301 invoked by uid 550); 26 May 2015 01:33:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 22281 invoked from network); 26 May 2015 01:33:47 -0000 X-Virus-Scanned: amavisd-new at shiz.me X-Pgp-Agent: GPGMail 2.5b6 In-Reply-To: X-Mailer: Apple Mail (2.2070.6) Xref: news.gmane.org gmane.linux.lib.musl.general:7765 Archived-At: --Apple-Mail=_FBF2A5C8-5C9B-489F-9648-491BF87D3D48 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 There=E2=80=99s sadly no trivial clang wrapper script as of yet, but you = can look at the ELLCC project[1], which distributes prebuilt musl-powered LLVM toolchains. Wrapping clang = with a musl-gcc like script would be absolutely desirable, but I=E2=80=99m unsure how possible that = is given clang=E2=80=99s apparent lack of specs files[2]. -S [1]: http://ellcc.org/ [2]: = http://clang.llvm.org/docs/DriverInternals.html#relation-to-gcc-driver-con= cepts > On 25 May 2015, at 22:32, Lucas Sim=C3=B5es = wrote: >=20 > Hi everyone, >=20 > Me and my friend CC'd on this email are trying to use musl as libc to = compile some programs on ArchLinux. > We've successfuly used musl with GCC using yours' musl-gcc script, on = the other hand we couldn't find a way to use it altogether with Clang. >=20 > Do you guys have any idea on which flags needed to achieve this? >=20 > Thank you very much and sorry about the silly question, we couldn't = find it anywhere on the web. >=20 > Lucas >=20 > Please CC to simoes.lucas.silva@gmail.com and = p.oliveira.castro@gmail.com --Apple-Mail=_FBF2A5C8-5C9B-489F-9648-491BF87D3D48 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJVY81vAAoJEI8YjKeZk+kHujUP/RJHlyuraox+mL9TZSZ6YqAn svaiQAQLt0kB6AacSVgOL1fHPgp+POWs7ojyXr4LPC9eVGHQtyy54H58YdjSYseX QH29wMUcdk6zkuDF9D4BHH5C+IoH2j/JPf3iLfo9v+mNPegsueCzWoNr5/xM8yqs DgQiCJ0culMALsPaoZ2yK/wMLMzExCJt1m1RBBDuNOjA8X36QSfHQ9wscqOCkchb 6rHnFs/pLtruOGCslpuN+YhM2ENxEZFA02pi1AHB+SDQII7EbRWgq/JJLAtCX5oa Xm/z/s5TMxKBCD2e8xY7veYEElY0YFouzwWjDnyjTfvZvaAfQW1wLT5SsSt4NWIs Wq3XxMC2hTi3zvLAPvnsOH1ptomh6Sl3oNhr1BDI5AOAJGekMMyGcoeakS6Y/YdZ C9Qagnp5gZ2PwxQc4zgPq7KSHZLI37lP7e0u3IaBJk7w7kCt4kNdROhF8z2tIAZH r2IQv0tnnzuJr7t4qYbBPXfPfRvSmMgOt/Id8YfyUrCpHrvq/mPSCBQV0TAD2Ro/ B8t7+G7zeVkfh+MIphOr9eUqw9mu445RKfN4sflGFHU9i33CctUmCbd2w3DkhJak Ln5/QqtlBcCWYgnJhGiEWGVWpgx32ezSvck3853D3YYwysC9yBoZAPsSXX5VZSLp NvheDuqXl5Ikaea7txOj =Nw7r -----END PGP SIGNATURE----- --Apple-Mail=_FBF2A5C8-5C9B-489F-9648-491BF87D3D48-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7766 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Using Musl with LLVM/Clang Date: Mon, 25 May 2015 21:37:41 -0400 Message-ID: <20150526013741.GY17573@brightrain.aerifal.cx> References: <12AE8608-7269-4325-9566-9897073E61A3@shiz.me> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1432604288 1527 80.91.229.3 (26 May 2015 01:38:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2015 01:38:08 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7778-gllmg-musl=m.gmane.org@lists.openwall.com Tue May 26 03:38:02 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Yx3oZ-0005Q4-NV for gllmg-musl@m.gmane.org; Tue, 26 May 2015 03:37:55 +0200 Original-Received: (qmail 26244 invoked by uid 550); 26 May 2015 01:37:54 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 26223 invoked from network); 26 May 2015 01:37:53 -0000 Content-Disposition: inline In-Reply-To: <12AE8608-7269-4325-9566-9897073E61A3@shiz.me> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:7766 Archived-At: On Tue, May 26, 2015 at 03:33:19AM +0200, Shiz wrote: > There’s sadly no trivial clang wrapper script as of yet, but you can look at the ELLCC project[1], > which distributes prebuilt musl-powered LLVM toolchains. Wrapping clang with a musl-gcc like script > would be absolutely desirable, but I’m unsure how possible that is given clang’s apparent lack of specs files[2]. The main reason we need a specfile for gcc rather than just -nostdinc and -nostdlib is that the latter does not suppress search of the default library paths, just the libraries, i.e. it removes the -l's but not the -L's. If you can find a way to remove the default -L's for clang then it should be easy. Rich From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7767 Path: news.gmane.org!not-for-mail From: Shiz Newsgroups: gmane.linux.lib.musl.general Subject: Re: Using Musl with LLVM/Clang Date: Tue, 26 May 2015 03:53:26 +0200 Message-ID: <2C35A69F-3A8A-4EDE-86CA-029A9B9BDD45@shiz.me> References: <12AE8608-7269-4325-9566-9897073E61A3@shiz.me> <20150526013741.GY17573@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_95F90C1B-04D3-4D1D-9288-05667D7150E1"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Trace: ger.gmane.org 1432605235 17143 80.91.229.3 (26 May 2015 01:53:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2015 01:53:55 +0000 (UTC) Cc: Paulo Castro , simoes.lucas.silva@gmail.com To: musl@lists.openwall.com Original-X-From: musl-return-7779-gllmg-musl=m.gmane.org@lists.openwall.com Tue May 26 03:53:54 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Yx442-0002wR-3s for gllmg-musl@m.gmane.org; Tue, 26 May 2015 03:53:54 +0200 Original-Received: (qmail 13435 invoked by uid 550); 26 May 2015 01:53:52 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 13417 invoked from network); 26 May 2015 01:53:52 -0000 X-Virus-Scanned: amavisd-new at shiz.me X-Pgp-Agent: GPGMail 2.5b6 In-Reply-To: <20150526013741.GY17573@brightrain.aerifal.cx> X-Mailer: Apple Mail (2.2070.6) Xref: news.gmane.org gmane.linux.lib.musl.general:7767 Archived-At: --Apple-Mail=_95F90C1B-04D3-4D1D-9288-05667D7150E1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 26 May 2015, at 03:37, Rich Felker wrote: >=20 > The main reason we need a specfile for gcc rather than just -nostdinc > and -nostdlib is that the latter does not suppress search of the > default library paths, just the libraries, i.e. it removes the -l's > but not the -L's. If you can find a way to remove the default -L's for > clang then it should be easy. >=20 > Rich Sadly, after looking at the clang driver source[1], there seems to be no such option: it unconditionally adds the library paths. Unless there=E2=80= =99s some way to influence ToolChain.getFilePaths(), it doesn=E2=80=99t seem = like it can be done without modifying the clang source code. -S [1]: = https://github.com/llvm-mirror/clang/blob/9a5a6f0e149ba035168641ca6dc4e3b3= e5aa29b5/lib/Driver/Tools.cpp#L8009 --Apple-Mail=_95F90C1B-04D3-4D1D-9288-05667D7150E1 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJVY9IkAAoJEI8YjKeZk+kH2VQP/A9S3/klWdf7DieIqFnRiGCV zJCLlw8AY78jDaWq3UgllLIHvgKm3yyjsYDIT8aHeqk3xlmosWYXIduQw+3z9xSX TyzeuwNJrWN1EXN7vqVUpz+1HGFMmQc1HpYW2KcfhPRHTyId9AYhZsaz67rMQi+d AqBdFbsLPk/kDbuTa/rbqU5LyjeIOVFQUSKXe7m+m78lR5hw9Vs4F1qzVSYwiUUe CQ108dpdMDVPcqmksjZU1InG1T345JJh09ZDeK8EIyQQTysH/KputyR6Hc8fiKIL chh/3FxJO8AhIw68Yj2crKfL8DcFlj0+5Q/q2KO7xbLGwhzH9HDMA7RpgKk2Mh/Q 0CFlKGrD3C0O+GnLsnLqujQgRWAdvyamSWRybsFxs17aw1e7j3IjuQD0sRJ/wDkb JT9wjRaN9DAw2ZN5cvigu0u5tIML2q3vl7xe6zbOAU1uzZrp1TDre93xWbajZXAv FAzA9BPQZxOiPo2bUbY8l2ucZjm/ADdWE9YzKPqI3CYdzwmlYOaLZW7Zfd/7W2ZR TeG94KdOGhBLttiHqcO4rQlPjbIJCbm4NAaXnHCmxGPigtg6sBsgmsM0aAHmM+O1 M3pZiNoCESfp3VaSB5HKLESQD00P0rlmPijxWRtzc0w1uOYX00zo1k7/CUHqdBqK VvgA1pYU127elKo20WaN =dc/o -----END PGP SIGNATURE----- --Apple-Mail=_95F90C1B-04D3-4D1D-9288-05667D7150E1-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7768 Path: news.gmane.org!not-for-mail From: Justin Cormack Newsgroups: gmane.linux.lib.musl.general Subject: Re: Using Musl with LLVM/Clang Date: Tue, 26 May 2015 08:48:56 +0100 Message-ID: References: <12AE8608-7269-4325-9566-9897073E61A3@shiz.me> <20150526013741.GY17573@brightrain.aerifal.cx> <2C35A69F-3A8A-4EDE-86CA-029A9B9BDD45@shiz.me> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1432626556 24433 80.91.229.3 (26 May 2015 07:49:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2015 07:49:16 +0000 (UTC) Cc: Paulo Castro , simoes.lucas.silva@gmail.com To: musl@lists.openwall.com Original-X-From: musl-return-7780-gllmg-musl=m.gmane.org@lists.openwall.com Tue May 26 09:49:10 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Yx9bp-0003kC-PT for gllmg-musl@m.gmane.org; Tue, 26 May 2015 09:49:09 +0200 Original-Received: (qmail 32661 invoked by uid 550); 26 May 2015 07:49:08 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32640 invoked from network); 26 May 2015 07:49:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=specialbusservice.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=S5UvtytX5s3ZYQOsBibJSbq0m2vQNY6513Lm9hwemts=; b=qqzPp3XM5Xe7BZSX/nVqN/mtk7lOxdlqbB1rlPqWU94YMENDLONrvQqiQ2gHRU6EEB tbU+/TRMjFTG2Js/kRdAKNMfcG9nROUXyP3uLFbLykq/KJnZ4gMMpWMirFR7zwoDNUsf fmBLC5+BCjYTmSspHaGK6DkKiggXTcBIJw19U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=S5UvtytX5s3ZYQOsBibJSbq0m2vQNY6513Lm9hwemts=; b=EzcDplhpy9jZ8slg3lTmeYOVX7AUOVpjwMaSQE7dMpdVOWjFIfXCXQAWReiyW23RwL GF8yxtOt5s2ZnikWQ35bbZQgC8W1pVOnXd5wvSbTpIp8/qog+nGy85I4WxAncTe+Fpe0 P+PqQEJTYQHGoAbEhTIz6us7g4Sz1rxcYxjYRS0C/QyxkvgtXfqaUznFOtADewJ2wOo3 N5pcqpxakoKo3D2Kmty2QcERcmJ2XH6TxMifwhSx4uGpsnTuAZUNm1tyOaQAdIaHXUG/ wA1aK60fo0nJ5JyAV5GAWX5npYSul66ivAH5ctv2+CEYUSpdDPGqS3rI4e/FDH9wEEuM 5gew== X-Gm-Message-State: ALoCoQmXyvxOTxBoXtsfY+lCF2ZTRf3QSaTAIKzwD6GzQp/p4TSph9P3It49sjr6zNu1TJiQRPhJ X-Received: by 10.194.216.196 with SMTP id os4mr47188757wjc.117.1432626536237; Tue, 26 May 2015 00:48:56 -0700 (PDT) In-Reply-To: <2C35A69F-3A8A-4EDE-86CA-029A9B9BDD45@shiz.me> Xref: news.gmane.org gmane.linux.lib.musl.general:7768 Archived-At: On 26 May 2015 at 02:53, Shiz wrote: >> On 26 May 2015, at 03:37, Rich Felker wrote: >> >> The main reason we need a specfile for gcc rather than just -nostdinc >> and -nostdlib is that the latter does not suppress search of the >> default library paths, just the libraries, i.e. it removes the -l's >> but not the -L's. If you can find a way to remove the default -L's for >> clang then it should be easy. >> >> Rich > > Sadly, after looking at the clang driver source[1], there seems to be no > such option: it unconditionally adds the library paths. Unless there=E2= =80=99s > some way to influence ToolChain.getFilePaths(), it doesn=E2=80=99t seem l= ike it > can be done without modifying the clang source code. You can use clang with --sysroot, if everything is under the same root path= . In theory if clang had support you could just use -target or just rename the compiler and it would just compile for Musl, according to the docs http://clang.llvm.org/docs/CrossCompilation.html but I am guessing that needs some upstream support, would be nice to add. Justin From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7776 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Lucas_Sim=C3=B5es?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: Using Musl with LLVM/Clang Date: Wed, 27 May 2015 00:23:26 +0000 Message-ID: References: <12AE8608-7269-4325-9566-9897073E61A3@shiz.me> <20150526013741.GY17573@brightrain.aerifal.cx> <2C35A69F-3A8A-4EDE-86CA-029A9B9BDD45@shiz.me> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113a791c70bf8d0517054047 X-Trace: ger.gmane.org 1432686225 6838 80.91.229.3 (27 May 2015 00:23:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 May 2015 00:23:45 +0000 (UTC) Cc: Paulo Castro To: Justin Cormack , musl@lists.openwall.com Original-X-From: musl-return-7788-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 27 02:23:44 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YxP8H-0006N0-7p for gllmg-musl@m.gmane.org; Wed, 27 May 2015 02:23:41 +0200 Original-Received: (qmail 11965 invoked by uid 550); 27 May 2015 00:23:39 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11940 invoked from network); 27 May 2015 00:23:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=AQTQBXqfHafFq9H9YV5bP6HguYCMV1xiTsfMkwECNcM=; b=KG/hOakRUdznvYlmdw+qepznrFy79ntnqvG4XPeQkYnZ59iKmtdchpuigf/tJWPOxy UJHT30pWmcZnXQessQsZ9gxiF6HUNv21nXH4kqKUOC5o1IvnT9lk/l6Bg6lLrTnB/gBv Bj3RCWbMfPP2YCl+cNQMsAkS4j4LhIV3LsSmqcjkgFhiAI46MmPTWI08iuReJNUyuk7Q Glr3jc8gczyf1WWhLX1/MfJWEHkBg1o2jZl4ysQT5Lgis8CIWGPYXp9T86gBUINu9fsc ePqlv56ga45WwuSvKZX9p5ul06iwBU79oJrZFrs7rQ+oSHTXt4aog5R2VwzKtQrrFah5 pxrw== X-Received: by 10.170.99.135 with SMTP id q129mr30032939yka.2.1432686206957; Tue, 26 May 2015 17:23:26 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:7776 Archived-At: --001a113a791c70bf8d0517054047 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you for the quick response guys! That's really sad, I was truly hoping to find a way to use musl out of the box with Clang (on my Arch) Guess I'll just have to check the toolchains on this ELLCC project Em ter, 26 de mai de 2015 =C3=A0s 04:48, Justin Cormack < justin@specialbusservice.com> escreveu: > On 26 May 2015 at 02:53, Shiz wrote: > >> On 26 May 2015, at 03:37, Rich Felker wrote: > >> > >> The main reason we need a specfile for gcc rather than just -nostdinc > >> and -nostdlib is that the latter does not suppress search of the > >> default library paths, just the libraries, i.e. it removes the -l's > >> but not the -L's. If you can find a way to remove the default -L's for > >> clang then it should be easy. > >> > >> Rich > > > > Sadly, after looking at the clang driver source[1], there seems to be n= o > > such option: it unconditionally adds the library paths. Unless there=E2= =80=99s > > some way to influence ToolChain.getFilePaths(), it doesn=E2=80=99t seem= like it > > can be done without modifying the clang source code. > > You can use clang with --sysroot, if everything is under the same root > path. > > In theory if clang had support you could just use -target or just > rename the compiler and it would just compile for Musl, according to > the docs http://clang.llvm.org/docs/CrossCompilation.html but I am > guessing that needs some upstream support, would be nice to add. > > Justin > --001a113a791c70bf8d0517054047 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank you for the quick response guys!
That's reall= y sad, I was truly hoping to find a way to use musl out of the box with Cla= ng (on my Arch)
Guess I'll just have to check the toolchains on thi= s ELLCC project

= Em ter, 26 de mai de 2015 =C3=A0s 04:48, Justin Cormack <justin@specialbusservice.com> escre= veu:
On 26 May 2015 at 02:53, Shiz = <hi@shiz.me> wrot= e:
>> On 26 May 2015, at 03:37, Rich Felker <dalias@libc.org> wrote:
>>
>> The main reason we need a specfile for gcc rather than just -nostd= inc
>> and -nostdlib is that the latter does not suppress search of the >> default library paths, just the libraries, i.e. it removes the -l&= #39;s
>> but not the -L's. If you can find a way to remove the default = -L's for
>> clang then it should be easy.
>>
>> Rich
>
> Sadly, after looking at the clang driver source[1], there seems to be = no
> such option: it unconditionally adds the library paths. Unless there= =E2=80=99s
> some way to influence ToolChain.getFilePaths(), it doesn=E2=80=99t see= m like it
> can be done without modifying the clang source code.

You can use clang with --sysroot, if everything is under the same root path= .

In theory if clang had support you could just use -target or just
rename the compiler and it would just compile for Musl, according to
the docs http://clang.llvm.org/docs/CrossCompilation.html but I am<= br> guessing that needs some upstream support, would be nice to add.

Justin
--001a113a791c70bf8d0517054047-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7777 Path: news.gmane.org!not-for-mail From: Richard Pennington Newsgroups: gmane.linux.lib.musl.general Subject: Re: Using Musl with LLVM/Clang Date: Tue, 26 May 2015 20:20:46 -0500 Message-ID: <55651BEE.1050404@pennware.com> References: <12AE8608-7269-4325-9566-9897073E61A3@shiz.me> <20150526013741.GY17573@brightrain.aerifal.cx> <2C35A69F-3A8A-4EDE-86CA-029A9B9BDD45@shiz.me> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1432689791 26299 80.91.229.3 (27 May 2015 01:23:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 May 2015 01:23:11 +0000 (UTC) Cc: =?UTF-8?B?THVjYXMgU2ltw7Vlcw==?= , Justin Cormack , Paulo Castro To: musl@lists.openwall.com Original-X-From: musl-return-7789-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 27 03:23:04 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YxQ3j-0007EI-JB for gllmg-musl@m.gmane.org; Wed, 27 May 2015 03:23:03 +0200 Original-Received: (qmail 21754 invoked by uid 550); 27 May 2015 01:23:02 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21704 invoked from network); 27 May 2015 01:23:01 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 In-Reply-To: X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 Xref: news.gmane.org gmane.linux.lib.musl.general:7777 Archived-At: On 05/26/2015 07:23 PM, Lucas Simões wrote: > Thank you for the quick response guys! > That's really sad, I was truly hoping to find a way to use musl out of > the box with Clang (on my Arch) > Guess I'll just have to check the toolchains on this ELLCC project > Hi Lucas, I did make some modifications to clang to make it easier (for me at least) to cross compile stuff, including musl, libc++, etc.My changes are pretty simple, but involve adding configuration files for different architectures. Most recently, I was playing with ARM Cortex-M3 (http://ellcc.org/blog/?p=23234), but similar stuff can be used for several different targets (http://ellcc.org/viewvc/svn/ellcc/trunk/libecc/config/). I did it because I like to compile from the command line without a bunch of options for #includes, etc, because I'm essentially lazy. If you decide to try ELLCC, don't hesitate to ask for help if you encounter any problems. -Rich (not *that* rich) From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7778 Path: news.gmane.org!not-for-mail From: Shiz Newsgroups: gmane.linux.lib.musl.general Subject: Re: Using Musl with LLVM/Clang Date: Wed, 27 May 2015 03:38:52 +0200 Message-ID: <6BBCAC45-1FD5-4B47-BA03-48B4FC5B6F57@shiz.me> References: <12AE8608-7269-4325-9566-9897073E61A3@shiz.me> <20150526013741.GY17573@brightrain.aerifal.cx> <2C35A69F-3A8A-4EDE-86CA-029A9B9BDD45@shiz.me> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_9906F96F-BE91-4B94-9AE3-E4F2C341D237"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Trace: ger.gmane.org 1432690762 7456 80.91.229.3 (27 May 2015 01:39:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 May 2015 01:39:22 +0000 (UTC) Cc: Justin Cormack , Paulo Castro To: musl@lists.openwall.com Original-X-From: musl-return-7790-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 27 03:39:21 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YxQJV-0005mP-HL for gllmg-musl@m.gmane.org; Wed, 27 May 2015 03:39:21 +0200 Original-Received: (qmail 1775 invoked by uid 550); 27 May 2015 01:39:19 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 1738 invoked from network); 27 May 2015 01:39:19 -0000 X-Virus-Scanned: amavisd-new at shiz.me X-Pgp-Agent: GPGMail 2.5b6 In-Reply-To: X-Mailer: Apple Mail (2.2070.6) Xref: news.gmane.org gmane.linux.lib.musl.general:7778 Archived-At: --Apple-Mail=_9906F96F-BE91-4B94-9AE3-E4F2C341D237 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 27 May 2015, at 02:23, Lucas Sim=C3=B5es = wrote: >=20 > Thank you for the quick response guys! > That's really sad, I was truly hoping to find a way to use musl out of = the box with Clang (on my Arch) > Guess I'll just have to check the toolchains on this ELLCC project As a recent update, I=E2=80=99ve managed to get a musl-clang like script = working with some tips from the IRC channel. It=E2=80=99s far from done, but if = you want you can check out a preview version[1][2] of it. Note that it requires manually editing the two scripts to edit in your libc and ld.so locations. Place them anywhere in your $PATH and you /should/ be good = to, provided both clang and ld are also in your $PATH. I=E2=80=99ve only tested it on my own setup, so I welcome any breakage = reports. :) -S [1]: http://txt.shiz.me/ZWQwZjgxOW, save as musl-clang [2]: http://txt.shiz.me/NGRhZDg2Yz, save as ld.musl-clang --Apple-Mail=_9906F96F-BE91-4B94-9AE3-E4F2C341D237 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJVZSA7AAoJEI8YjKeZk+kHHbYP/As043ZddHl59nqInSqpFxW4 wsIPEaLiUV0YFeTjR6+TEXYYZ+xQ3oi0V3ErZJY0mtV/hfXqNXnh3CwYL0bq25XE XIdOd2/H8q8BhezxhzhrSXToEh58cXA5RqHbxNL41qZFQHgouBF8vc9jDMZWIYGD sKY3nVJPJNkOZWtIviY537hm8CfJTPrWPiVF2DydZG5tHVE9G6rA7qWKZ1daoIFB 6ej6qRXvroLJ/0P1nysBL72SoUZm3qisRnLkuYjYwpzwdGfQapstfT51i39LjqAw 39QEBf6T6lIXg/ENW87jyGVXev/ir9ZJe7pX6rb4Joy5YStrzKQlMJctlcVQcaSJ Zo/dGd8nD7jEdc1Ih82DlKuXTbF3dJB3c5hBGX/0g48KRe8FfG9h2XS+7ZNf54dd eAi6EU+3LKXzxGYWjr0q0m+v66jyY329n+9b9Id19AXmVwDOKxVIFhrD4fZISaGE 1oR2Vh7mzdCv6EKM9dr414+Byj3YDUq/PxbrIZVjzxLWnUtm9y+Tr626BQ19nkqV 2A9+hH9718V7n2wtMP2v5j+lAm7XnkRUABNC0Y4r1MtG5wFFiueb1wGlQdd+dHjq nxndCQBS6t9z1vUjSWbptkdOJnQ8is+wOsJwedcnUEbD5BPD18yOMYij+cnU/TfV FtStRTE6fXcjWeW6DKXV =SJbu -----END PGP SIGNATURE----- --Apple-Mail=_9906F96F-BE91-4B94-9AE3-E4F2C341D237--