EmbDev.net

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


Author: Alex (Guest)
Posted on:

Rate this post
0 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-s...

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

Author: Kirkina Alya (Company: no) (alya)
Posted on:

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

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.