找回密码
 注册
关于网站域名变更的通知
查看: 154|回复: 1
打印 上一主题 下一主题

nios ii 编译报错问题解决办法

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2019-5-14 17:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x
nios ii 编译报错问题解决办法
关键之处是把相应的编译软件改为与XP SP3或SP2的兼容模式,以管理员的模式运行即可
I am sharing my personal experience here. I have been using Quartus II 9.1 and NIOS II IDE 9.1 on Windows 7 since they were released. Now, I am using Quartus II 9.1 SP2 and NIOS II IDE 9.1 SP2.
A lot of users were asking questions the compatibility of these softwares on Windows 7.
+ _/ @; q, s3 [" GQuartus II 9.1 and its SOPC builder seem to work fine on Windows 7 since the first day they are installed.
It is the NIOS II IDE 9.1 that really bothered me. Most of the time when you build a project, it will report error messages like two examples below. The success rate is only 20%.
Example 1:
3 q8 b6 ^8 M. y6 xmake -s all includes
9 n9 J5 j6 Q3 t5 E' M3 [main] ? (3732) c:\altera\91\quartus\bin\cygwin\bin\make.exe: ***fatal error – couldn’t allocate heap, Win32 error487, base 0x9E0000, top 0xB30000, reserve_size 1372160, allocsize 1376256, page_const 4096
# V# D; t  N( ~: a2 M. O2 [main] make 7588 fork: child -1 – died waiting for longjmp before initialization, retry 0, exit code 0×100, errno 11
" f/ J& D8 t6 _* @make: vfork: Resource temporarily unavailable
Example 2:; ]9 m; E/ ?. R
make -s all includes
6 U) a8 P3 t/ H3 [main] ? (4980) c:\altera\91\quartus\bin\cygwin\bin\make.exe: ***fatal error – couldn’t allocate heap, Win32 error 487, base 0×970000, top 0xA40000, reserve_size 847872, allocsize 851968, page_const 4096
, \3 q! Q! R; a1 H* S2 [main] make 1972 fork: child -1 – died waiting for longjmp before initialization, retry 0, exit code 0×100, errno 11+ M; @7 y4 E- i' y- d2 L
make[1]: /cygdrive/c/altera/91/nios2eds/components/altera_hal/build/common.mk:54: fork: Resource temporarily unavailable
" F' t+ v3 e0 m  b3 [main] ? (6092) c:\altera\91\quartus\bin\cygwin\bin\make.exe: ***fatal error – couldn’t allocate heap, Win32 error 487, base 0×970000, top 0xA60000, reserve_size 978944, allocsize 983040, page_const 40966 j- O' H" ^# ?7 T  z  Y7 F
8408744 [main] make 1972 fork: child -1 – died waiting for longjmp before initialization, retry 0, exit code 0×100, errno 11
: F6 [, j# a2 D# Hmake[1]: /cygdrive/c/altera/91/nios2eds/components/altera_hal/build/chac_rules.mk:147: fork: Resource temporarily unavailable
5 C; G9 E9 R2 g5 @: x7 ~: N% Ymake[1]: *** No rule to make target `/bin/gtf/generated_all.mk.gtf’, needed by `system_description/../obj/generated_all.mk-t’. Stop.
& |  c9 m6 h1 \2 V- S' b6 Tmake: *** [system_project] Error 2
( s# M4 d& Y; J. sBuild completed in 40.947 seconds
Some says it is related to the Norton Antivirus software. Yes, my PC is installed with Norton Antivirus software. But I observed that it happened to Windows 7 PC which is not installed with Norton Antivirus software, as well. Turning off the Norton Antivirus software does slightly help to increase the probability that the project is successfully built, from 20% to about 40%.
Anyway, I found some tricks which can make your life easier if you are using Nios II IDE 9.1 on Windows7.
Under your Quartus II folder, go to bin->cygwin->bin folder, select the following files in the list below and then right-click and choose Properties. Under the Compatibility tab, check“Run this program in compatibility mode for:” and choose “Windows XP (Service Pack 2)”. Check “Run this program as an administrator”, as well.
0 F8 e5 n+ w& _: T& V" X4 IHere is the list of files that you can select to change their compatibility mode under the Quartus II->bin->cygwin->bin folder:6 r: u% x" o2 a
1. Make.exe4 }& D# j6 @# z4 `5 i$ X
2. Sh.exe
9 q, o; u/ W) @6 Y( P2 _  }* {3. Echo.exe
" p+ E& i% |( q# `, z9 B; i4 b5 j' }4. Cygstart.exe2 Y# C2 F/ Z; r# v1 W$ x
5. MakeInfo.exe* N, s4 Q; `& ?/ C8 a
6. Perl.exe
* p7 K5 s, E4 f7. Collect2.exe (under nios2eds\bin\nios2-gnutools\ H-i686-pc-cygwin\libexec\gcc\nios2-elf\3.4.6)
' k8 t2 I! C+ ~: u! O8. Nios2-elf-g++.exe (under nios2eds\bin\nios2-gnutools\ H-i686-pc-cygwin\bin)
By doing the steps mentioned above, the success rate of building a project in NIOS II IDE 9.1 will be increased to above 90%.
  z& m" {8 V. H: q: z+ r6 g

该用户从未签到

2#
发表于 2019-5-14 17:50 | 只看该作者
可以吗 我去试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-8-2 12:05 , Processed in 0.125000 second(s), 23 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表