[Barrelfish-users] Compiling barrelfish without -O2?

Patrik Eklöf peklof at kth.se
Wed Jun 6 17:32:40 CEST 2012


Hi all,

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.
The error I am getting is:

[localhost debug_build]$ make
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
../source/lib/barrelfish/arch/x86_64/dispatch.c: In function ‘disp_switch’:
../source/lib/barrelfish/arch/x86_64/dispatch.c:168:5: error: can’t find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
../source/lib/barrelfish/arch/x86_64/dispatch.c:168:5: error: ‘asm’ operand has impossible constraints
make: *** [x86_64/lib/barrelfish/_for_lib_barrelfish/arch/x86_64/dispatch.o] Error 1

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.

Regards,
Patrik Eklöf
Student at ICT, Master of Science in Engineering Education, IT Programme, KTH, Kista
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.inf.ethz.ch/pipermail/barrelfish-users/attachments/20120606/599c1df7/attachment.html 


More information about the Barrelfish-users mailing list