compile error during installation

Discussion in 'Feeding' started by bortek, Jan 3, 2021.

  1. bortek

    bortek New Member

    Hi

    I am installing adsb-exchange on Raspbian 8 but the installation fails during compilation. I get this error below.

    Looks like it does not like element number 14 in this msg array. Any idea what this can be?

    ----CUT---
    BUILD AND INSTALL FEED CLIENT
    -------------------------------------------------

    Compiling / installing the readsb based feed client

    Cloning into '/tmp/readsb'...
    cc -DMODES_READSB_VERSION=\""wiedehopf git: 712f81c (minimal slice_phase0 tweak, Sun Jan 3 18:57:12 2021 0100)"\" -D_GNU
    _SOURCE -DAIRCRAFT_HASH_BITS=12 -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -c anet.c -o anet.o
    cc -DMODES_READSB_VERSION=\""wiedehopf git: 712f81c (minimal slice_phase0 tweak, Sun Jan 3 18:57:12 2021 0100)"\" -D_GNU
    _SOURCE -DAIRCRAFT_HASH_BITS=12 -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -c interactive.c -o int
    eractive.o
    cc -DMODES_READSB_VERSION=\""wiedehopf git: 712f81c (minimal slice_phase0 tweak, Sun Jan 3 18:57:12 2021 0100)"\" -D_GNU
    _SOURCE -DAIRCRAFT_HASH_BITS=12 -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -c mode_ac.c -o mode_ac
    .o
    cc -DMODES_READSB_VERSION=\""wiedehopf git: 712f81c (minimal slice_phase0 tweak, Sun Jan 3 18:57:12 2021 0100)"\" -D_GNU
    _SOURCE -DAIRCRAFT_HASH_BITS=12 -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -c mode_s.c -o mode_s.o
    cc -DMODES_READSB_VERSION=\""wiedehopf git: 712f81c (minimal slice_phase0 tweak, Sun Jan 3 18:57:12 2021 0100)"\" -D_GNU
    _SOURCE -DAIRCRAFT_HASH_BITS=12 -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -c comm_b.c -o comm_b.o
    cc -DMODES_READSB_VERSION=\""wiedehopf git: 712f81c (minimal slice_phase0 tweak, Sun Jan 3 18:57:12 2021 0100)"\" -D_GNU
    _SOURCE -DAIRCRAFT_HASH_BITS=12 -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -c net_io.c -o net_io.o
    net_io.c: In function ‘decodeBinMessage’:
    net_io.c:1747:20: error: iteration 14u invokes undefined behavior [-Werror=aggressive-loop-optimizations]
    msg[j] = ch = *p++;
    ^
    net_io.c:1746:9: note: containing loop
    for (j = 0; j < 21; j++) { // and the data
    ^
    cc -DMODES_READSB_VERSION=\""wiedehopf git: 712f81c (minimal slice_phase0 tweak, Sun Jan 3 18:57:12 2021 0100)"\" -D_GNU_SOURCE -DAIRCRAFT_HASH_BITS=12 -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -c crc.c -o crc.o
    cc -DMODES_READSB_VERSION=\""wiedehopf git: 712f81c (minimal slice_phase0 tweak, Sun Jan 3 18:57:12 2021 0100)"\" -D_GNU_SOURCE -DAIRCRAFT_HASH_BITS=12 -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -c demod_2400.c -o demod_2400.o
    cc -DMODES_READSB_VERSION=\""wiedehopf git: 712f81c (minimal slice_phase0 tweak, Sun Jan 3 18:57:12 2021 0100)"\" -D_GNU_SOURCE -DAIRCRAFT_HASH_BITS=12 -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -c stats.c -o stats.o
    cc -DMODES_READSB_VERSION=\""wiedehopf git: 712f81c (minimal slice_phase0 tweak, Sun Jan 3 18:57:12 2021 0100)"\" -D_GNU_SOURCE -DAIRCRAFT_HASH_BITS=12 -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -c cpr.c -o cpr.o
    cc -DMODES_READSB_VERSION=\""wiedehopf git: 712f81c (minimal slice_phase0 tweak, Sun Jan 3 18:57:12 2021 0100)"\" -D_GNU_SOURCE -DAIRCRAFT_HASH_BITS=12 -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -c icao_filter.c -o icao_filter.o
    cc -DMODES_READSB_VERSION=\""wiedehopf git: 712f81c (minimal slice_phase0 tweak, Sun Jan 3 18:57:12 2021 0100)"\" -D_GNU_SOURCE -DAIRCRAFT_HASH_BITS=12 -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -c track.c -o track.o
    cc -DMODES_READSB_VERSION=\""wiedehopf git: 712f81c (minimal slice_phase0 tweak, Sun Jan 3 18:57:12 2021 0100)"\" -D_GNU_SOURCE -DAIRCRAFT_HASH_BITS=12 -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -c util.c -o util.o
    cc1: all warnings being treated as errors
    Makefile:79: recipe for target 'net_io.o' failed
    make: *** [net_io.o] Error 1
    make: *** Waiting for unfinished jobs....
    cp: cannot stat ‘readsb’: No such file or directory
     
  2. wiedehopf

    wiedehopf Administrator Staff Member

    ty for reporting i'll check
     
  3. wiedehopf

    wiedehopf Administrator Staff Member

    try now.
     
  4. bortek

    bortek New Member

    Thanks for fixing it. It works now!

    I am curious what was the culprit and how did you resolve it?
     
  5. wiedehopf

    wiedehopf Administrator Staff Member

    Array used was too short for that part of the function (rare radarcape position message so didn't notice).