Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#46901 - [binutils] 2.25.1 as tool can't assemble go optimized popcnt in popcnt_amd64.s

Attached to Project: Arch Linux
Opened by Nicolas PLANEL (nplanel) - Wednesday, 28 October 2015, 14:48 GMT
Last edited by Allan McRae (Allan) - Thursday, 29 October 2015, 04:30 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Binutils _as_ seems buggy as is not able to compile the optimized version of popcnt go assembly routine on x86_64.


Additional info:
* package version : 2.25.1-3

Steps to reproduce:

wget https://raw.githubusercontent.com/golang/tools/master/container/intsets/popcnt_amd64.s
as popcnt_amd64.s

Output :

popcnt_amd64.s: Assembler messages:
popcnt_amd64.s:8: Error: no such instruction: `text ·havePOPCNT(SB),4,$0'
popcnt_amd64.s:13: Error: too many memory references for `mov'
popcnt_amd64.s:17: Error: no such instruction: `text ·popcnt(SB),NOSPLIT,$0-8'
popcnt_amd64.s:18: Error: too many memory references for `xor'
popcnt_amd64.s:19: Error: junk `(FP)' after expression
popcnt_amd64.s:19: Error: too many memory references for `movq'
popcnt_amd64.s:22: Error: no such instruction: `byte $0xf3'
popcnt_amd64.s:23: Error: no such instruction: `byte $0x48'
popcnt_amd64.s:24: Error: no such instruction: `byte $0x0f'
popcnt_amd64.s:25: Error: no such instruction: `byte $0xb8'
popcnt_amd64.s:26: Error: no such instruction: `byte $0xc6'
popcnt_amd64.s:27: Error: too many memory references for `movq'
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 29 October 2015, 04:30 GMT
Reason for closing:  Not a bug
Comment by Allan McRae (Allan) - Thursday, 29 October 2015, 03:40 GMT
That file has '#include "textflag.h"' in it. Do you have that file and have you put it through a C preprocessor etc..
Comment by Nicolas PLANEL (nplanel) - Thursday, 29 October 2015, 04:06 GMT
Hmmm after more inspection I found that golang didn't include/have "textflag.h" anymore

To reproduce (from user perspective)
# go get -u golang.org/x/tools/container/intsets

So it's not an binutils/as bug but an golang/gcc-go bug.
You can close this bug.

Thanks

Loading...