From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99886 invoked by alias); 10 Nov 2019 08:20:46 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 99874 invoked by uid 89); 10 Nov 2019 08:20:46 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=H*Ad:U*libffi-discuss X-HELO: albireo.enyo.de Received: from albireo.enyo.de (HELO albireo.enyo.de) (37.24.231.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 10 Nov 2019 08:20:44 +0000 Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1iTiSf-0006zU-Qk; Sun, 10 Nov 2019 08:20:41 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1iTiSf-0001kr-Lk; Sun, 10 Nov 2019 09:20:41 +0100 From: Florian Weimer To: Henk Schurink Cc: libffi-discuss@sourceware.org Subject: Re: Asm errors when cross-compiling to arm-eabi References: Date: Sun, 10 Nov 2019 08:20:00 -0000 In-Reply-To: (Henk Schurink's message of "Sun, 10 Nov 2019 01:50:09 +0100") Message-ID: <877e4887mu.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2019/txt/msg00061.txt.bz2 * Henk Schurink: > I keep encountering an error when trying to cross-compile libffi for > ARM-eabi: > > $ git clone https://github.com/libffi/libffi && cd libffi > $ ./configure --build=x86_64-linux-gnu --host=arm-eabi --prefix=/data/build > --enable-static > $ make > ... > ../src/arm/sysv.S: Assembler messages: > ../src/arm/sysv.S:111: Error: unknown pseudo-op: `.syntax' > ../src/arm/sysv.S:151: Error: unknown pseudo-op: `.arm' > ../src/arm/sysv.S:151: Error: junk at end of line, first unrecognized > character is `@' > ../src/arm/sysv.S:152: Error: no such instruction: `stmfd sp!,{r0-r3,fp,lr}' > ../src/arm/sysv.S:153: Error: junk at end of line, first unrecognized > character is `@' > ... > ../src/arm/sysv.S:440: Error: no such instruction: `ldr pc,[pc]' > Makefile:1335: recipe for target 'src/arm/sysv.lo' failed This suggests that the native assembler is running, not the cross-assembler. Unfortunately, you did not include the output line with the invocation of the assembler.