Alpine Linux run/compile problem
Posted: Wed Mar 18, 2020 2:50 am
Hello RP community/team and Pavel Demin
Starting from here
viewtopic.php?f=14&t=24535
I decided to open a new topic to keep things transparent.
I have to detect ultrasonic pulse reflection time in liquid medium from bottom to surface and back. Quite a simple task, but requires at least 2 MHz sample rate, which is out of scope for Cypress Psoc 5LP which I'm familiar with and intended to use for this project at the beginning.
Short pulse of around 200V is generated on the transducer and then received as 100mV reflection. Visible with the RP oscilloscope app. There are some other things involved via i2c slave. Bluetooth is the preffered communication between measurement device and graphically rich Android application, wi-fi is acceptable also.
The official C example "acquire_trigger_software.c" with fpga_0.94.bin covers basic requirements. I2c part also works OK. The official linux system suffers from possible sd card corruption caused by intermittent power off. Starting custom program at RP power on also presents a challenge at some degree. I would like my RP behave just like ordinary MCU.
Pavel Demin suggested me to look at his project based on Alpine Linux. This solves the upper two problems. At this point I hope I somehow did my first homework - read the intro docs and some other things also.
I git the https://github.com/pavel-demin/red-pitaya-notes
"adc-recorder-trigger" covers the task, but requires to do all the fpga stuff from .tcl to .bin file. This seems quite steep for me at the moment. I grew up with MS Windows, Linux is my weak topic for now. Migration from Arduino to Cypress was quite similar in this aspect. I would like to avoid Vivado stuff for now if possible and build my C code around pre-made fpga configuration.
From my aspect it would be nice if I could compile/run the official C examples with fpga_0.94.bit on the Alpine Linux.
Copying the executable of the official "digital_led_blink", fpga image and running the program:
rp-f05fc9:/media/mmcblk0p1/CExamples# cat fpga.bit > /dev/xdevcfg
rp-f05fc9:/media/mmcblk0p1/CExamples# ./digital_led_blink
-ash: ./digital_led_blink: not found
Compiling digital_led_blink.c also fails... :
rp-f05fc9:/media/mmcblk0p1/CExamples# make digital_led_blink
cc -g -std=gnu99 -Wall -Werror -I/media/mmcblk0p1/CExamples -L/media/mmcblk0p1/CExamples digital_led_blink.c -lm -lpthread -lrp -o digital_led_blink
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: warning: libm.so.6, needed by /media/mmcblk0p1/CExamples/librp.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: warning: libpthread.so.0, needed by /media/mmcblk0p1/CExamples/librp.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: warning: libc.so.6, needed by /media/mmcblk0p1/CExamples/librp.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: warning: ld-linux-armhf.so.3, needed by /media/mmcblk0p1/CExamples/librp.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `fclose@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `cos@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `floor@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `munmap@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `raise@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `asin@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `close@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `malloc@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `fread@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `__sprintf_chk@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `__errno_location@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `sysconf@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `__stack_chk_guard@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `fwrite@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `exit@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `pow@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `fseek@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `__fprintf_chk@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `strerror@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `roundf@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `__isoc99_fscanf@GLIBC_2.7'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `mmap@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `stderr@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `acos@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `fputs@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `memcpy@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `free@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `rand@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `fopen@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `sqrt@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `sin@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `log10@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `open@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `round@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `usleep@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `sincos@GLIBC_2.4'
collect2: error: ld returned 1 exit status
make: *** [<builtin>: digital_led_blink] Error 1
rp-f05fc9:/media/mmcblk0p1/CExamples#
I guess the problem is between musl libc and glibc. I read somewhere glibc should be avoided on Alpine Linux...
Any suggestions?
BR, kas
Starting from here
viewtopic.php?f=14&t=24535
I decided to open a new topic to keep things transparent.
I have to detect ultrasonic pulse reflection time in liquid medium from bottom to surface and back. Quite a simple task, but requires at least 2 MHz sample rate, which is out of scope for Cypress Psoc 5LP which I'm familiar with and intended to use for this project at the beginning.
Short pulse of around 200V is generated on the transducer and then received as 100mV reflection. Visible with the RP oscilloscope app. There are some other things involved via i2c slave. Bluetooth is the preffered communication between measurement device and graphically rich Android application, wi-fi is acceptable also.
The official C example "acquire_trigger_software.c" with fpga_0.94.bin covers basic requirements. I2c part also works OK. The official linux system suffers from possible sd card corruption caused by intermittent power off. Starting custom program at RP power on also presents a challenge at some degree. I would like my RP behave just like ordinary MCU.
Pavel Demin suggested me to look at his project based on Alpine Linux. This solves the upper two problems. At this point I hope I somehow did my first homework - read the intro docs and some other things also.
I git the https://github.com/pavel-demin/red-pitaya-notes
"adc-recorder-trigger" covers the task, but requires to do all the fpga stuff from .tcl to .bin file. This seems quite steep for me at the moment. I grew up with MS Windows, Linux is my weak topic for now. Migration from Arduino to Cypress was quite similar in this aspect. I would like to avoid Vivado stuff for now if possible and build my C code around pre-made fpga configuration.
From my aspect it would be nice if I could compile/run the official C examples with fpga_0.94.bit on the Alpine Linux.
Copying the executable of the official "digital_led_blink", fpga image and running the program:
rp-f05fc9:/media/mmcblk0p1/CExamples# cat fpga.bit > /dev/xdevcfg
rp-f05fc9:/media/mmcblk0p1/CExamples# ./digital_led_blink
-ash: ./digital_led_blink: not found
Compiling digital_led_blink.c also fails... :
rp-f05fc9:/media/mmcblk0p1/CExamples# make digital_led_blink
cc -g -std=gnu99 -Wall -Werror -I/media/mmcblk0p1/CExamples -L/media/mmcblk0p1/CExamples digital_led_blink.c -lm -lpthread -lrp -o digital_led_blink
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: warning: libm.so.6, needed by /media/mmcblk0p1/CExamples/librp.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: warning: libpthread.so.0, needed by /media/mmcblk0p1/CExamples/librp.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: warning: libc.so.6, needed by /media/mmcblk0p1/CExamples/librp.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: warning: ld-linux-armhf.so.3, needed by /media/mmcblk0p1/CExamples/librp.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `fclose@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `cos@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `floor@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `munmap@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `raise@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `asin@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `close@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `malloc@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `fread@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `__sprintf_chk@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `__errno_location@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `sysconf@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `__stack_chk_guard@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `fwrite@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `exit@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `pow@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `fseek@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `__fprintf_chk@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `strerror@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `roundf@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `__isoc99_fscanf@GLIBC_2.7'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `mmap@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `stderr@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `acos@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `fputs@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `memcpy@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `free@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `rand@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `fopen@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `sqrt@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `sin@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `log10@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `open@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `round@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `usleep@GLIBC_2.4'
/usr/lib/gcc/armv7-alpine-linux-musleabihf/8.3.0/../../../../armv7-alpine-linux-musleabihf/bin/ld: /media/mmcblk0p1/CExamples/librp.so: undefined reference to `sincos@GLIBC_2.4'
collect2: error: ld returned 1 exit status
make: *** [<builtin>: digital_led_blink] Error 1
rp-f05fc9:/media/mmcblk0p1/CExamples#
I guess the problem is between musl libc and glibc. I read somewhere glibc should be avoided on Alpine Linux...
Any suggestions?
BR, kas