From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4967 Path: news.gmane.org!not-for-mail From: Stephen Thomas Newsgroups: gmane.linux.lib.musl.general Subject: thumb2 support Date: Mon, 28 Apr 2014 04:36:01 +0100 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_21c18780-2cca-477b-ae3b-fa8ec558b9c9_" X-Trace: ger.gmane.org 1398656182 12782 80.91.229.3 (28 Apr 2014 03:36:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2014 03:36:22 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-4971-gllmg-musl=m.gmane.org@lists.openwall.com Mon Apr 28 05:36:15 2014 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 1WecMY-0004LD-Oh for gllmg-musl@plane.gmane.org; Mon, 28 Apr 2014 05:36:14 +0200 Original-Received: (qmail 9269 invoked by uid 550); 28 Apr 2014 03:36:13 -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 9258 invoked from network); 28 Apr 2014 03:36:13 -0000 X-TMN: [cPhT+XuIdU6/fjVsO7g5LLAzPNtC2Dup] X-Originating-Email: [scjthm@live.com] Importance: Normal X-OriginalArrivalTime: 28 Apr 2014 03:36:01.0887 (UTC) FILETIME=[FA2A7EF0:01CF6292] Xref: news.gmane.org gmane.linux.lib.musl.general:4967 Archived-At: --_21c18780-2cca-477b-ae3b-fa8ec558b9c9_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi I have been playing around with buildroot and musl with x86_64 and arm (wel= l thumb2 for an arm7 with soft floats). The x86_64 builds work very well wi= th buildroot but I am having a bit of a problem replacing an uClibc build w= ith musl when I have enabled thumb2 instructions. I have checked the docume= ntation and I cannot find anything specific about thumb2 either working or = not working=2C so therefore I will ask the list. buildroot/output/host/usr/bin/arm-buildroot-linux-musleabi-gcc -std=3Dc99 -= nostdinc -ffreestanding -fexcess-precision=3Dstandard -frounding-math -D_XO= PEN_SOURCE=3D700 -I./arch/arm -I./src/internal -I./include -D_LARGEFILE_SOU= RCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -pipe -fomit-frame-point= er -fno-unwind-tables -fno-asynchronous-unwind-tables -Wa=2C--noexecstack -= Werror=3Dimplicit-function-declaration -Werror=3Dimplicit-int -Werror=3Dpoi= nter-sign -Werror=3Dpointer-arith -fno-stack-protector -pipe -O2 -c -o src= /exit/exit.o src/exit/exit.csrc/dirent/readdir_r.c:29:28: error: redefiniti= on of 'readdir_r' LFS64_2(readdir_r=2C readdir64_r)=3B Makefile:115: recipe for target 'src/dirent/scandir.o' failedmake:= *** [src/dirent/scandir.o] Error 1{standard input}: Assembler messages:{st= andard input}:36: Error: thumb conditional instruction should be in IT bloc= k -- `strexeq r1=2Cr0=2C[r2]'{standard input}:37: Error: thumb conditional = instruction should be in IT block -- `teqeq r1=2C#1' You can ignore the first error. That might be some gcc issue=2C but it woul= d appear that the syscall is using arm instructions in arch/arm/atomic.h. D= oes anyone know if thumb2 is going to be supported?=20 Cheers Thomo = --_21c18780-2cca-477b-ae3b-fa8ec558b9c9_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi

I have bee= n playing around with buildroot and musl with x86_64 and arm (well thumb2 f= or an arm7 with soft floats). The =3Bx86_64 builds work very well with buildroot but I am having a bit of a pro= blem replacing an uClibc build with musl when I have enabled thumb2 instruc= tions. I have checked the documentation and I cannot find anything specific= about thumb2 either working or not working=2C so therefore I will ask the = list.

=
buildroot/output/host/usr/bin/arm-buildroot-linux-musleabi-gcc -s= td=3Dc99 -nostdinc -ffreestanding -fexcess-precision=3Dstandard -frounding-= math -D_XOPEN_SOURCE=3D700 -I./arch/arm -I./src/internal -I./include -D_LAR= GEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -pipe -fomit-f= rame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables -Wa=2C--noe= xecstack -Werror=3Dimplicit-function-declaration -Werror=3Dimplicit-int -We= rror=3Dpointer-sign -Werror=3Dpointer-arith -fno-stack-protector  =3B-p= ipe -O2 -c -o src/exit/exit.o src/exit/exit.c
src/dirent/readdir_= r.c:29:28: error: redefinition of 'readdir_r'
 =3BLFS64_2(rea= ddir_r=2C readdir64_r)=3B

=
<=3Bdeleted>=3B
Makefile:115: recipe for = target 'src/dirent/scandir.o' failed
make: *** [src/dirent= /scandir.o] Error 1
{standard input}: Assembler messages:
{standard input}:36: Error: thumb conditional instruction should be in I= T block -- `strexeq r1=2Cr0=2C[r2]'
{standard input}:37: Error: t= humb conditional instruction should be in IT block -- `teqeq r1=2C#1'
=

<=3Bdeleted>=3B

You can ig= nore the first error. That might be some gcc issue=2C but it would appear t= hat the syscall is using arm instructions in arch/arm/atomic.h. Does anyone= know if thumb2 is going to be supported? =3B

= Cheers

Thomo



= --_21c18780-2cca-477b-ae3b-fa8ec558b9c9_--