Libc Component Not Logging

Daly, Connor G. Connor.Daly at
Fri Aug 7 23:03:43 CEST 2020

Hi all,

Genode beginner here. Been working with the platform for a few weeks trying to port a standard Linux application I wrote to Genode. My program uses sockets, both for sending and receiving, and judging from the code in tcp_terminal, the only way to do sockets is with libc rather than native Genode. I've been trying to implement the first few phases of my program in Genode, but when I run them, no log messages seem to appear and I can't really tell if my program is doing anything. When I remove the libc relevant pieces of code and run my program through a base/Component, everything logs just fine. I created a small test program to find my mistake, so this piece of code does not log anything to qemu with a Linux target platform:

#include <libc/component.h>
#include <base/log.h>

void Libc::Component::construct(Libc::Env &) {
  Genode::log("Hello world");

For a run script, I'm using:

build { core init widget }


install_config {
<config verbose="yes">
                                <service name="LOG"/>
                                <service name="PD"/>
                                <service name="CPU"/>
                                <service name="ROM"/>
                                <service name="IO_MEM"/>
                                <service name="IO_PORT"/>
                                <service name="RAM"/>
                                <any-service> <parent/> <any-child/> </any-service>
                <default caps="50"/>
                <start name="widget">
                                <resource name="RAM" quantum="1M"/>

build_boot_image { core init widget }

append qemu_args " -nographic "

run_genode_until "Hello world" 10

Any help would be greatly appreciated. Thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list