problems building wine

Daniel J. Luke dluke at geeklair.net
Mon Dec 13 08:00:54 PST 2010


On Dec 13, 2010, at 10:59 AM, Bayard Bell wrote:
> 
> Not sure that's as much of a workaround as appears on first glance: winebuild still ends up broken for anything else it needs to build down the line, so this only fixes the immediate problem of getting wine to port

indeed, that's why I suggested you open a bug report (having a patch is extra good too!).

> at the cost of erratic function down the line once binutils is reactivated. Better would be a one-line patch (with the full function shown for context) to tools/winebuild/utils.c:
> 
> const char *get_as_command(void)
> {
>    if (!as_command)
>    {
> <        static const char * const commands[] = { "gas", "as", NULL };
>        as_command = find_tool( "as", commands );
>        if (force_pointer_size)        {
>            const char *args = (target_platform == PLATFORM_APPLE) ?                ((force_pointer_size == 8) ? " -arch x86_64" : " -arch i386") :
>                ((force_pointer_size == 8) ? " --64" : " --32");            as_command = xrealloc( as_command, strlen(as_command) + strlen(args) + 1 );
>            strcat( as_command, args );        }
>    }    return as_command;
> }
> 
> const char *get_as_command(void)
> {
>    if (!as_command)
>    {
>>       static const char * const commands[] = { "as", NULL };
>        as_command = find_tool( "as", commands );
>        if (force_pointer_size)        {
>            const char *args = (target_platform == PLATFORM_APPLE) ?                ((force_pointer_size == 8) ? " -arch x86_64" : " -arch i386") :
>                ((force_pointer_size == 8) ? " --64" : " --32");            as_command = xrealloc( as_command, strlen(as_command) + strlen(args) + 1 );
>            strcat( as_command, args );        }
>    }    return as_command;
> }
> 
> On 13 Dec 2010, at 15:32, Daniel J. Luke wrote:
> 
>> On Dec 13, 2010, at 10:24 AM, Bayard Bell wrote:
>>> 
>>> :info:build Fatal error: invalid listing option `r'
>>> :info:build winebuild: /opt/local/bin/gas -arch i386 failed with status 256
>> 
>> Please file a bug for this. You can probably workaround the problem (for now) by deactivating the port that provides gas (port provides /opt/local/bin/gas) and then cleaning and re-building wine.
>> 
>> After it's built, you can re-activate the port that provides gas.

--
Daniel J. Luke                                                                   
+========================================================+                        
| *---------------- dluke at geeklair.net ----------------* |                          
| *-------------- http://www.geeklair.net -------------* |                          
+========================================================+                        
|   Opinions expressed are mine and do not necessarily   |                          
|          reflect the opinions of my employer.          |                          
+========================================================+





More information about the macports-users mailing list