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

Kernel compile error

Altera_Forum
Honored Contributor II
1,175 Views

Here is the output from the compiling process: 

 

I use Quartus II 5.1 and NIOS II 5.1 on Windows XP Pro and a Centrino Duo Core laptop. Has anyone seen this before? 

 

I have read that the 'rebaseall' command can fix this on cygwin, but rebase and ash is not included in Altera cygwin, and getting rebase and ash from another cygwin will not work. 

 

------------------------------------------------ 

Microtronix Linux Extensions 

Version 1.4, Built June 20, 2005 

------------------------------------------------ 

make: Entering directory `/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x' 

4 [main] nios2-elf-gcc 29240 fork_copy: linked dll data/bss pass 0 failed, 0x676000..0x676264, done 0, windows pid 30384, Win32 error 487 

1021126 [main] nios2-elf-gcc 29240 fork_copy: linked dll data/bss pass 0 failed, 0x676000..0x676264, done 0, windows pid 30040, Win32 error 487 

3043347 [main] nios2-elf-gcc 29240 fork_copy: linked dll data/bss pass 0 failed, 0x676000..0x676264, done 0, windows pid 30192, Win32 error 487 

7067009 [main] nios2-elf-gcc 29240 fork_copy: linked dll data/bss pass 0 failed, 0x676000..0x676264, done 0, windows pid 30508, Win32 error 487 

nios2-elf-gcc: fork: Resource temporarily unavailable 

Using /cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x as source for kernel 

GEN /cygdrive/d/develop/nios/eclipse/workspace/kernel/build/Makefile 

CHK include/linux/version.h 

UPD include/linux/version.h 

SPLIT include/linux/autoconf.h -> include/config/* 

CHK include/nios2_system.h 

UPD include/nios2_system.h 

HOSTCC scripts/basic/fixdep 

scripts/basic/.fixdep.d: done. 

HOSTCC scripts/basic/split-include 

scripts/basic/.split-include.d: done. 

HOSTCC scripts/basic/docproc 

scripts/basic/.docproc.d: done. 

HOSTCC scripts/mod/mk_elfconfig 

scripts/mod/.mk_elfconfig.d: done. 

MKELF scripts/mod/elfconfig.h 

HOSTCC scripts/mod/file2alias.o 

scripts/mod/.file2alias.o.d: done. 

HOSTCC scripts/mod/modpost.o 

scripts/mod/.modpost.o.d: done. 

HOSTCC scripts/mod/sumversion.o 

scripts/mod/.sumversion.o.d: done. 

HOSTLD scripts/mod/modpost 

HOSTCC scripts/kallsyms 

scripts/.kallsyms.d: done. 

CC arch/nios2nommu/kernel/asm-offsets.s 

arch/nios2nommu/kernel/.asm-offsets.s.d: done. 

CHK include/asm-nios2nommu/asm-offsets.h 

CC init/main.o 

3 [main] nios2-elf-gcc 29592 fork_copy: linked dll data/bss pass 0 failed, 0x676000..0x676264, done 0, windows pid 29204, Win32 error 487 

1022359 [main] nios2-elf-gcc 29592 fork_copy: linked dll data/bss pass 0 failed, 0x676000..0x676264, done 0, windows pid 27148, Win32 error 487 

3044783 [main] nios2-elf-gcc 29592 fork_copy: linked dll data/bss pass 0 failed, 0x676000..0x676264, done 0, windows pid 30144, Win32 error 487 

7068380 [main] nios2-elf-gcc 29592 fork_copy: linked dll data/bss pass 0 failed, 0x676000..0x676264, done 0, windows pid 23340, Win32 error 487 

nios2-elf-gcc: fork: Resource temporarily unavailable 

make[2]: *** [init/main.o] Error 1 

make[1]: *** [init] Error 2 

make: *** [_all] Error 2 

make: Leaving directory `/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
396 Views
0 Kudos
Altera_Forum
Honored Contributor II
396 Views

I am getting the same error. 

 

I have followed the link you supply, and can find nothing that address the "Win32 error 487" / "Resource temporarily unavailable" problem. 

 

What in particular in the massive thread you refer to addresses this issue? 

 

Thanks, 

 

Greg
0 Kudos
Altera_Forum
Honored Contributor II
396 Views

 

--- Quote Start ---  

originally posted by ghavenga@Sep 11 2006, 01:24 PM 

i am getting the same error. 

 

i have followed the link you supply, and can find nothing that address the "win32 error 487" / "resource temporarily unavailable" problem. 

 

what in particular in the massive thread you refer to addresses this issue? 

 

thanks, 

 

greg 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18225) 

--- quote end ---  

 

--- Quote End ---  

 

 

I think hippo&#39;s post is more of a general recommendation.... You should not be using a Windows machine for uCLinux development. The majority of the Wiki, and hippo&#39;s postings are with respect to using the gcc/uclibc toolchain and buildroot...on a Linux host platform. If you&#39;re going to develop a uCLinux system (Nios II or not), this is the way to go. 

 

With respect to your Cygwin error, the Microtronix kit was last updated around the v5.0 release, so I&#39;d bet that it won&#39;t work (correctly) with anything above that, though I&#39;ve not tried it, myself. 

 

Cheers, 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
396 Views

 

--- Quote End ---  

 

 

I think hippo&#39;s post is more of a general recommendation.... You should not be using a {snip} 

 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18226)</div> 

 

--- Quote End ---  

 

 

Actually, I&#39;m just doing standard Nios stuff, no uClinux. I would not have posted here, except on searching the entire Nios forum, this was the only thread that seemed to remotely address the problem I was having. 

 

For other forum searchers benefit, I have had to do the following to get cygwin to behave and actually let nios-gcc compile.  

 

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif rebase the cygwin DLLs (google: rebaseall cygwin package) 

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif create a /HKLM/Software/Cygnus Solutions/Cygwin/heap_chunk_in_mb DWORD value and set it to 2048 

 

None of my co-workers have had to do this, so it&#39;s a mystery to me why my getting this to run on my Acer Ferrari laptop (Turion 64 ML-37, 1GB RAM, 100GB HDD, on vanilla x32 WinXP) has been such a chore. If all the Altera tools were free (technically, they are, but you still get dinged for this that and the other thing), then I could excuse stuff like this. 

 

But when the Quartus dev kit is $1K, and you can&#39;t do anything useful if the Nios IDE / dev env lets you down, I tend to get a bit cranky. Linux / Unix guys are used to having hairs and bobby pins sticking out of stuff, but us guys who are used to Keil or other embedded tools expect things to be more buttoned down. 

 

Sorry for posting this rant in this forum - it probably doesn&#39;t belong here, but it&#39;s the only relevant thread I can find. 

 

Just so you know, I&#39;m feeding the same info to my local Arrow rep, so he can give it to his contact at Altera - we&#39;ll see if that helps things any. 

 

In any case, thanks for replying, Mr. Slacker - maybe someday I will get a chance to use uClinux!
0 Kudos
Altera_Forum
Honored Contributor II
396 Views

I had the same problem as qhavenga - just doing standard Nios stuff - no uClinux. 

 

Error message when compiling a simple Nios application: 

 

8055439 [main] nios2-elf-gcc 16516 fork_copy: linked dll data/bss pass 0 failed, 0x576000..0x576264, done 0, windows pid 16700, Win32 error 487 

 

The article http://www.cygwin.com/ml/cygwin/2006-01/msg00782.html (http://www.cygwin.com/ml/cygwin/2006-01/msg00782.html) suggests that there is a conflict with the "Logitech Process Monitor" service and cygwin. 

 

After un-installing my Logitech camera (QuickCam Pro 5000) driver/appl. SW and re-installing Nios IDE - the problem was gone. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif  

 

Regards, 

Ove Brynestad
0 Kudos
Altera_Forum
Honored Contributor II
396 Views

 

--- Quote Start ---  

originally posted by obr@Sep 20 2006, 04:07 PM 

i had the same problem as qhavenga - just doing standard nios stuff - no uclinux. 

 

error message when compiling a simple nios application: 

 

8055439 [main] nios2-elf-gcc 16516 fork_copy: linked dll data/bss pass 0 failed, 0x576000..0x576264, done 0, windows pid 16700, win32 error 487 

 

the article http://www.cygwin.com/ml/cygwin/2006-01/msg00782.html (http://www.cygwin.com/ml/cygwin/2006-01/msg00782.html) suggests that there is a conflict with the "logitech process monitor" service and cygwin. 

 

after un-installing my logitech camera (quickcam pro 5000) driver/appl. sw and re-installing nios ide - the problem was gone.  http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/smile.gif  

 

regards, 

ove brynestad 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18368) 

--- quote end ---  

 

--- Quote End ---  

 

 

This solved my problem too. The laptop has an integrated logitech camera with drivers preinstalled. 

 

Hein
0 Kudos
Altera_Forum
Honored Contributor II
396 Views

Wow, I&#39;m glad I checked back on this! 

 

I don&#39;t have a Logitech camera hooked up, but I do have two Logitech apps running - what for, I dunno, they&#39;re LVCOMSX.EXE and LVPrcSrv.exe. 

 

However LVPrcSrv.exe sounds awfully close to "Logitech Process Monitor", so I need to dig into these to see why they&#39;re on my system and if I can boot&#39;em off. 

 

Of course, IMHO, people (cygwin AND Logitech) should be able to write code that doesn&#39;t do stupid stuff (I write everything from kernel mode drivers to apps on Windows, so I feel I have a qualified opinion) that conflicts with other apps. 

 

Thanks for the pointers guys - maybe I can get this stuff working like it should now. 

 

G
0 Kudos
Reply