Skip to content

Build Error on Ubuntu #2685

@charles-d-burton

Description

@charles-d-burton

Installed using the .deb package for ubuntu. I'm getting the following permissions error, it's easy enough to fix, just posting this here because I think the .deb needs the permissions updated

❯ tinygo build -target pico -o test.u2f
tinygo:ld.lld: error: cannot open /usr/local/lib/tinygo/pkg/thumbv6m-unknown-unknown-eabi-cortex-m0plus/compiler-rt/lib.a: Permission denied
tinygo:ld.lld: error: cannot open /usr/local/lib/tinygo/pkg/thumbv6m-unknown-unknown-eabi-cortex-m0plus/picolibc/lib.a: Permission denied
failed to run tool: ld.lld
error: failed to link /tmp/tinygo157798778/main: exit status 1
❯ tinygo version
tinygo version 0.22.0 linux/amd64 (using go version go1.17.7 and LLVM version 13.0.0)

The permissions on those files are set to read by root onlY

❯ ls -l /usr/local/lib/tinygo/pkg/thumbv6m-unknown-unknown-eabi-cortex-m0plus/picolibc/lib.a
-rw------- 1 root root 705066 Jan 25 19:00 /usr/local/lib/tinygo/pkg/thumbv6m-unknown-unknown-eabi-cortex-m0plus/picolibc/lib.a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions