Altera_Forum
Honored Contributor
10 years agoGLIBC incompatibility
Hello guys,
I'm running some tests in my DE1-SoC board with Linux. I want to test the communication speeds between the HPS and the FPGA using the different available options. In order so, for the first attempt, I'll request a timer from Linux, check its resolution and try to time the data transfers. I'm using the <time.h> library and the clock functions like: int clock_getres(clockid_t clk_id, struct timespec *res);int clock_gettime(clockid_t clk_id, struct timespec *tp);
int clock_settime(clockid_t clk_id, const struct timespec *tp);
but this is where the problem happens. I get the following error message from the board Linux: ./hps-fpga_read-write_timer: /lib/libc.so.6: version `GLIBC_2.17' not found (required by ./hps-fpga_read-write_timer) root@socfpga:~# I checked the GLIBC running on the Linux image provided and this is what I got: GNU C Library (Ubuntu EGLIBC 2.15-0ubuntu10) stable release version 2.15, by Roland McGrath et al. Copyright (C) 2012 Free Software Foundation, Inc. (...) The Linux image and tool-chain where downloaded in the same, and are still updated: Linux image version: Linux Console 3.12 4GB 66495 2014-01-14 Toolchain: DE1-SoC CD-ROM (rev.C/rev.D Board) 3.1.2 2015-01-23 So, from what I can understand, the provided tool-chain and the Linux image do not have the same GLIBC version, which happens to be no back compatible. Could you please confirm this? My question is how to fix this. Do I have to recompile a Linux image from scratch? or can the GLIBC only be updated? Should I also consider to downgrade the GLIBC on the tool-chain side? regards, Filipe