Forum Discussion
Altera_Forum
Honored Contributor
16 years agoIt's amazing what you'll find when you scour the forums...
I came across this thread: http://forum.niosforum.com/forum/index.php?showtopic=6959 (http://forum.niosforum.com/forum/index.php?showtopic=6959) which is something of a release note for the 20090730 release of the nios2-linux package. Further down the thread actris has a post saying... <div class='quotetop'>QUOTE </div> --- Quote Start --- To compile 20090703 toolchain on a linux ubuntu 9.04 you need to do the followings : - /nios2-linux/gcc3/gcc/collect.c line 1537 : redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT); needs to be rewrite as below redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT,777); - buffer overflow on nios2-linux-uclibc-ar the toolchain need to be compiled with gcc4.2[/b] --- Quote End --- After modifying collect2.c (for some reason my file was named differently), installing gcc 4.2 (remember to re-direct the /usr/bin/gcc link!), and running a git clean, I was able to successfully compile. Hopefully this info is helpful to people running Ubuntu 9.04 and having issues compiling!