Menu

Cannot compile on 64-bit Raspbian OS

Paulius
2022-08-08
2022-08-09
  • Paulius

    Paulius - 2022-08-08

    Hello, I'm unable to compile snap7 on RPi 4 with the latest 64-bit Raspbian OS (made a fresh install today). I'm not sure if I'm even supposed to be able, as 64-bit RPi is not listed as supported in the compatability -> OS table, but "Raspberry Pi 4 ARM V7 x64 (02-11-2020)" is mentioned in the IOT downloads readme.

    Anyhow, it would be great if you supported latest 64-bit RPi 4, or if you gave me a hint on what I'm doing wrong. So far it went as follows:

    pi@raspberrypi:~/testbuild $ sudo apt install build-essential
    ...
    build-essential is already the newest version (12.9).
    pi@raspberrypi:~/testbuild $ wget https://netix.dl.sourceforge.net/project/snap7/Snap7-IoT/snap7-iot-arm/snap7-iot-arm-1.4.2.tar.gz
    ...
    pi@raspberrypi:~/testbuild $ tar -xf snap7-iot-arm-1.4.2.tar.gz
    pi@raspberrypi:~/testbuild $ cd snap7-iot-arm-1.4.2/build/unix/
    pi@raspberrypi:~/testbuild/snap7-iot-arm-1.4.2/build/unix $ make -f arm_v7_linux.mk all
    g++ -c  "../../src/sys/snap_msgsock.cpp" -O3 -g -fPIC -mword-relocations -pedantic -o ../temp/arm_v7/sys_snap_msgsock.o -I. -I../../src/sys -I../../src/core -I../../src/lib 
    g++: error: unrecognized command-line option '-mword-relocations'
    make: *** [common.mk:67: ../temp/arm_v7/sys_snap_msgsock.o] Error 1
    pi@raspberrypi:~/testbuild/snap7-iot-arm-1.4.2/build/unix $ uname -m
    aarch64
    
     

    Last edit: Paulius 2022-08-08
  • Davide Nardella

    Davide Nardella - 2022-08-09

    just delete -mword-relocations from the makefile.
    It's no longer needed

     
    👍
    2

Log in to post a comment.