Skip to content

Illegal instruction on NanoPI NEO / Bookworm #34

Description

@skazi0

After upgrading my NanoPI NEO from Bullseye to Bookworm and rebuilding tfrec it started failing with "Illegal instruction".

Trace from gdb:

Thread 1 "tfrec" received signal SIGILL, Illegal instruction.
0x004068fe in whb_demod::demod(int, int, int, short*) ()
(gdb) bt
#0  0x004068fe in whb_demod::demod(int, int, int, short*) ()
#1  0x00404b44 in fsk_demod::process(short*, int) ()
#2  0x004042c6 in engine::run(int) ()
#3  0x00403aa8 in main ()

On Bullseye I had:

$ gcc -march=native -Q --help=target | grep mfpu
  -mfpu=                      		vfpv3-d16

On Bookworm:

$ gcc -march=native -Q --help=target | grep mfpu
  -mfpu=                      		auto

I got it working by changing from -mfpu=crypto-neon-fp-armv8 to -mfpu=auto under # RPi 3/4 32Bit / ifeq ($(ARCH), armv7l).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions