Closed ramonpoca closed 6 years ago
This seems to be a bug in the compiler. There might be a workaround, but I don't have a raspberry pi to test on so you will have to work this out yourself, or find someone to help. I would start by trying to compile the C++ example programs and see if any of them fail. Many other things use the code it's complaining about, so maybe you can get an error there as well.
Yep, it's a compiler (linker) bug. I installed gcc 6.4.0 from raspbian-testing and it went like a charm.
Hi @ramonpoca, I'm trying to install gcc 6.4.0 - where did you get it from and did you have to build it first? Thank you!
I installed the testing
raspbian repo.
pi@raspberrypi:~ $ cat /etc/apt/sources.list.d/testing.list
deb http://raspbian.raspberrypi.org/raspbian/ testing main contrib non-free rpi
pi@raspberrypi:~ $ cat /etc/apt/preferences.d/testing.pref
Package: *
Pin: release a=testing
Pin-Priority: 750
pi@raspberrypi:~ $ cat /etc/apt/preferences.d/stretch.pref
Package: *
Pin: release a=stretch
Pin-Priority: 900
But note that it might mess your install. Also, OpenBLAS seem to be messing around (got segfault when using face-recognition).
Helpful, thanks @ramonpoca!!
Similar problem, solved after installing latest clang(7.0.0). Installing newer gcc should work as well, but I prefer clang ;)
Expected Behavior
Successful linking of the bindings.
Current Behavior
Error when linking with several undefined references:
Full cmake dump:
link.txt
reads:Steps to Reproduce