From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6493 Path: news.gmane.org!not-for-mail From: Justin Cormack Newsgroups: gmane.linux.lib.musl.general Subject: Re: issues with headers? Date: Thu, 13 Nov 2014 22:13:21 +0000 Message-ID: References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1415916820 15469 80.91.229.3 (13 Nov 2014 22:13:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2014 22:13:40 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6506-gllmg-musl=m.gmane.org@lists.openwall.com Thu Nov 13 23:13:35 2014 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 1Xp2dx-0006YU-Sy for gllmg-musl@m.gmane.org; Thu, 13 Nov 2014 23:13:34 +0100 Original-Received: (qmail 13996 invoked by uid 550); 13 Nov 2014 22:13:32 -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 13988 invoked from network); 13 Nov 2014 22:13:32 -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 :content-type; bh=t+8/WtHOZ2dWQZ/CYEb+uF9bUsn2d6EgkcM/yEBkOIk=; b=WqWTMTQOmCFrnU4zUHKeB0d6VCKQ7/QoddcF+Q93VqrpukKYaUHfGEbJ0TG2xnYVsj 60q4PaHHn9JBt04isdFQ7RCRNY3h2AhEMUxDr4mQ7f7XYGEkbmqA6fhwj7SWMr/QA/B9 73hzepTR9TaSrRxIDgBrdgCHJ+o8i3YEI2+W0= 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:content-type; bh=t+8/WtHOZ2dWQZ/CYEb+uF9bUsn2d6EgkcM/yEBkOIk=; b=EJJHioU8XGJKpDOA4AamYYfIsbVdnTZ792Ntngq4RH6IZ1Rw4cq9ksT7WzO0xSZVbn DkmN4WWacWoXz+SS31F0tDddXjokvgrUOvlg8D6/X8ldv6lyHtZ96GOC3K2RVTo4gOsB 9+h84IS/oEXFuvn8QjTLujC+Gh26B3zuZd4fJE4LYmbuhbnjfc6rnZSjgbUMqoCexVpP XvfA/I2RvxEmtVjq8WG5vfsQNz5dMyg6QCtrcfOrSPQ/DLrgR0Vtj5P1XlOZuprP5+eG H6czb4w+nDGz9d8DP7yo9f+Rab6N6fed/5s5KVxHuBs+ePBcGjo3BuNOLoqXuoohK4PO jz2A== X-Gm-Message-State: ALoCoQkYYR4FPMIOdVz/RoZNWAzpTf5nq9IXltIFODsN8GK+qOPf58CCj6n1rO0t8dDJs9MC+7s2 X-Received: by 10.112.45.228 with SMTP id q4mr4797897lbm.35.1415916801132; Thu, 13 Nov 2014 14:13:21 -0800 (PST) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:6493 Archived-At: On Thu, Nov 13, 2014 at 10:02 PM, stephen Turner wrote: > I have been trying various ways of compiling a musl system using gcc and > found that GCC-4.7.3 does not seem to want to compile against musl headers. > I install the linux headers in /usr/include then i install musl and move its > headers to /usr/include. then i specify -I/usr/include to gcc and it errors > every time (technically its /cross/usr/include as i have a separated env > from my host system) The same compile works fine against musl libs but not > the headers. The only change made from a working to a non-working system > appears to be the use of the musl generated headers. > > In the scripts to build a musl toolchain (such as gregorr) the header > location is not specified but sysroot is used (which obviously isn't linking > against the headers) I first started to see this issue when chroot'ing into > a newly created musl gcc system. > > Is musl suitable as a stand alone libc replacement? Should i not be building > against musl headers? If there is any reports or details you want me to > provide please let me know. You want to use a chroot or a VM with Musl if you are having these issues. Sabotage or Alpine are good options. It will save a lot of grief. Otherwise you are doing somethnig wrong that is hard to diagnose without much moer info. Justin