- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 directorygcc: 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.
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!
I can't imagine how you figured that out.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- I can't imagine how you figured that out. --- Quote End --- He yacc'ed :-) Or grokked YACC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have much to learn!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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!
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page