Open yuyat opened 6 years ago
Any chance you can get make to run in English? I cannot understand the error!
Any chance you can get make to run in English? I cannot understand the error!
Sure, my fault. I tried to downgrade gcc version to make sure that version 6.3 doesn't have bugs. (ocurrs the same) In raspbian Jessie + GCC 4.9.3 it works perfect.
[ -d _build ] || mkdir _build
[ -f _build/Makefile ] || (cd _build && cmake -DCMAKE_BUILD_TYPE=Release ..)
make -C _build
make[1]: Entering directory '/tmp/mjpg-streamer/mjpg-streamer-experimental/_build'
make[2]: Entering directory '/tmp/mjpg-streamer/mjpg-streamer-experimental/_build'
make[3]: Entering directory '/tmp/mjpg-streamer/mjpg-streamer-experimental/_build'
make[3]: Leaving directory '/tmp/mjpg-streamer/mjpg-streamer-experimental/_build'
make[3]: Entering directory '/tmp/mjpg-streamer/mjpg-streamer-experimental/_build'
[ 4%] Building C object CMakeFiles/mjpg_streamer.dir/mjpg_streamer.c.o
[ 8%] Building C object CMakeFiles/mjpg_streamer.dir/utils.c.o
[ 12%] Linking C executable mjpg_streamer
make[3]: Leaving directory '/tmp/mjpg-streamer/mjpg-streamer-experimental/_build'
[ 12%] Built target mjpg_streamer
make[3]: Entering directory '/tmp/mjpg-streamer/mjpg-streamer-experimental/_build'
make[3]: Leaving directory '/tmp/mjpg-streamer/mjpg-streamer-experimental/_build'
make[3]: Entering directory '/tmp/mjpg-streamer/mjpg-streamer-experimental/_build'
[ 16%] Building C object plugins/input_file/CMakeFiles/input_file.dir/input_file.c.o
[ 20%] Linking C shared library input_file.so
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/libc.a(dl-tsd.o)(.text+0x14): R_ARM_TLS_LE32 relocation not permitted in shared object
/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/libc.a(dl-tsd.o): In function `_dl_initial_error_catch_tsd':
(.text+0x14): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
plugins/input_file/CMakeFiles/input_file.dir/build.make:94: recipe for target 'plugins/input_file/input_file.so' failed
make[3]: *** [plugins/input_file/input_file.so] Error 1
make[3]: Leaving directory '/tmp/mjpg-streamer/mjpg-streamer-experimental/_build'
CMakeFiles/Makefile2:122: recipe for target 'plugins/input_file/CMakeFiles/input_file.dir/all' failed
make[2]: *** [plugins/input_file/CMakeFiles/input_file.dir/all] Error 2
make[2]: Leaving directory '/tmp/mjpg-streamer/mjpg-streamer-experimental/_build'
Makefile:127: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/tmp/mjpg-streamer/mjpg-streamer-experimental/_build'
Makefile:17: recipe for target 'all' failed
make: *** [all] Error 2
I have tried the latest stretch image on both a 3B and original B and cannot reproduce this. Which pi are you using and is there anything special about your setup e.g. what's been installed/configured that could be causing it?
Have you done anything which could have changed libc, build paths, etc?
I'm not ruling it out being a linker flag issue or something I can fix, but It doesn't look like it happens on a 'clean' raspbian and I need to be able to reproduce it to fix it.
I have tried the latest stretch image on both a 3B and original B and cannot reproduce this. Which pi are you using and is there anything special about your setup e.g. what's been installed/configured that could be causing it?
Have you done anything which could have changed libc, build paths, etc?
I'm not ruling it out being a linker flag issue or something I can fix, but It doesn't look like it happens on a 'clean' raspbian and I need to be able to reproduce it to fix it.
3B Formatted a couple of days ago. Firmware updated with:
rpi-update
Installed:
nvm
Octoprint (as a service)
Openvpn
and dependencies
I'll try to format and start again. Thank you
=========
cat /etc/os-release