problems building wine

Bayard Bell buffer.g.overflow at googlemail.com
Mon Dec 13 07:59:17 PST 2010


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1515 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20101213/4c7156da/attachment.bin>


More information about the macports-users mailing list