<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi all,<br>
<br>
I've been trying to compile BF with the -O2 flag, in order to disable all optimizations to debug BF properly, but it seems that it always fails if I do that.<br>
The error I am getting is:<br>
<br>
[localhost debug_build]$ make<br>
gcc -std=c99 -U__STRICT_ANSI__ -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -fno-omit-frame-pointer -fno-builtin -nostdinc -U__linux__ -Ulinux -Wall -Wshadow -Wmissing-declarations -Wmissing-field-initializers -Wredundant-decls -Werror -imacros
../source/include/deputy/nodeputy.h -m64 -mno-red-zone -fPIE -fno-stack-protector -Wno-unused-but-set-variable -Wno-packed-bitfield-compat -DBARRELFISH -DCONFIG_QEMU_NETWORK -DCONFIG_LAZY_THC -DCONFIG_NEWLIB -DCONFIG_INTERCONNECT_DRIVER_LMP -DCONFIG_INTERCONNECT_DRIVER_UMP
-DCONFIG_INTERCONNECT_DRIVER_MULTIHOP -DCONFIG_FLOUNDER_BACKEND_LMP -DCONFIG_FLOUNDER_BACKEND_UMP -DCONFIG_FLOUNDER_BACKEND_MULTIHOP -gdwarf-2 -I../source/include -I../source/include/arch/x86_64 -I../source/lib/newlib/newlib/libc/include -I../source/include/c
-I../source/include/target/x86_64 -I../source/include/ipv4 -I../source/include/posixcompat -I./x86_64/include -I./x86_64/include/dev -I../source/lib/barrelfish -I./x86_64/lib/barrelfish -I../source/lib/barrelfish/include -I../source/lib/barrelfish/include/arch/x86_64
-o ./x86_64/lib/barrelfish/_for_lib_barrelfish/arch/x86_64/dispatch.o -c ../source/lib/barrelfish/arch/x86_64/dispatch.c
<br>
../source/lib/barrelfish/arch/x86_64/dispatch.c: In function ‘disp_switch’:<br>
../source/lib/barrelfish/arch/x86_64/dispatch.c:168:5: error: can’t find a register in class ‘GENERAL_REGS’ while reloading ‘asm’<br>
../source/lib/barrelfish/arch/x86_64/dispatch.c:168:5: error: ‘asm’ operand has impossible constraints<br>
make: *** [x86_64/lib/barrelfish/_for_lib_barrelfish/arch/x86_64/dispatch.o] Error 1<br>
<div><br>
Is there a way to fix that? Note that I'm still using rev 483. I don't know if it has been fixed in subsequent commits.<br>
<br>
<div style="font-family:Tahoma; font-size:13px"><font style="font-family:Tahoma" size="2"><span style="font-size:10pt">Regards,<br>
Patrik Eklöf<br>
</span></font><font color="black" face="Tahoma" size="2"><span dir="ltr" style="font-size:10pt"></span></font><font style="font-family:Tahoma" size="2"><span style="font-size:10pt">Student at ICT, Master of Science in Engineering Education, IT Programme, KTH,
Kista<br>
</span></font></div>
</div>
</div>
</div>
</body>
</html>