FyshOS / fynedesk

A full desktop environment for Linux/Unix using Fyne
https://fyne.io/fynedesk/
Other
1.02k stars 47 forks source link

Fails to build on Ubuntu LTS #258

Closed arky closed 7 months ago

arky commented 7 months ago

Fails to build on Ubuntu LTS with go version 1.22.2

Describe the bug:

To Reproduce:

Steps to reproduce the behaviour:

  1. Git clone fynedesk
  2. make
    
    # runtime/internal/sys
    /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:9:7: len8tab redeclared in this block
    /usr/local/go/src/runtime/internal/sys/intrinsics.go:76:7: other declaration of len8tab
    /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:32:6: Len64 redeclared in this block
    /usr/local/go/src/runtime/internal/sys/intrinsics.go:99:6: other declaration of Len64
    /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:50:7: m0 redeclared in this block
    /usr/local/go/src/runtime/internal/sys/intrinsics.go:117:7: other declaration of m0
    /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:51:7: m1 redeclared in this block
    /usr/local/go/src/runtime/internal/sys/intrinsics.go:118:7: other declaration of m1
    /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:52:7: m2 redeclared in this block
    /usr/local/go/src/runtime/internal/sys/intrinsics.go:119:7: other declaration of m2
    /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:55:6: OnesCount64 redeclared in this block
    /usr/local/go/src/runtime/internal/sys/intrinsics.go:122:6: other declaration of OnesCount64
    /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:86:6: LeadingZeros64 redeclared in this block
    /usr/local/go/src/runtime/internal/sys/intrinsics.go:153:6: other declaration of LeadingZeros64
    /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:89:6: LeadingZeros8 redeclared in this block
    /usr/local/go/src/runtime/internal/sys/intrinsics.go:156:6: other declaration of LeadingZeros8
    /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:92:6: Len8 redeclared in this block
    /usr/local/go/src/runtime/internal/sys/intrinsics.go:159:6: other declaration of Len8
    /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:101:6: Prefetch redeclared in this block
    /usr/local/go/src/runtime/internal/sys/intrinsics.go:200:6: other declaration of Prefetch
    /usr/local/go/src/runtime/internal/sys/intrinsics_common.go:101:6: too many errors

### Screenshots:
<!-- If applicable, add screenshots or gifs to help explain your problem. -->

### Example code:
<!-- If applicable, add a short code snippet to help explain and simplify reproduction of the problem. -->
<!-- Please write the code inside a code block with go syntax, like this:
```go
Write your code here.

-->

Device (please complete the following information)

$ go version go version go1.22.2 linux/amd64

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy

arky commented 7 months ago

This issue is caused by a corrupt installation. Removing the go folders and reinstalling the go executable resolved the issue.