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

Altera_Forum
Honored Contributor II
1,011 Views

I am trying to compile the kernel according the wiki http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist)  

 

That method worked well under CoLinux (Over XP).  

Make was failed once like the manual say, and then run till end successfully. 

Now, i am trying it with WhiteBox (RedHat) Linux 4.1 but the make exit again and again with the error: 

*** glibc detected *** malloc(): memory corruption (fast): ... 

Every time it success to compile some more files but fail again. 

 

First, i wrote a script to compile it to the end: 

a=1 n=0 while ; do     echo     date     let "n+=1"     echo "Trial $n"     make     a=$?     echo "exit code = $a" done date 

be care! this script will run forever if you have real error in your code. 

 

But, why this error has occur? 

In the wiki written: "this is caused by parallel compilation. it does not matter." 

What is "parallel compilation"? 

My error is matching to this case? 

Why the difference between RedHat and CoLinux (RedHat run on less powerfull computer)?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
302 Views

I had been using WBEL4 respin1, (not 4.1) for some time. It worked well. 

I think something wrong in your system. 

Please try make clean in uClinux-dist, then do all the makes again. 

Otherwise, try reinsall your Linux PC and run "up2date".
0 Kudos
Reply