Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make install fails with "cannot find -lgo_cosmwasm" on arm64 / RaspberryPi 4B #6

Open
chrishobcroft opened this issue Sep 17, 2020 · 1 comment

Comments

@chrishobcroft
Copy link

Summary

When attempting to build from this repository on Raspberry Pi 4 8GB 64-bit arm64 processor, using make install, the process fails, reporting the following:

# github.com/CosmWasm/go-cosmwasm/api
/usr/bin/ld: skipping incompatible ../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/libgo_cosmwasm.so when searching for -lgo_cosmwasm
/usr/bin/ld: cannot find -lgo_cosmwasm
collect2: error: ld returned 1 exit status
make: *** [Makefile:79: install] Error 2

Steps to reproduce

  1. Download the Debian-based 2020-08-20-raspios-buster-arm64.img Operating System image and write onto a microSD card
  2. Configure Operating System to connect to WiFi, and to allow inbound ssh.
  3. Insert microSD card into Raspberry Pi 4 (Model B), and power on.
  4. Connect to RPi over ssh
  5. Run the following commands to update the OS, install pre-requisites, straightedge software, and attempt to build strd and strcli:
sudo apt update
sudo apt upgrade -y
sudo apt install -y make git gcc jq
wget https://golang.org/dl/go1.15.2.linux-arm64.tar.gz
tar -C /home/pi -xzf go1.15.2.linux-arm64.tar.gz
export PATH=$PATH:/home/pi/go/bin
git clone https://github.com/heystraightedge/straightedge.git
cd straightedge
git checkout v0.2.0
make install

Environment

pi@validator:~/straightedge $  uname -r
5.4.51-v8+
pi@validator:~/straightedge $  hostnamectl
   Static hostname: validator
         Icon name: computer
        Machine ID: e6ce83939be64212b6bdccb57ded8bef
           Boot ID: 4d5f076f947a43a4a3dfa6fe046b6542
  Operating System: Debian GNU/Linux 10 (buster)
            Kernel: Linux 5.4.51-v8+
      Architecture: arm64
pi@validator:~/straightedge $ lscpu
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
Vendor ID:           ARM
Model:               3
Model name:          Cortex-A72
Stepping:            r0p3
CPU max MHz:         1500.0000
CPU min MHz:         600.0000
BogoMIPS:            108.00
Flags:               fp asimd evtstrm crc32 cpuid
pi@validator:~/straightedge $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
@chrishobcroft
Copy link
Author

The same happens on armv6l running on a RaspberryPi Zero W

image

Environment:

pi@raspberrypi:~ $ uname -r
5.4.51+
pi@raspberrypi:~ $ hostnamectl
   Static hostname: raspberrypi
         Icon name: computer
        Machine ID: 506d43eb68ce4ca891371a652e6f3657
           Boot ID: cba3815222784546a79bff143ae56277
  Operating System: Raspbian GNU/Linux 10 (buster)
            Kernel: Linux 5.4.51+
      Architecture: arm
pi@raspberrypi:~ $ lscpu
Architecture:        armv6l
Byte Order:          Little Endian
CPU(s):              1
On-line CPU(s) list: 0
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           1
Vendor ID:           ARM
Model:               7
Model name:          ARM1176
Stepping:            r0p7
CPU max MHz:         1000.0000
CPU min MHz:         700.0000
BogoMIPS:            997.08
Flags:               half thumb fastmult vfp edsp java tls
pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant