nios ii编译错误之“couldn't allocate heap, Win32 error 487”
来源:互联网 发布:舜禹之事 吾知之矣 编辑:程序博客网 时间:2024/06/05 02:48
系统是win7,来源于“MSDN-我告诉你”的“cn_windows_7_ultimate_with_sp1_x86_dvd_u_677486”。
软件是“Quartus II9.0”和配套的“nios II9.0”,编译最基本的“hello_world”程序出了错误,程序如下:
#include <stdio.h>
int main()
{
printf("Hello from Nios II!\n");
return 0;
}
编译后的错误如下:
make -s all includes
4 [main] ? (3760) c:\altera\90\quartus\bin\cygwin\bin\sh.exe: *** fatal error - couldn't allocate heap, Win32 error 487, base 0x680000, top 0x690000, reserve_size 61440, allocsize 65536, page_const 4096
2 [main] sh 4420 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11
/bin/sh: fork: Resource temporarily unavailable
cygpath: can't convert empty path
C:/altera/90/nios2eds/components/altera_hal/build/app_rules.mk:153: /components/altera_hal/build/gnu_rules.mk: No such file or directory
C:/altera/90/nios2eds/components/altera_hal/build/app_rules.mk:157: /components/altera_hal/build/gtf_rules.mk: No such file or directory
make: *** No rule to make target `/components/altera_hal/build/gtf_rules.mk'. Stop.
Build completed in 5.554 seconds
很多人都说是win7 兼容性的问题。在黑金动力社区以及Altera Forum上都推荐下面这种解决方式:
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.
Here is the list of files that you can select to change their compatibility mode under theQuartus II->bin->cygwin->bin folder:
1. Make.exe
2. Sh.exe
3. Echo.exe
4. Cygstart.exe
5. MakeInfo.exe
6. Perl.exe
7. Collect2.exe(under nios2eds\bin\nios2-gnutools\ H-i686-pc-cygwin\libexec\gcc\nios2-elf\3.4.6)
8. Nios2-elf-g++.exe(under nios2eds\bin\nios2-gnutools\ H-i686-pc-cygwin\bin)
但是我按照这种方法设置了以后,发现问题有时会存在,有时不会,为此我把杀毒软件关闭了,本人使用的是金山毒霸。同时我把文件夹的只读属性去掉了。在此之后第一次Bulid Project,就出现了令我满意的界面,如下:**** Build of configuration Debug for project hello_world ****
make -s all includes
Build completed in 23.386 seconds
但我不放心,又多试了几次,结果是涛声依旧啊,不过问题出现的频率明显小了很多。也可以将就着用,嘿嘿!
但我想知道这种问题是由什么原因引起的,到底该如何解决。为此,我查询了win32-error-code,文中写到“code,487;Description,Attemp to access invalid address;Name,ERROR_INVALID_ADDRESS”,意思是说该错误指试图访问无效地址。这一毛病暂且到此吧!
- nios ii编译错误之“couldn't allocate heap, Win32 error 487”
- Couldn't reserve space for cygwin's heap, Win32 error 487
- make.exe: *** Couldn’t reserve space for cygwin’s heap, Win32 error 487
- Couldn't reserve space for cygwin's heap, Win32 error 487 解决办法
- 【git】D:\Git\bin\ssh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 487
- Couldn't reserve space for cygwin's heap, Win32 error 0
- Git使用出错:Couldn't reserve space for cygwin's heap, Win32 error 0
- git异常:\bin\sh.exe:*** Couldn't reserve space for cygwin's heap,Win32 error 0
- Git使用出错:Couldn’t reserve space for cygwin’s heap, Win32 error 0
- 【git】 Git\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
- \bin\sh.exe:*** Couldn't reserve space for cygwin's heap,Win32 error 0
- Couldn't reserve space for cygwin's heap, Win32 error 0
- 编译遇到的genext2fs: couldn't allocate a block (no free space)
- error can't allocate region
- Android aidl 编译错误:couldn't find import for class
- MTK RVDS编译出错Couldn't reserve space for cygwin's heap 已解决
- iOS国际化编译错误:error: read failed: The data couldn’t be read because it isn’t in the correct format.
- nios ii 及 quartus ii错误记录
- 树最低公共祖先
- java run time
- 初识iOS中的通知中心
- 为什么你计划100,行动却为0?
- 数组作数据成员(项目五)
- nios ii编译错误之“couldn't allocate heap, Win32 error 487”
- 【程序16】求最大公约数和最小公倍数
- C语言中的struct和typedef struct
- Struts2, Spring 和 Hibernate 的理解之我谈
- JAVA--类的声明周期
- makefile的语法及写法
- 再次浅析adb shell,pc daemon和手机daemon三者之间的数据交互流程
- 杭电ACM1004
- iOS-raywenderlich翻译-使用MapKit叠加图层