gateway MQTT



  • Hello,
    I'm trying to rebuild my Mysensors MQTT Gateway on an RPI and I'm getting compilation errors. I've searched the forums and found nothing. I've tried --branch master and --branch development without success. I don't know how to resolve this. Thanks.

    mm@gatewayx:~/MySensors $ sudo ./configure --my-controller-ip-address=192.168.0.30 --my-transport=rf24 --my-rf24-irq-pin=15 --my-gateway=mqtt --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=gwmysensors --my-mqtt-user=mqtt --my-mqtt-password=x
    [SECTION] Detecting target machine.
      [OK] machine detected: SoC=BCM2835, Type=rpi1, CPU=armv6l.
    [SECTION] Detecting SPI driver.
      [OK] SPI driver detected:BCM.
    [SECTION] Gateway configuration.
      [OK] Type: mqtt.
      [OK] Transport: rf24.
      [OK] Signing: Disabled.
      [OK] Encryption: Disabled.
      [OK] CPPFLAGS: -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -DMY_MQTT_PASSWORD="x" -DMY_MQTT_USER="mqtt" -DMY_MQTT_CLIENT_ID="gwmysensors" -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX="mysensors-in" -DMY_MQTT_PUBLISH_TOPIC_PREFIX="mysensors-out" -DMY_RX_MESSAGE_BUFFER_FEATURE -DMY_RF24_IRQ_PIN=15 -DMY_CONTROLLER_IP_ADDRESS=192,168,0,30
      [OK] CXXFLAGS:  -std=c++11
    [SECTION] Detecting init system.
      [OK] Init system detected: systemd.
    [SECTION] Saving configuration.
      [OK] Saved.
    [SECTION] Cleaning previous builds.
      [OK] Finished.
    mm@gatewayx:~/MySensors $ make
    gcc -MT build/hal/architecture/Linux/drivers/core/config.o -MMD -MP -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_GATEWAY_MQTT_CLIENT -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -DMY_MQTT_PASSWORD=\"x\" -DMY_MQTT_USER=\"mqtt\" -DMY_MQTT_CLIENT_ID=\"gwmysensors\" -DMY_MQTT_SUBSCRIBE_TOPIC_PREFIX=\"mysensors-in\" -DMY_MQTT_PUBLISH_TOPIC_PREFIX=\"mysensors-out\" -DMY_RX_MESSAGE_BUFFER_FEATURE -DMY_RF24_IRQ_PIN=15 -DMY_CONTROLLER_IP_ADDRESS=192,168,0,30  -Ofast -g -Wall -Wextra  -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/config.c -o build/hal/architecture/Linux/drivers/core/config.o
    gcc: internal compiler error: Illegal instruction signal terminated program cc1
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
    make: *** [Makefile:103: build/hal/architecture/Linux/drivers/core/config.o] Error 4
    mm@gatewayx:~/MySensors $ uname -a
    Linux gatewayx 6.1.21+ #1642 Mon Apr  3 17:19:14 BST 2023 armv6l GNU/Linux
    mm@gatewayx:~/MySensors $ uname -r
    6.1.21+
    mm@gatewayx:~/MySensors $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Raspbian
    Description:    Raspbian GNU/Linux 11 (bullseye)
    Release:        11
    Codename:       bullseye
    


  • I don't have a good answer for you @mimaret 😞 When I get to the point where I'm getting strange error messages, I bite the bullet and start from ground zero. Fortunately, with the RPi you just need a new SD card.

    Start with a fresh copy of the Raspberry Pi OS. If you enable SSH (and WiFI) when you create the image, you can do everything headless (without keyboard-mouse-video) by running raspi-config via a remote terminal ( PuTTY ) If you enable VNC with raspi-config you can have access to the GUI.
    Double check your radio wiring.
    Don't have anything unnecessary plugged in.
    Carefully follow the instructions

    I've done this tedious process many times. My RPi's are 3B+ and Zero 2 W. Here's what I've encountered:

    • bad power supply
    • bad SD card
    • bad wiring
    • corrupt download
    • and, of course, more user errors than I care to think about!
    • I have not come across bad RPi ... no, not true! I had a Zero 2 W with a bad WiFi chip (common problem). Overcame that with a USB WiFi dongle.

    Good luck! Let us know what you discover.

    -OSD


Log in to reply
 

Suggested Topics

  • 4
  • 7
  • 5
  • 5
  • 5
  • 18

40
Online

11.6k
Users

11.2k
Topics

112.9k
Posts