16.05 printf test does not build for Cortex A9.

Bob Stewart robjsstewart at ...196...
Mon May 30 19:34:19 CEST 2016


Also, it appears that there is no cpu.h any more in the 
core/include/spec/cortex-a9 directory as the compile of the new region 
map fails as follows:

bob at ...297...:/Work/Genode/Builds/16.05/437x$ make run/printf
including /Work/Genode/genode-16.05/tool/run/boot_dir/hw
including /Work/Genode/genode-16.05/tool/run/image/uboot
including /Work/Genode/genode-16.05/repos/base/run/printf.run
building targets: core init test/printf
spawn make core init test/printf
make[1]: Entering directory `/Work/Genode/Builds/16.05/437x'
checking library dependencies...
   Library platform
   Library cxx
   Library base-common
   Library syscall
   Library startup
   Library base
   Library config
   Program init/init
   Program test/printf/test-printf
   Library core-perf_counter
   Library core
     COMPILE  core_region_map.o
In file included from 
/Work/Genode/genode-16.05/repos/base-hw/src/core/include/spec/cortex_a9/translation_table.h:19:0,
                  from 
/Work/Genode/genode-16.05/repos/base-hw/src/core/include/translation_table_allocator_tpl.h:20,
                  from 
/Work/Genode/genode-16.05/repos/base-hw/src/core/include/platform.h:29,
                  from 
/Work/Genode/genode-16.05/repos/base-hw/src/core/core_region_map.cc:18:
/Work/Genode/genode-16.05/repos/base-hw/src/core/include/spec/arm/short_translation_table.h:27:17: 
fatal error: cpu.h: No such file or directory
  #include <cpu.h>
                  ^
compilation terminated.
make[3]: *** [core_region_map.o] Error 1
make[2]: *** [core.lib] Error 2
make[1]: *** [gen_deps_and_build_targets] Error 2
make[1]: Leaving directory `/Work/Genode/Builds/16.05/437x'
Error: Genode build failed
make: *** [run/printf] Error 252

What have I missed?

Bob Stewart


On 05/30/2016 12:45 PM, Bob Stewart wrote:
> Hi,
>
>     It appears that the 16.05 build uses a new environment parameter 
> BASE_HW_DIR, which cause a build on a Cortex A9 based platform to fail 
> in lib/mk (that is, base-hw/lib/mk/spec/cortex_a9.h)
>
> bob at ...297...:/Work/Genode/Builds/16.05/437x$ make run/printf
> including /Work/Genode/genode-16.05/tool/run/boot_dir/hw
> including /Work/Genode/genode-16.05/tool/run/image/uboot
> including /Work/Genode/genode-16.05/repos/base/run/printf.run
> building targets: core init test/printf
> spawn make core init test/printf
> make[1]: Entering directory `/Work/Genode/Builds/16.05/437x'
> checking library dependencies...
> /Work/Genode/genode-16.05/repos/base-hw/lib/mk/spec/cortex_a9/core.inc:25: 
> /lib/mk/spec/smp/core.inc: No such file or directory
> /Work/Genode/genode-16.05/repos/base-hw/lib/mk/spec/cortex_a9/core.inc:26: 
> /lib/mk/spec/arm_v7/core.inc: No such file or directory
> make[3]: *** No rule to make target `/lib/mk/spec/arm_v7/core.inc'. Stop.
> make[2]: *** [gen_prg_rule] Error 2
> make[1]: *** [traverse_dependencies] Error 1
> make[1]: Leaving directory `/Work/Genode/Builds/16.05/437x'
> Error: Genode build failed
> make: *** [run/printf] Error 252
>
> This can be fixed by including in cortex_a9.h the line;
>
> BASE_HW_DIR := $(REP_DIR)
>
> But why is it necessary to have this new variable?
>
>
> Bob Stewart





More information about the users mailing list