[ipxe-devel] Compiling the current HEAD?

Jason Kohles jkohles at palantir.com
Tue Apr 10 15:31:01 UTC 2012


I'm using whatever toolchain is in the latest RHEL 5 release.

Looking through the code last night I found that the line that is having
problems is:

 : : "i" ( int13 ), "i" ( __from_text16 ( &num_drives ) ),
 "i" ( __from_text16 ( &num_fdds ) ) );

In other areas where __from_text16 is called, the constraint is defined as
"p" rather than "i".  I tried changing them to "p" which seems to work,
but I'm not certain that is accomplishing the same goal..


-- 
Jason Kohles
Palantir Technologies | UNIX Systems Engineer
jkohles at palantir.com  | 703.957.5784







On 4/10/12 5:20 AM, "Robin Smidsrød" <robin at smidsrod.no> wrote:

On 09.04.2012 16:50, Jason Kohles wrote:
> I'm trying to build the current HEAD so I can check out the new menu
> stuff, and I've encountered an error that I haven't been able to track
> down, probably due to the huge number of years it's been since I dealt
> with assembler..
> 
> arch/i386/interface/pcbios/int13.c: In function 'int13_hook':
> arch/i386/interface/pcbios/int13.c:1466: warning: asm operand 1 probably
> doesn't match constraints
> arch/i386/interface/pcbios/int13.c:1466: warning: asm operand 2 probably
> doesn't match constraints
> make: *** [bin/int13.o] Error 1
> 
> Can anybody tell me what is going on here?  I tried simply suppressing
> the warning (by compiling this file without -Werror) but then I get an
> "impossible constraint in 'asm'" for the same line of code, so I'm
> guessing that means the operands really are wrong..

I just compiled HEAD on an Ubuntu 10.04 machine using the standard
toolchain. Are you using old (or quite new) versions of the toolchain?

-- Robin
_______________________________________________
ipxe-devel mailing list
ipxe-devel at lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4634 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20120410/a6d77404/attachment.p7s>


More information about the ipxe-devel mailing list