Problem in Genode building system?
Chen Tian
chen.tian at ...60...
Mon Jun 6 19:14:42 CEST 2011
. (examples)
|-- helloworld
| `-- src
| `-- app
| |-- main.cc
| `-- target.mk
`-- thread-migration
`-- src
`-- app
|-- 32
| `-- target.mk
|-- 64
| `-- target.mk
`-- main.cc
1. a) add a wrong statement "error();" into main.cc of thread-migration.
b) cd $GENODE_BUILD;
c) update REPOSITORIES to include the path of thread-migration
d) make: //failed as expected
Program app/32/thread-migration
COMPILE ../main.o
/usr/local/genode-gcc-4.4.5/bin/genode-x86-g++ -fPIC -fPIC -DL4SYS_USE_UTCB_WRAP=1 -DOMNIOS_VER=1 -D__FreeBSD__=8 -fno-builtin-sin -fno-builtin-cos -fno-builtin-sinf -fno-builtin-cosf -ffunction-sections -fno-strict-aliasing -nostdinc -g -march=i686 -O2 -MMD -MP -MT '../main.o ../main.d' -Wall -DOMNIOS_VER=1 -I. -I/usr/local/genode-gcc-4.4.5/bin/../lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../include/c++/4.4.5 -I/usr/local/genode-gcc-4.4.5/bin/../lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../include/c++/4.4.5/i686-pc-linux-gnu -I/usr/local/genode-gcc-4.4.5/bin/../lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../include/c++/4.4.5/backward -I/home/tianc/git/omnios/genode/base/src/core/include -I/home/tianc/git/omnios/genode/base/../base-foc/src/core/include -I/home/tianc/git/omnios/genode/base/../omnios/include -I/home/tianc/git/omnios/build/genode-build-omnios/include/x86/l4f -I/home/tianc/git/omnios/build/genode-build-omnios/include/l4f -I/home/tianc/git/omnios/build/genode-build-omnios/include/x86 -I/home/tianc/git/omnios/build/genode-build-omnios/include/ -I/home/tianc/git/omnios/genode/base/include/x86 -I/home/tianc/git/omnios/genode/base/include/x86_32 -I/home/tianc/git/omnios/genode/base/include/32bit -I/home/tianc/git/omnios/genode/libc/include/libc -I/home/tianc/git/omnios/genode/libc/include/libc-i386 -I/home/tianc/git/omnios/genode/base-foc/include -I/home/tianc/git/omnios/genode/base/include -I/home/tianc/git/omnios/genode/os/include -I/home/tianc/git/omnios/genode/demo/include -I/home/tianc/git/omnios/genode-omnios/include -I/home/tianc/git/omnios/genode/libc/include -I/usr/local/genode-gcc-4.4.5/bin/../lib/gcc/i686-pc-linux-gnu/4.4.5/include -c /home/tianc/git/omnios/genode-omnios/examples/thread-migration/src/app/32/../main.cc -o ../main.o
/home/tianc/git/omnios/genode-omnios/examples/thread-migration/src/app/32/../main.cc:13: error: ISO C++ forbids declaration of ‘error’ with no type
make[3]: *** [../main.o] Error 1
make[2]: *** [thread-migration.prg] Error 2
make[1]: *** [gen_deps_and_build_targets] Error 2
make[1]: Leaving directory `/home/tianc/git/omnios/build/genode-build-omnios'
make: *** [thread-migration] Error 2
2. a) remove the path of thread-migration from REPOSITORIES
b) update REPOSITORIES to include the path of helloworld
c) make: //success as expected
Program app/helloworld
COMPILE main.o
/usr/local/genode-gcc-4.4.5/bin/genode-x86-g++ -fPIC -DL4SYS_USE_UTCB_WRAP=1 -DOMNIOS_VER=1 -ffunction-sections -fno-strict-aliasing -nostdinc -g -march=i686 -O2 -MMD -MP -MT 'main.o main.d' -Wall -DOMNIOS_VER=1 -I. -I/home/tianc/git/omnios/build/genode-build-omnios/include/x86/l4f -I/home/tianc/git/omnios/build/genode-build-omnios/include/l4f -I/home/tianc/git/omnios/build/genode-build-omnios/include/x86 -I/home/tianc/git/omnios/build/genode-build-omnios/include/ -I/home/tianc/git/omnios/genode/base/include/x86 -I/home/tianc/git/omnios/genode/base/include/x86_32 -I/home/tianc/git/omnios/genode/base/include/32bit -I/home/tianc/git/omnios/genode/demo/include/mini_c -I/home/tianc/git/omnios/genode/base-foc/include -I/home/tianc/git/omnios/genode/base/include -I/home/tianc/git/omnios/genode/os/include -I/home/tianc/git/omnios/genode/demo/include -I/home/tianc/git/omnios/genode-omnios/include -I/home/tianc/git/omnios/genode/libc/include -I/usr/local/genode-gcc-4.4.5/bin/../lib/gcc/i686-pc-linux-gnu/4.4.5/include -c /home/tianc/git/omnios/genode-omnios/examples/helloworld/src/app/main.cc -o main.o
LINK helloworld
libs=/home/tianc/git/omnios/build/genode-build-omnios/var/libcache; /usr/local/genode-gcc-4.4.5/bin/genode-x86-g++ -Wl,-gc-sections -nostdlib -Wl,-nostdlib -Wl,-Ttext=0x01000000 -Wl,-T -Wl,/home/tianc/git/omnios/genode/base/src/platform/genode.ld -Wl,--whole-archive -Wl,--start-group main.o $libs/allocator_avl/allocator_avl.lib.a $libs/avl_tree/avl_tree.lib.a $libs/cap_alloc/cap_alloc.lib.a $libs/console/console.lib.a $libs/cxx/cxx.lib.a $libs/env/env.lib.a $libs/heap/heap.lib.a $libs/ipc/ipc.lib.a $libs/lock/lock.lib.a $libs/log_console/log_console.lib.a $libs/mini_c/mini_c.lib.a $libs/platform/platform.lib.a $libs/slab/slab.lib.a $libs/startup/startup.lib.a $libs/syscalls/syscalls.lib.a -Wl,--end-group -Wl,--no-whole-archive /usr/local/genode-gcc-4.4.5/bin/../lib/gcc/i686-pc-linux-gnu/4.4.5/libgcc.a -o helloworld
ln -sf `pwd`/helloworld /home/tianc/git/omnios/build/genode-build-omnios/bin/helloworld
make --no-print-directory -C bootstrap -f /home/tianc/git/omnios/genode/base/mk/prg.mk \
REP_DIR=/home/tianc/git/omnios/genode/base-foc \
PRG_REL_DIR=bootstrap \
BUILD_BASE_DIR=/home/tianc/git/omnios/build/genode-build-omnios \
DEPS="l4re_support.lib platform.lib platform.lib " \
SHELL=/bin/bash \
INSTALL_DIR="/home/tianc/git/omnios/build/genode-build-omnios/bin"
3. a) remove the path of helloworld from REPOSITORIES
b) update REPOSITORIES to include the path of thread-migration
c) make: //success, which is incorrect.
Program app/32/thread-migration
LINK thread-migration
libs=/home/tianc/git/omnios/build/genode-build-omnios/var/libcache; /usr/local/genode-gcc-4.4.5/bin/genode-x86-g++ -Wl,-gc-sections -nostdlib -Wl,-nostdlib -Wl,-Ttext=0x01000000 -Wl,-T/home/tianc/git/omnios/genode/os/src/platform/x86/genode_dyn.ld -Wl,--dynamic-linker=ld.lib.so -Wl,--whole-archive -Wl,--start-group ../main.o $libs/cap_alloc/cap_alloc.lib.a $libs/console/console.lib.a $libs/cxx/cxx.lib.a $libs/log_console/log_console.lib.a $libs/platform/platform.lib.a $libs/startup/startup.lib.a $libs/syscalls/syscalls.lib.a $libs/libc/libc.lib.so $libs/ld/ld.lib.so -Wl,--end-group -Wl,--no-whole-archive /usr/local/genode-gcc-4.4.5/bin/../lib/gcc/i686-pc-linux-gnu/4.4.5/../../../libstdc++.a /usr/local/genode-gcc-4.4.5/bin/../lib/gcc/i686-pc-linux-gnu/4.4.5/libgcc.a -o thread-migration
ln -sf `pwd`/thread-migration /home/tianc/git/omnios/build/genode-build-omnios/bin/thread-migration
make --no-print-directory -C bootstrap -f /home/tianc/git/omnios/genode/base/mk/prg.mk \
REP_DIR=/home/tianc/git/omnios/genode/base-foc \
PRG_REL_DIR=bootstrap \
BUILD_BASE_DIR=/home/tianc/git/omnios/build/genode-build-omnios \
DEPS="l4re_support.lib platform.lib platform.lib " \
SHELL=/bin/bash \
INSTALL_DIR="/home/tianc/git/omnios/build/genode-build-omnios/bin"
Hope the above information is enough for you to reproduce the bug.
Chen
-----Original Message-----
From: Christian Helmuth [mailto:christian.helmuth at ...1...]
Sent: Saturday, June 04, 2011 2:05 PM
To: genode-main at lists.sourceforge.net
Subject: Re: Problem in Genode building system?
Hi,
could you please provide more context (names of applications you
build, command line executed, verbose build output)? I fear we cannot
help with that little information.
Regards
--
Christian Helmuth
Genode Labs
http://www.genode-labs.com/ · http://genode.org/ · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
On Fri, Jun 03, 2011 at 04:45:05PM -0700, Chen Tian - SISA wrote:
> Hi,
>
>
>
> Here is the situation I observed:
>
> First, I compile application A, which failed because I introduced some
> incorrect C statements in the source code.
>
> Then, I compile application B, which succeeded.
>
> Finally, I compile A again (without clean), the building system
> surprisingly generated A's binary! According to the verbose output,
> there is no compiling phase but only linking phase this time. If I run
> this fake binary, it's B's content.
>
>
>
> Any idea what is going on?
>
>
>
> Chen
>
> ------------------------------------------------------------------------------
> Simplify data backup and recovery for your virtual environment with vRanger.
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Discover what all the cheering's about.
> Get your free trial download today.
> http://p.sf.net/sfu/quest-dev2dev2
> _______________________________________________
> Genode-main mailing list
> Genode-main at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
Genode-main mailing list
Genode-main at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main
More information about the users
mailing list