From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1697 Path: news.gmane.org!not-for-mail From: agent Newsgroups: gmane.linux.lib.musl.general Subject: Re: build musl with clang Date: Thu, 23 Aug 2012 19:11:53 +0600 Message-ID: <50362C19.5080509@gmail.com> References: <5035E16E.50004@gmail.com> <20120823122414.GM27715@brightrain.aerifal.cx> 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 1345727600 15941 80.91.229.3 (23 Aug 2012 13:13:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2012 13:13:20 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1698-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 23 15:13:17 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1T4XDl-0007mb-Sp for gllmg-musl@plane.gmane.org; Thu, 23 Aug 2012 15:13:14 +0200 Original-Received: (qmail 14021 invoked by uid 550); 23 Aug 2012 13:13:12 -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 14013 invoked from network); 23 Aug 2012 13:13:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=xm+ufhGG+8KgqfkSRNqccbVGzaMpH20gkR2XCwJld6A=; b=vBmxNgYVSV2eApZL5q3vwrlnnUR3byLDhzxQyk/zBZC1PUJKEpHPkbCofFQ7ht2KUf 3q8z+FrNdFlRaWS6vHV9rKzoapY3vYfXfbA45pPx+/3XPToBr8vlM+xz8tCyOtFsiyYL 68kkzifi7oeSU5Uf2iaMO0W8nbEqZAnK2RlcHEelLButizzYaJcONk5VGgtTqOb26ChY C+Wzcgm8jdopi1pU7EkW/ZTODOkAIn1k7AGpwunDzRPGHOQIM2vVi+nnewBRsz/vyE2V KONJjDMmGTOh5kCHRmjH/Lp++SvyiPH/skKD4pzv7ROzIGvbW+SPbCZGXNuaIATCyIeU 7xOQ== User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 In-Reply-To: <20120823122414.GM27715@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:1697 Archived-At: 23.08.2012 18:24, Rich Felker пишет: > but in the long term I think using the GNU dynamic linker is going to > get more and more unrealistic, so it's probably best not to even try. i didn't want to, at first i missed -dynamic-linker option and it was the only somehow working variant. > Did you change the options musl was compiled/linked with? Naively, my > first guess is that -Bsymbolic-functions was omitted. i was using CC=clang ./configure --prefix=... and other things were default. no changes to any files. 23.08.2012 18:24, John Spencer пишет: > this sounds as if the binary uses gnu hash as opposed to sysv hash. > did you use ./configure ? > see FAQ in http://wiki.musl-libc.org i didn't use any build systems, just a shell script with commands. that was just a hello world. i was able to compile it and if i encounter any problems in future, i'll try the solution from FAQ. btw, there was no link to this wiki from main site > there is another known bug in clang which will lead to calloc getting > wrongly optimized away, because clang disrespects -ffree-standing. > Richard Pennington wanted to reported this to the LLVM maillist months > ago, but afaik he still hasn't done this. i was investigating the possibility of using clang + musl for writing a new program, not for porting existing software, so it may be possible to avoid using some functions in reasonable scale, or change any component in this bundle. and does that bug affect a whole *alloc family or just calloc?