Hi, I try to build the thread library demo and I have this error : arm-none-linux-gnueabi-gcc -o main.o -c -g -nostdlib -ffreestanding -std=gnu99 -Wall -Werror -march=armv5 -include l4/config.h -include l4/macros.h -include l4/types.h -Iinclude -I/home/nizam/CodeZero/codezero/include -I/home/nizam/CodeZero/codezero/conts/libl4/include -I/home/nizam/CodeZero/codezero/conts/libdev/uart/include -I/home/nizam/CodeZero/codezero/conts/libc/include -I/home/nizam/CodeZero/codezero/conts/libc/include/arch/arm main.c main.c:8: fatal error: l4lib/thread/thread.h: No such file or directory compilation terminated. scons: *** [main.o] Error 1 scons: building terminated because of errors. Traceback (most recent call last): File "./build.py", line 83, in <module> main() File "./build.py", line 44, in main containers.build_all_containers() File "/home/nizam/CodeZero/codezero/scripts/conts/containers.py", line 122, in build_all_containers cont_images.append(build_default_container(config, projpaths, container)) File "/home/nizam/CodeZero/codezero/scripts/conts/containers.py", line 107, in build_default_container conv_hex(elf_binary_size(pager_binary)) File "/home/nizam/CodeZero/codezero/tools/pyelf/elfsize.py", line 7, in elf_binary_size elffile = elf.ElfFile.from_file(img) File "/home/nizam/CodeZero/codezero/tools/pyelf/elf.py", line 448, in from_file gfile = GFile.existing(filename) File "/home/nizam/CodeZero/codezero/tools/pyelf/aistruct.py", line 25, in existing assert os.path.exists(filename) AssertionError
The file "l4lib/thread/thread.h" don't exist but i found the file "l4lib/lib/thread.h". So I replace this path in "main.c" of the project and now I have these errors : arm-none-linux-gnueabi-gcc -o main.o -c -g -nostdlib -ffreestanding -std=gnu99 -Wall -Werror -march=armv5 -include l4/config.h -include l4/macros.h -include l4/types.h -Iinclude -I/home/nizam/CodeZero/codezero/include -I/home/nizam/CodeZero/codezero/conts/libl4/include -I/home/nizam/CodeZero/codezero/conts/libdev/uart/include -I/home/nizam/CodeZero/codezero/conts/libc/include -I/home/nizam/CodeZero/codezero/conts/libc/include/arch/arm main.c cc1: warnings being treated as errors main.c:11: error: "STACK_SIZE" redefined /home/nizam/CodeZero/codezero/conts/libl4/include/l4lib/lib/thread.h:19: note: this is the location of the previous definition main.c:16: error: expected ')' before numeric constant main.c: In function 'do_some_work2': main.c:66: error: implicit declaration of function 'l4_thread_exit' main.c: In function 'thread_demo': main.c:87: error: implicit declaration of function 'l4_thread_create' main.c:87: error: 'TC_SHARE_PAGER' undeclared (first use in this function) main.c:87: error: (Each undeclared identifier is reported only once main.c:87: error: for each function it appears in.) main.c: In function 'main': main.c:110: error: implicit declaration of function 'init_thread_lib' scons: *** [main.o] Error 1 scons: building terminated because of errors. Traceback (most recent call last): File "./build.py", line 83, in <module> main() File "./build.py", line 44, in main containers.build_all_containers() File "/home/nizam/CodeZero/codezero/scripts/conts/containers.py", line 122, in build_all_containers cont_images.append(build_default_container(config, projpaths, container)) File "/home/nizam/CodeZero/codezero/scripts/conts/containers.py", line 107, in build_default_container conv_hex(elf_binary_size(pager_binary)) File "/home/nizam/CodeZero/codezero/tools/pyelf/elfsize.py", line 7, in elf_binary_size elffile = elf.ElfFile.from_file(img) File "/home/nizam/CodeZero/codezero/tools/pyelf/elf.py", line 448, in from_file gfile = GFile.existing(filename) File "/home/nizam/CodeZero/codezero/tools/pyelf/aistruct.py", line 25, in existing assert os.path.exists(filename) AssertionError Have I included the right file ? Amit Mahajan wrote: > On Wed, 2010-04-28 at 11:23 +0200, Clément Mazin wrote: > >> Hi, >> I have an error when i try to build Baremetal examples (exept >> Helloworld). The file "l4lib/thread/thread.h" is not found in the >> different include directories. I found a "thread.h" file in >> "codezero/conts/libl4/include/l4lib/lib" but now I have some syntax >> errors. Can someone help me ? >> > > Hi Clément > > Can you please tell what container you are building and also post the > error logs here? > > _______________________________________________ codezero-devel mailing list codezero-devel@lists.l4dev.org http://lists.l4dev.org/mailman/listinfo/codezero-devel