assembler issue - no such instruction

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

assembler issue - no such instruction

Riccardo Mottola
Hi all,

I am trying to compile ArcticFox on OpenBSD 6.5. On 6.4 I had no
issues,it compiled and worked!
I am using gcc 4.9 from ports and it dies with:

  2:16.64 host_pathsub.o
  2:16.85 /tmp//cctgHRHn.s: Assembler messages:
  2:16.85 /tmp//cctgHRHn.s:36: Error: no such instruction: `vmovaps
%xmm0,80(%rsp)'
  2:16.85 /tmp//cctgHRHn.s:37: Error: no such instruction: `vmovaps
%xmm1,96(%rsp)'
  2:16.85 /tmp//cctgHRHn.s:38: Error: no such instruction: `vmovaps
%xmm2,112(%rsp)'
  2:16.85 /tmp//cctgHRHn.s:39: Error: no such instruction: `vmovaps
%xmm3,128(%rsp)'
  2:16.85 /tmp//cctgHRHn.s:40: Error: no such instruction: `vmovaps
%xmm4,144(%rsp)'
  2:16.85 /tmp//cctgHRHn.s:41: Error: no such instruction: `vmovaps
%xmm5,160(%rsp)'
  2:16.85 /tmp//cctgHRHn.s:42: Error: no such instruction: `vmovaps
%xmm6,176(%rsp)'
  2:16.85 /tmp//cctgHRHn.s:43: Error: no such instruction: `vmovaps
%xmm7,192(%rsp)'
  2:16.87 In the directory
/home/multix/code/Arctic-Fox/obj-amd64-unknown-openbsd6.5/config
  2:16.87 The following command failed to execute properly:
  2:16.87 egcc -o host_pathsub.o -c -DXP_UNIX -MD -MP -MF
.deps/host_pathsub.o.pp -O2 -march=sandybridge -DUNICODE -D_UNICODE
-I/home/multix/code/Arctic-Fox/config -I. -I../dist/include
-I/home/multix/code/Arctic-Fox/obj-amd64-unknown-openbsd6.5/dist/include/nspr
/home/multix/code/Arctic-Fox/config/pathsub.c
  2:16.87 gmake[5]: ***
[/home/multix/code/Arctic-Fox/config/rules.mk:889: host_pathsub.o] Error 1

 From looking on the internet, this seems an assembler problem

I tried to force AS to gas, but it did not change, maybe egcc is not
respecting it


Riccardo

Reply | Threaded
Open this post in threaded view
|

Re: assembler issue - no such instruction

Stuart Henderson
On 2019-06-21, Riccardo Mottola <[hidden email]> wrote:

> Hi all,
>
> I am trying to compile ArcticFox on OpenBSD 6.5. On 6.4 I had no
> issues,it compiled and worked!
> I am using gcc 4.9 from ports and it dies with:
>
>   2:16.64 host_pathsub.o
>   2:16.85 /tmp//cctgHRHn.s: Assembler messages:
>   2:16.85 /tmp//cctgHRHn.s:36: Error: no such instruction: `vmovaps
> %xmm0,80(%rsp)'
>   2:16.85 /tmp//cctgHRHn.s:37: Error: no such instruction: `vmovaps
> %xmm1,96(%rsp)'
>   2:16.85 /tmp//cctgHRHn.s:38: Error: no such instruction: `vmovaps
> %xmm2,112(%rsp)'
>   2:16.85 /tmp//cctgHRHn.s:39: Error: no such instruction: `vmovaps
> %xmm3,128(%rsp)'
>   2:16.85 /tmp//cctgHRHn.s:40: Error: no such instruction: `vmovaps
> %xmm4,144(%rsp)'
>   2:16.85 /tmp//cctgHRHn.s:41: Error: no such instruction: `vmovaps
> %xmm5,160(%rsp)'
>   2:16.85 /tmp//cctgHRHn.s:42: Error: no such instruction: `vmovaps
> %xmm6,176(%rsp)'
>   2:16.85 /tmp//cctgHRHn.s:43: Error: no such instruction: `vmovaps
> %xmm7,192(%rsp)'
>   2:16.87 In the directory
> /home/multix/code/Arctic-Fox/obj-amd64-unknown-openbsd6.5/config
>   2:16.87 The following command failed to execute properly:
>   2:16.87 egcc -o host_pathsub.o -c -DXP_UNIX -MD -MP -MF
> .deps/host_pathsub.o.pp -O2 -march=sandybridge -DUNICODE -D_UNICODE
> -I/home/multix/code/Arctic-Fox/config -I. -I../dist/include
> -I/home/multix/code/Arctic-Fox/obj-amd64-unknown-openbsd6.5/dist/include/nspr
> /home/multix/code/Arctic-Fox/config/pathsub.c
>   2:16.87 gmake[5]: ***
> [/home/multix/code/Arctic-Fox/config/rules.mk:889: host_pathsub.o] Error 1
>
>  From looking on the internet, this seems an assembler problem
>
> I tried to force AS to gas, but it did not change, maybe egcc is not
> respecting it
>
>
> Riccardo
>
>

gas in base doesn't know these opcodes. You either need a newer assembler
or probably easier there's a fair chance they will go away if you remove the
-march=sandybridge.