GLIBC missmatch Compiler/Linux DE0-Nano-SoC

Guest #4826884
Rate this post
• ▲ useful
▼ 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 
loop:

  #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 
2.15.

My Systems runs on the Linux supplied by terasIC at:

http://www.terasic.com/downloads/cd-rom/de0-nano-soc/linux_BSP/

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,
Alex

Reply

A question of your own? This thread is over 9 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.