Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHi,
--- Quote Start --- But I have another question: How can i compile programms for this linux? I tried these instructions: http://www.alterawiki.com/wiki/binarytoolchain http://www.alterawiki.com/wiki/compile_hello I compile programm in this way: nios2-linux-uclibc-gcc hello.c -o hello -elf2flt Then i have a binary file. But when i try to run it on DE2-115 it gives me error like this:
syntax error: unexpected "("
--- Quote End --- The welcome message is 'uClinux' , but the kernel is a "genuine" linux kernel which is using MMU. So you need the toolchain which supports those. Please refer http://www.rocketboards.org/foswiki/documentation/niosiilinuxusermanual or somewhere. I'm using the next version.
kazu-Latitude-E5500:~$ nios2-wrs-linux-gnu-gcc --version
nios2-wrs-linux-gnu-gcc (Wind River Linux Sourcery G++ 4.1-176) 4.1.2
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Kazu