From: Charles W. <cwi...@us...> - 2012-02-08 23:12:41
|
On 2/8/2012 5:58 PM, Erwin Waterlander wrote: >> $ mgwport dos2unix-5.3.2-1.mgwport almostall >> *** ERROR: mgwport internal error: __init_relocation called too early. >> >> I tried mgwport 0.10.5 and 0.10.6. >> >> You can find my input files here: >> http://waterlan.home.xs4all.nl/mingw/dos2unix/ > > Somehow the error goes away when I change > precomp_prefix=$(__host_prefix) > to > precomp_prefix="/mingw" Yes, you can't use the $(__*) commands in the .mgwport, except inside function() definitions. Otherwise, they get evaluated before relocatable.mgwport is parsed, which defines those commands. Sorry for the delay in responding, but I'm glad you found a fix. However, you now have to make additional changes to your .mgwport (other than the obvious(?) 'inherit cross') if you wanted to build in a cross-compiler framework. The only reason you're defining precomp_prefix is so that you can include it in MAKEOPTS. However, a better approach would be to let mgwinstall handled that, by setting USE_DESTDIR=false outside of any function, and simply setting MAKEOPTS="-j1 -f mingw.mak docsubdir=${PN}" -- Chuck |