Hi hackers,
I have a problem in building l4/fiasco for arm. I'm using ubuntu 11.10 64-bit and want to build l4/fiasco for arm9. For cross compiler, I'm using Sourcery_G++_Lite. For the snapshot, I'm using current snapshot l4re-snapshot-2014022818. Then, when I tried to build the l4/fiasco, I got the error message shown in [1.error message]. Have you ever built l4/fiasco for arm9 over ubuntu 11.10 64-bit? I think this is just a compiler problem. If you know about this problem, please let me know to solve this problem.
Thanks,
Irvanda
[1.error message] make[3]: Entering directory `/home/l4re-arm/obj/fiasco/arm-mp-rv-pb11mp' ... Generating version information ... Making kip.o ... Making kip-debug.o ... Making kip-arm.o ... Making l4_types.o ... Making l4_types-debug.o ... Making l4_fpage.o ... Making l4_msg_item.o ... Making l4_buf_desc.o ... Making l4_error.o ==> Archiving into libabi.a ... Making kernel.arm.lds ... Making crt0.o ... Making bootstrap.o ... Making bootstrap-arm-realview.o ==> Linking bootstrap.fiasco.o ... Making kernel_panic.o ... Making libc_backend_lock.o ... Making cpu_mask.o ... Making rcupdate.o ... Making kobject_mapdb.o In file included from /home/l4re-arm/src/kernel/fiasco/src/kern/context.cpp:22, from /home/l4re-arm/src/kernel/fiasco/src/kern/switch_lock.cpp:85, from /home/l4re-arm/src/kernel/fiasco/src/kern/helping_lock.cpp:4, from /home/l4re-arm/src/kernel/fiasco/src/kern/lock.cpp:3, from /home/l4re-arm/src/kernel/fiasco/src/kern/kobject.cpp:3, from /home/l4re-arm/src/kernel/fiasco/src/kern/kobject_mapdb.cpp:5, from auto/kobject_mapdb.cc:3: /home/l4re-arm/src/kernel/fiasco/src/lib/libk/cxx/function:34: error: 'cxx::functor<Res(Args ...)>::functor(cxx::functor<Res(Args ...)>&&)' cannot be defaulted make[3]: *** [kobject_mapdb.o] Error 1 make[3]: Leaving directory `/home/l4re-arm/obj/fiasco/arm-mp-rv-pb11mp' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/l4re-arm/obj/fiasco/arm-mp-rv-pb11mp'
On Tue Apr 22, 2014 at 15:28:16 +0900, Irvanda Kurniadi wrote:
I have a problem in building l4/fiasco for arm. I'm using ubuntu 11.10 64-bit and want to build l4/fiasco for arm9. For cross compiler, I'm using Sourcery_G++_Lite. For the snapshot, I'm using current snapshot l4re-snapshot-2014022818. Then, when I tried to build the l4/fiasco, I got the error message shown in [1.error message]. Have you ever built l4/fiasco for arm9 over ubuntu 11.10 64-bit? I think this is just a compiler problem. If you know about this problem, please let me know to solve this problem.
I also think this is just a compiler problem. Is your g++ older than 4.5? Then you'll need a more recent version (any version should do).
Adam
On Wed, Apr 23, 2014 at 7:01 AM, Adam Lackorzynski < adam@os.inf.tu-dresden.de> wrote:
On Tue Apr 22, 2014 at 15:28:16 +0900, Irvanda Kurniadi wrote:
I have a problem in building l4/fiasco for arm. I'm using ubuntu 11.10 64-bit and want to build l4/fiasco for arm9. For cross compiler, I'm
using
Sourcery_G++_Lite. For the snapshot, I'm using current snapshot l4re-snapshot-2014022818. Then, when I tried to build the l4/fiasco, I
got
the error message shown in [1.error message]. Have you ever built
l4/fiasco
for arm9 over ubuntu 11.10 64-bit? I think this is just a compiler
problem.
If you know about this problem, please let me know to solve this problem.
I also think this is just a compiler problem. Is your g++ older than 4.5? Then you'll need a more recent version (any version should do).
You are right. I checked it again and I found that my Sourcery_G++_lite was still in 4.4 version. I replaced it with linaro toolchain 4.8.
Now, I'm having a trouble in running qemu. I'm using qemu 0.14.1. After I invoke make qemu E=hello-shared, the process aborted with "hardware error" error message, as shown below. What should I do to overcome this problem?
Thanks, Irvanda
QEmu-cmd: qemu-system-arm -kernel /home/l4re-arm/obj/l4/arm-ca/images/bootstrap.elf -M vexpress-a9 -cpu cortex-a9 -m 256 -smp 2 -serial stdio
L4 Bootstrapper Build: #10 Wed Apr 23 12:16:32 KST 2014, 4.8.2 20131014 (prerelease) Scanning up to 256 MB RAM Memory size is 256MB (60000000 - 6fffffff) RAM: 0000000060000000 - 000000006fffffff: 262144kB Total RAM: 256MB mod06: 61121000-6113a5b0: hello mod05: 61120000-61120066: hello.cfg mod04: 610cd000-6111fc0c: ned mod03: 610b3000-610cc494: l4re mod02: 61081000-610b2660: moe mod01: 61077000-61080378: sigma0 mod00: 61014000-610761b0: fiasco Moving up to 7 modules behind 61100000 moving module 00 { 61014000-610761af } -> { 61227000-612891af } [401840] moving module 01 { 61077000-61080377 } -> { 6128a000-61293377 } [37752] moving module 02 { 61081000-610b265f } -> { 61294000-612c565f } [202336] moving module 03 { 610b3000-610cc493 } -> { 6113b000-61154493 } [103572] moving module 04 { 610cd000-6111fc0b } -> { 61155000-611a7c0b } [338956] moving module 05 { 61120000-61120065 } -> { 61100000-61100065 } [102] moving module 06 { 61121000-6113a5af } -> { 61101000-6111a5af } [103856] moving module 03 { 6113b000-61154493 } -> { 6111b000-61134493 } [103572] moving module 04 { 61155000-611a7c0b } -> { 61135000-61187c0b } [338956] Scanning fiasco -serial_esc Scanning sigma0 Scanning moe rom/hello.cfg Relocated mbi to [0x6100d000-0x6100d10d] Loading fiasco Loading sigma0 Loading moe find kernel info page... found kernel info page at 0x60002000 Regions of list 'regions' [ 60001000, 60001a7f] { a80} Kern fiasco [ 60002000, 6006efff] { 6d000} Kern fiasco [ 60090000, 600964db] { 64dc} Sigma0 sigma0 [ 60098000, 6009e17b] { 617c} Sigma0 sigma0 [ 60140000, 6016d1fb] { 2d1fc} Root moe [ 60170000, 6018b4a7] { 1b4a8} Root moe [ 61000000, 610133f7] { 133f8} Boot bootstrap [ 61009000, 610090d1] { d2} Boot mbi [ 6100d000, 6100d20a] { 20b} Root Multiboot info [ 6101304c, 610130a3] { 58} Boot mbi [ 61100000, 61187c0b] { 87c0c} Root Module API Version: (87) experimental Sigma0 config ip:60090100 sp:61012de4 Roottask config ip:6014020c sp:00000000 Starting kernel fiasco at 60001264 Realview System ID: Rev=1 HBI=190 Build=f Arch=5 FPGA=00 Hello from Startup::stage2 Per_cpu_data_alloc: (orig: 0xf005f028-0xf005f9b0) qemu: hardware error: gic_dist_writeb: Bad offset 84
CPU #0: R00=ee101080 R01=00000100 R02=ee101000 R03=00000020 R04=f0066368 R05=00000060 R06=ee101180 R07=55555555 R08=fffff010 R09=f006834c R10=00c5387f R11=0000f000 R12=00000000 R13=f005ec9c R14=00000060 R15=f0038f54 PSR=600001d3 -ZC- A svc32 CPU #1: R00=000000f0 R01=00000000 R02=00000000 R03=00000000 R04=1e000100 R05=1190f500 R06=00000000 R07=10000000 R08=00000000 R09=00000c09 R10=00000000 R11=00000000 R12=00000000 R13=00000000 R14=00000000 R15=610001b8 PSR=600001d3 -ZC- A svc32 bash: line 3: 11457 Aborted
On Wed Apr 23, 2014 at 12:23:55 +0900, Irvanda Kurniadi wrote:
On Wed, Apr 23, 2014 at 7:01 AM, Adam Lackorzynski < adam@os.inf.tu-dresden.de> wrote:
On Tue Apr 22, 2014 at 15:28:16 +0900, Irvanda Kurniadi wrote:
I have a problem in building l4/fiasco for arm. I'm using ubuntu 11.10 64-bit and want to build l4/fiasco for arm9. For cross compiler, I'm
using
Sourcery_G++_Lite. For the snapshot, I'm using current snapshot l4re-snapshot-2014022818. Then, when I tried to build the l4/fiasco, I
got
the error message shown in [1.error message]. Have you ever built
l4/fiasco
for arm9 over ubuntu 11.10 64-bit? I think this is just a compiler
problem.
If you know about this problem, please let me know to solve this problem.
I also think this is just a compiler problem. Is your g++ older than 4.5? Then you'll need a more recent version (any version should do).
You are right. I checked it again and I found that my Sourcery_G++_lite was still in 4.4 version. I replaced it with linaro toolchain 4.8.
Now, I'm having a trouble in running qemu. I'm using qemu 0.14.1. After I invoke make qemu E=hello-shared, the process aborted with "hardware error" error message, as shown below. What should I do to overcome this problem?
qemu: hardware error: gic_dist_writeb: Bad offset 84
This means Qemu's GIC model does not (yet) support this kind of access, so a more recent Qemu version should do the trick. Just a few days back Qemu 2.0 has been released which should work.
Adam
Hi Adam,
On Wed, Apr 23, 2014 at 2:14 PM, Adam Lackorzynski < adam@os.inf.tu-dresden.de> wrote:
On Wed Apr 23, 2014 at 12:23:55 +0900, Irvanda Kurniadi wrote:
Now, I'm having a trouble in running qemu. I'm using qemu 0.14.1. After I invoke make qemu E=hello-shared, the process aborted with "hardware
error"
error message, as shown below. What should I do to overcome this problem?
qemu: hardware error: gic_dist_writeb: Bad offset 84
This means Qemu's GIC model does not (yet) support this kind of access, so a more recent Qemu version should do the trick. Just a few days back Qemu 2.0 has been released which should work.
Yeah, with Qemu 2.0 I can use "make qemu" properly for arm. But When I go for x86, it's stuck in fb-drv | Found VESA BIOS version 3.0 fb-drv | OEM SeaBIOS VBE (C) 2011
But I still can use the older version for running x86 though. I just want to share this problem and want to know whether I'm alone with this problem.
regards, Irvanda
l4-hackers@os.inf.tu-dresden.de