« Return to Thread: *** ERROR: mgwport internal error: __init_relocation called too early.

Re: *** ERROR: mgwport internal error: __init_relocation called too early.

by Charles Wilson-8 :: Rate this Message:

| View in Thread

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

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
MinGW-dvlpr mailing list
MinGW-dvlpr@...
https://lists.sourceforge.net/lists/listinfo/mingw-dvlpr

 « Return to Thread: *** ERROR: mgwport internal error: __init_relocation called too early.