public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* Asm errors when cross-compiling to arm-eabi
@ 2019-11-10  0:50 Henk Schurink
  2019-11-10  8:20 ` Florian Weimer
  0 siblings, 1 reply; 4+ messages in thread
From: Henk Schurink @ 2019-11-10  0:50 UTC (permalink / raw)
  To: libffi-discuss

Hello,

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


Any help would be appreciated.

Best regards,
Henk Schurink

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Asm errors when cross-compiling to arm-eabi
  2019-11-10  0:50 Asm errors when cross-compiling to arm-eabi Henk Schurink
@ 2019-11-10  8:20 ` Florian Weimer
  2019-11-10 11:35   ` Henk Schurink
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Weimer @ 2019-11-10  8:20 UTC (permalink / raw)
  To: Henk Schurink; +Cc: libffi-discuss

* 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Asm errors when cross-compiling to arm-eabi
  2019-11-10  8:20 ` Florian Weimer
@ 2019-11-10 11:35   ` Henk Schurink
  2019-11-10 17:41     ` Florian Weimer
  0 siblings, 1 reply; 4+ messages in thread
From: Henk Schurink @ 2019-11-10 11:35 UTC (permalink / raw)
  To: Florian Weimer; +Cc: libffi-discuss

Thanks for your response.
Here's the full output: https://pastebin.com/6tqtYGBH

On Sun, Nov 10, 2019 at 9:20 AM Florian Weimer <fw@deneb.enyo.de> wrote:

> * 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.
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Asm errors when cross-compiling to arm-eabi
  2019-11-10 11:35   ` Henk Schurink
@ 2019-11-10 17:41     ` Florian Weimer
  0 siblings, 0 replies; 4+ messages in thread
From: Florian Weimer @ 2019-11-10 17:41 UTC (permalink / raw)
  To: Henk Schurink; +Cc: libffi-discuss

* Henk Schurink:

> Thanks for your response.
> Here's the full output: https://pastebin.com/6tqtYGBH

I think you need to set CC to the name of your cross compiler.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-10 17:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-10  0:50 Asm errors when cross-compiling to arm-eabi Henk Schurink
2019-11-10  8:20 ` Florian Weimer
2019-11-10 11:35   ` Henk Schurink
2019-11-10 17:41     ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).