[BitVisor-devel-en:14] Regarding Bitvisor compilation.
Dushmanta Mohapatra
dushmanta.mohapatra at gmail.com
Sat Jun 11 06:15:48 JST 2011
I am Dushmanta , a CS PhD student at Georgia Institute of Technology,
Atlanta, US.
For one of my projects I am looking into Bitvisor details.
But I am facing some issue with its compiling (Bitvisor 1.1.1). I am
following the bitvisor1.1 manual
found at http://www.bitvisor.org/ . I hope you would be kind enough to help
me with that.
I can compile the elf image, but when I try to compile the configuration
data
(password login related module1.bin,module2bin), I get some errors.
I use the default configurations and do not change anything in the
configuration files
(bitvisor.conf.tmpl)
I have a recent Thinkpad T520 (quad core Intel i5) and my base OS is Ubuntu
11.04 (64bit).
I have installed the necessary libraries (gcc, binutils, make, libssl-dev,
libusb-dev etc). I am not sure
what the issue is. My guess is, it might be related to binutils. Do I need
to compile it in a 32bit OS?
Do I need any cross compiler or gcc-multilib installed in my system?
Here are just some print outs from the compilation process. Please let me
know if you need any more
details.
*************************************
Final print outs from the elf image compilation
make[2]: Leaving directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers/vpn'
make -C ata/
make[2]: Entering directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers/ata'
make[2]: `driver.o' is up to date.
make[2]: Leaving directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers/ata'
make -C usb/
make[2]: Entering directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers/usb'
make[2]: `driver.o' is up to date.
make[2]: Leaving directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers/usb'
make -C vpn/
make[2]: Entering directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers/vpn'
make[2]: `driver.o' is up to date.
make[2]: Leaving directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers/vpn'
make -C ata/
make[2]: Entering directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers/ata'
make[2]: `driver.o' is up to date.
make[2]: Leaving directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers/ata'
make -C usb/
make[2]: Entering directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers/usb'
make[2]: `driver.o' is up to date.
make[2]: Leaving directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers/usb'
make -C vpn/
make[2]: Entering directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers/vpn'
make[2]: `driver.o' is up to date.
make[2]: Leaving directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers/vpn'
ld -melf_x86_64 -g -nostdlib -r -o drivers.o bios32.o core.o dmar.o
ieee1394.o iommu.o pci_conceal.o pci_core.o pci_debug.o pci_init.o
security.o smi.o ata/driver.o usb/driver.o vpn/driver.o
make[1]: Leaving directory
`/home/dm/secvirt/bitvisor/bitvisor-1.1.1/drivers'
ld -melf_x86_64 -g -nostdlib -T bitvisor.lds --cref -Map bitvisor.map -o
bitvisor.elf core/core.o drivers/drivers.o storage/storage.o vpn/vpn.o
idman/idman.o crypto/crypto.a
ld: error in idman/idman.o(.eh_frame); no .eh_frame_hdr table will be
created.
objcopy --output-format elf32-i386 bitvisor.elf
>From the module compilations:
root at dm-ThinkPad-T520:~/secvirt/bitvisor/bitvisor-1.1.1/boot/login-simple#
make
gcc -Wall -s -Wl,-Ttext,0x8000 -nostdlib -nostdinc \
-idirafter ../../include -o module1.bin asm.s main.c
asm.s: Assembler messages:
asm.s:40: Error: operand type mismatch for `push'
main.c:162:1: warning: conflicting types for built-in function ‘strlen’
main.c: In function ‘os_main’:
main.c:217:13: warning: cast from pointer to integer of different size
main.c:219:13: warning: cast from pointer to integer of different size
make: *** [module1.bin] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.bitvisor.org/archives/bitvisor-devel-en/attachments/20110610/17ae31ac/attachment.html
More information about the BitVisor-devel-en
mailing list