Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

build Toolchain error! who can help me?

Altera_Forum
Honored Contributor II
1,842 Views

I built the toolchain in Fedora12 following  

http://www.nioswiki.com/installnios2linux 

but , I got this error message: 

 

gcc: c-parse.c: no such file or directory 

gcc: no input files 

make[2]: *** [c-parse.o] error 1 

make[2]: leaving directory `/nios2-linux/toolchain-build/build/gcc-bootstrap-build/gcc' 

make[1]: *** [all-gcc] error 2 

make[1]: leaving directory `/nios2-linux/toolchain-build/build/gcc-bootstrap-build' 

make: *** [/nios2-linux/toolchain-build/bui 

 

now please tell me that what i have to do to prevent this error.
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
504 Views

the file is exist: 

[root@f12 ~]# locate c-parse.c 

/nios2-linux/gcc3/gcc/c-parse.c 

/nios2-linux/gcc3/gcc/objc/objc-parse.c 

[root@f12 ~]#  

 

who can tell me how to solve it ? 

 

thanks 

0 Kudos
Altera_Forum
Honored Contributor II
504 Views

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);

0 Kudos
Altera_Forum
Honored Contributor II
504 Views

Thanks! 

 

I can't imagine how you figured that out.
0 Kudos
Altera_Forum
Honored Contributor II
504 Views

 

--- Quote Start ---  

I can't imagine how you figured that out. 

--- Quote End ---  

 

 

He yacc'ed :-) Or grokked YACC.
0 Kudos
Altera_Forum
Honored Contributor II
504 Views

I have much to learn!

0 Kudos
Altera_Forum
Honored Contributor II
504 Views

 

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

 

 

 

you are god!
0 Kudos
Reply