From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7747 Path: news.gmane.org!not-for-mail From: Arjen Roodselaar Newsgroups: gmane.linux.lib.musl.general Subject: Trouble compiling musl for MIPS softfloat Date: Sun, 24 May 2015 04:36:52 +0000 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_D186A3721EB2Aarjenfbcom_" X-Trace: ger.gmane.org 1432442242 21107 80.91.229.3 (24 May 2015 04:37:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 May 2015 04:37:22 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-7759-gllmg-musl=m.gmane.org@lists.openwall.com Sun May 24 06:37:14 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 1YwNez-0007ok-44 for gllmg-musl@m.gmane.org; Sun, 24 May 2015 06:37:13 +0200 Original-Received: (qmail 12042 invoked by uid 550); 24 May 2015 04:37:11 -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 11995 invoked from network); 24 May 2015 04:37:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=from : to : subject : date : message-id : content-type : mime-version; s=facebook; bh=dSVWsYOZq0BBEeExaSyqUWxyaAT7U1hFnsvQlM1ot/o=; b=b0q216b1zCU3vDlja4As6tRw84H763zGQrU8bwmDsiG7+OnV6iqX82qFaaM3ebRnFZ5e rtL1aUd57TOVKJMSZn9LreGx4u6bs7Ub38P/Cb+Q3UrtzfN0C6WtxK01XyngUPuBy5W8 mFKs4Loovlxb2cZYDsstYH67LRcb6KG2ko4= Thread-Topic: Trouble compiling musl for MIPS softfloat Thread-Index: AQHQldtAm1PvjqASGEe1zVMynDnwYQ== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.52.123] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151,1.0.33,0.0.0000 definitions=2015-05-23_02:2015-05-22,2015-05-23,1970-01-01 signatures=0 Xref: news.gmane.org gmane.linux.lib.musl.general:7747 Archived-At: --_000_D186A3721EB2Aarjenfbcom_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable I am trying to compile musl for use on devices powered by a MIPS 24kc, a So= C without hardware floating point support. The supported target architectur= es list specifically mentions this, but so far I have been unable to get th= is working. In short, using mips-sf-linux-gnu as the target in the configur= e step seems to enable soft float support as per this output: https://gist.= github.com/arjenroodselaar/f8d20534b0d8c7542d01. When linking however ld wa= rns about a small number of files being compiled with -mhard=96float, resul= ting in crt1.so to use -mhard=96float: https://gist.github.com/arjenroodsel= aar/270df6970b2bd43c9bce. This then trickles down in anything I try to link= against libc. Ignoring all this and simply compiling hard-float binaries i= s causing problems when executing malloc. Tools used here: Binutils-2.25 Gcc-4.8.4 Musl-1.1.9 (I tried musl 1.0.5 and gcc 4.9.2 but neither seem to make a difference her= e). Am I missing something here or is soft float support for MIPS currently bro= ken? Any help is appreciated. Thanks, Arjen Roodselaar --_000_D186A3721EB2Aarjenfbcom_ Content-Type: text/html; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable
I am trying to compile musl for use on devices powered by a MIPS 24kc,= a SoC without hardware floating point support. The supported target archit= ectures list specifically mentions this, but so far I have been unable to g= et this working. In short, using mips-sf-linux-gnu as the target in the configure step seems to enable soft= float support as per this output: https://gist.github.com/arjenroodsela= ar/f8d20534b0d8c7542d01. When linking however ld warns about a small number of files being compiled with -mhard= =96float, resulting in crt1.so to use -mhard=96float: https://gist.githu= b.com/arjenroodselaar/270df6970b2bd43c9bce. This then trickles down in anything I try to link against libc. Ignoring a= ll this and simply compiling hard-float binaries is causing problems when e= xecuting malloc.

Tools used here:

Binutils-2.25
Gcc-4.8.4
Musl-1.1.9

(I tried musl 1.0.5 and gcc 4.9.2 but neither seem to make a differenc= e here).

Am I missing something here or is soft float support for MIPS currentl= y broken? Any help is appreciated.

Thanks,
Arjen Roodselaar
--_000_D186A3721EB2Aarjenfbcom_--