From owner-freebsd-arm@FreeBSD.ORG Sun Mar 10 12:56:37 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DA9E4445 for ; Sun, 10 Mar 2013 12:56:37 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx1.freebsd.org (Postfix) with ESMTP id 82745B54 for ; Sun, 10 Mar 2013 12:56:37 +0000 (UTC) Received: by mail-ve0-f170.google.com with SMTP id 14so2166958vea.1 for ; Sun, 10 Mar 2013 05:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:from:date:x-google-sender-auth :message-id:subject:to:content-type; bh=FymGh/AV/Dppqr003HJh1T9DHOe3xe4llk9OV2k6inM=; b=U+smTfRjuZnZi/bX4xVkmPEBbhnVliZdDS3JR3mk+IIlkFuTrz6JuAgT/OhYNHFvnP HNJLoudpuk2SMR8XAo8Ohm8zVc8G1X1cQIsAMRgp8yb03tlGE3PqtsL0Sz+Wx5o/a5H4 SjipUxJ+jaPOcgxTyNBieZSzaEPuDOK4RkR54rR0VpQbjREb8XIYf8ouBzBbMLGsAZCm HfMPsB8Y6HHNIbz9jbn4lpI34EYJuwdKf4AVcyRbqguT78rgJiseIkM4gSUUp3A1j6og Y0qbCncfNnR1/G+2wL1+Po4GXHkRYmPVflrasIeLlKN9Lgej/fmnbXynFDwAADLMMc9v 7TLQ== X-Received: by 10.58.143.116 with SMTP id sd20mr2862595veb.39.1362920190974; Sun, 10 Mar 2013 05:56:30 -0700 (PDT) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.58.11.229 with HTTP; Sun, 10 Mar 2013 05:56:10 -0700 (PDT) From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Sun, 10 Mar 2013 13:56:10 +0100 X-Google-Sender-Auth: ZBUWDENpSbA9EmyZqrzOpJ0Uhjg Message-ID: Subject: Need help for building security/libgcrypt on ARM with clang To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Mar 2013 12:56:37 -0000 Hi, I would to build security/libgcrypt on ARM with clang but I've got problem with longlong.h On first run, clang complain about: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extension ./longlong.h:230:25: note: expanded from macro 'umul_ppmm' : "=&r" ((USItype)(xh)), => For fixing this problem, I've use the same method as in files/patch-mpi-longlong.h for I386 arch on the ARM section. But there is a new problem: error: invalid % escape in inline assembly string ./longlong.h:228:14: note: expanded from macro 'umul_ppmm' __asm__ ("%@ Inlined umul_ppmm\n" => For fixing this problem, I've completely remove the "%@ Inlined umul_ppmm\n" string. But...there is a new problem and I don't know how to fix it: error: invalid operand in inline asm: 'umull ${1:r}, ${0:r}, ${2:r}, ${3:r}' ./longlong.h:229:5: note: expanded from macro 'umul_ppmm' "umull %r1, %r0, %r2, %r3" Where is the problem ? My current nonworking longlong.h patch is here: http://gugus69.free.fr/freebsd/patch-mpi-longlong.h Thanks,