Forum: ARM programming with GCC/GNU tools GLIBC missmatch Compiler/Linux DE0-Nano-SoC

von Alex (Guest)

Rate this post
not useful
Hi there,

I started working with a terasIC DE0-Nano-SoC about 4 months ago.
I was both new to FPGA and also Linux at the beginning of my programm.

Recently I wanted to implement more accurate timing of my C-code. SO I 
added following code to try to see how long my programm takes for a 

  #include <time.h>

  struct timespec ts;
  clock_gettime(CLOCK_REALTIME, &ts);
  printf("%d seconds and %ld nanoseconds\n", ts.tv_sec, ts.tv_nsec);

When I tried to execute the file I got the following error:

/lib/libc.co.6: version 'GLIBC_2.17' not found

Upon further investigation I found out that my linux runs on EGLIBC 

My Systems runs on the Linux supplied by terasIC at:


It is Linux version 3.13.0-00298-g3c7cbb9-dirty.

The Toolchain for the cross compiler is also delivered straight from the 
DE0-Nano-SoC_v.1.1.0_SystemCD. This toolchain has GLIBC

Is there anything I can do to resolve this problem: i.E. change the 
GLIBC for either the the Cross compiler or the Linux?

I did read about someone building their own Angstrom system and using 
its instead of the Linux provided by terasIC.
But there was no explanation on how they did it and I am not experienced 
enought to something like that myself.

http://www.alteraforum.com/forum/archive/index.php/t-48207.html - this 
is where I found this.

If there is no easy fix for my situation. Is there a way to have my 
programm execute every 20 us without the time.h header?

Thanks a lot,

von Kirkina A. (Company: no) (alya)

Rate this post
not useful
Better install debian and deal with the end

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.