Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12409 Discussions

nios2-linux-20100621 toolchain build errors(on Ubuntu 11.10)

Altera_Forum
Honored Contributor II
992 Views

Hi, 

I'm trying to install uclinux( nios2-linux-20100621 ), my OS is Ubuntu 11.10. 

When build the toolchain 

cd toolchain-build git clean -f -x -d make gcc elf2flt gdb-host  

I got errors: 

/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o ihex.lo /home/yang/nios2-linux/toolchain-build/../insight/bfd/ihex.c gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c /home/yang/nios2-linux/toolchain-build/../insight/bfd/ihex.c -o ihex.o /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o stabs.lo /home/yang/nios2-linux/toolchain-build/../insight/bfd/stabs.c gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c /home/yang/nios2-linux/toolchain-build/../insight/bfd/stabs.c -o stabs.o /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o stab-syms.lo /home/yang/nios2-linux/toolchain-build/../insight/bfd/stab-syms.c gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c /home/yang/nios2-linux/toolchain-build/../insight/bfd/stab-syms.c -o stab-syms.o /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o merge.lo /home/yang/nios2-linux/toolchain-build/../insight/bfd/merge.c gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c /home/yang/nios2-linux/toolchain-build/../insight/bfd/merge.c -o merge.o /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o dwarf2.lo /home/yang/nios2-linux/toolchain-build/../insight/bfd/dwarf2.c gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c /home/yang/nios2-linux/toolchain-build/../insight/bfd/dwarf2.c -o dwarf2.o /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o simple.lo /home/yang/nios2-linux/toolchain-build/../insight/bfd/simple.c gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c /home/yang/nios2-linux/toolchain-build/../insight/bfd/simple.c -o simple.o /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o archive64.lo /home/yang/nios2-linux/toolchain-build/../insight/bfd/archive64.c gcc -DHAVE_CONFIG_H -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I. -I. -I/home/yang/nios2-linux/toolchain-build/../insight/bfd -I/home/yang/nios2-linux/toolchain-build/../insight/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c /home/yang/nios2-linux/toolchain-build/../insight/bfd/archive64.c -o archive64.o /home/yang/nios2-linux/toolchain-build/../insight/bfd/archive64.c: In function 'bfd_elf64_archive_slurp_armap': /home/yang/nios2-linux/toolchain-build/../insight/bfd/archive64.c:45:12: error: variable 'arhdrpos' set but not used cc1: all warnings being treated as errors make: *** error 1 make:Leaving directory `/home/yang/nios2-linux/toolchain-build/build/gdb-host/bfd' make: *** error 1 make:Leaving directory `/home/yang/nios2-linux/toolchain-build/build/gdb-host/bfd' make: *** error 2 make:Leaving directory `/home/yang/nios2-linux/toolchain-build/build/gdb-host/bfd' make: *** error 2 make:Leaving directory `/home/yang/nios2-linux/toolchain-build/build/gdb-host' make: *** error 2 make:Leaving directory `/home/yang/nios2-linux/toolchain-build/build/gdb-host' make: *** error 2  

I'm following this altera-wiki: 

http://www.alterawiki.com/wiki/install_nios_ii_linux#on_debian.2fubuntu

How can I fix these errors? 

 

need help, thanks in advance, 

 

Yang
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
87 Views

Before these errors, I overcome the error below: 

gcc: c-parse.c: No such file or directory gcc: no input files make: *** Error 1 make: Leaving directory `/nios2-linux/toolchain-build/build/gcc-bootstrap-build/gcc' make: *** Error 2 make: Leaving directory `/nios2-linux/toolchain-build/build/gcc-bootstrap-build' make: *** [/nios2-linux/toolchain-build/bui  

 

by doing what Magog said 

 

--- Quote Start ---  

 

We had the same problem. It can be solved by modifying file nios2-linux/gcc3/gcc/c-parse.y. From the line 1650, 1661, 1670 and 1675 modify $$ to $<ttype>$. For example change the line 1650 from { $$ = start_struct (RECORD_TYPE, $2); to { $<ttype>$ = start_struct (RECORD_TYPE, $2); 

 

--- Quote End ---  

 

in 

http://www.alteraforum.com/forum/showthread.php?t=22528
Reply