#3158 closed defect (fixed)
Examples v2 does not build
Reported by: | Chris Johns | Owned by: | Chris Johns |
---|---|---|---|
Priority: | high | Milestone: | 5.1 |
Component: | unspecified | Version: | 5 |
Severity: | major | Keywords: | examples |
Cc: | Blocked By: | ||
Blocking: |
Description
Updating waf breaks the rootfs. Add rootfs support to rtems-waf.git
.
Change History (12)
comment:1 Changed on 10/02/17 at 00:13:35 by Chris Johns
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:2 follow-up: 3 Changed on 10/06/17 at 19:41:46 by Joel Sherrill
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:3 Changed on 10/06/17 at 21:57:35 by Chris Johns
Replying to Joel Sherrill:
I think this is still broken for me. I did a "git module update" and it didn't seem to pull anything.
I have not worked on this since my last changes you have.
I did "./waf -k" and multiple tests do not build currently. I cd'ed to file_io/crc and then did this:
Using -k
is a good idea. I should have done that.
../../file_io/crc/init.c:18:10: fatal error: FilesystemImage?.h: No such file or directory
#include "FilesystemImage?.h"
I have changed the bin2tar
file name to clean up the code. The code now uses the rtems_waf
rootfs to create the C filesystem file.
I did a "git submodule deinit ." and reinitialized the modules but that didn't help either.
This a bug I did not see because the build I did stopped at the trace linker errors.
comment:4 Changed on 10/06/17 at 22:04:09 by Joel Sherrill
Awesome! Any other tests which look easy to fix?
comment:5 Changed on 10/12/17 at 11:03:38 by Sebastian Huber <sebastian.huber@…>
In [changeset:"4b907ce1888864b5f311e99606d42493ea8ef96a/examples-v2" 4b907ce/examples-v2]:
comment:6 Changed on 10/12/17 at 11:07:34 by Sebastian Huber <sebastian.huber@…>
In [changeset:"7a8df0d7b90a9ca710829662cda44400e29a2cd7/examples-v2" 7a8df0d/examples-v2]:
comment:7 follow-up: 8 Changed on 10/12/17 at 11:12:24 by Sebastian Huber
The following errors are left:
Waf: Entering directory `build/arm-rtems4.12-xilinx_zynq_a9_qemu' [ 29/115] Compiling file_io/crc/init.c [ 34/115] Compiling build/arm-rtems4.12-xilinx_zynq_a9_qemu/file_io/fdopen/test.c.2.o error: config section: dump-on-error: not found [108/115] Linking build/arm-rtems4.12-xilinx_zynq_a9_qemu/posix_api/psx_sched_report/psx_sched_report.exe ../../file_io/crc/init.c:18:10: fatal error: FilesystemImage.h: No such file or directory #include "FilesystemImage.h" ^~~~~~~~~~~~~~~~~~~ compilation terminated. librtemscpu.a(default-configuration.o): In function `__getreent': confdefs.h:2342: multiple definition of `__getreent' Waf: Leaving directory `build/arm-rtems4.12-xilinx_zynq_a9_qemu' Build failed -> task in 'fdopen.texe' failed with exit status 10 (run with -v to display more information) -> task in 'crc.exe' failed with exit status 1 (run with -v to display more information) -> task in 'psx_sched_report.exe' failed with exit status 1 (run with -v to display more information)
comment:8 Changed on 10/12/17 at 15:59:18 by Chris Johns
Replying to Sebastian Huber:
The following errors are left:
Waf: Entering directory `build/arm-rtems4.12-xilinx_zynq_a9_qemu' [ 29/115] Compiling file_io/crc/init.c [ 34/115] Compiling build/arm-rtems4.12-xilinx_zynq_a9_qemu/file_io/fdopen/test.c.2.o error: config section: dump-on-error: not found
The fix is to remove the line from the INI file.
[108/115] Linking build/arm-rtems4.12-xilinx_zynq_a9_qemu/posix_api/psx_sched_report/psx_sched_report.exe ../../file_io/crc/init.c:18:10: fatal error: FilesystemImage.h: No such file or directory #include "FilesystemImage.h" ^~~~~~~~~~~~~~~~~~~ compilation terminated.
I change the name of the file system image. I have refactored the support so rtems_waf
can build a tar file and create the C/H files with a single build instance. I forgot to update the init.c
files.
librtemscpu.a(default-configuration.o): In function `__getreent': confdefs.h:2342: multiple definition of `__getreent'
This is one Joel has been looking at and has posted on the newlib list about.
comment:9 Changed on 10/12/17 at 19:11:24 by Joel Sherrill <joel@…>
In [changeset:"f15676fb8592a698420b5af6138579f469c826e8/examples-v2" f15676f/examples-v2]:
comment:10 Changed on 10/12/17 at 19:16:23 by Joel Sherrill
psx_sched_report fails due to #3176 and using a default configuration. Changing that test to have an explicit RTEMS configuration.
comment:11 Changed on 10/12/17 at 19:17:28 by Joel Sherrill <joel@…>
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
In [changeset:"b6c5dbb24981b0ca93a94734acccb65be872b34f/examples-v2" b6c5dbb/examples-v2]:
comment:12 Changed on 11/09/17 at 06:27:14 by Sebastian Huber
Milestone: | 4.12.0 → 5.1 |
---|
Milestone renamed
I think this is still broken for me. I did a "git module update" and it didn't seem to pull anything. The configure was this:
./waf configure --rtems=$HOME/rtems-work/tools/4.12/bsps \
I did "./wak -k" and multiple tests do not build currently. I cd'ed to file_io/crc and then did this:
$ ../../waf clean
'clean-sparc-rtems4.12-erc32' finished successfully (0.065s)
[joel@localhost crc]$ ../../waf
Waf: Entering directory `/home/joel/rtems-work/examples-v2/build/sparc-rtems4.12-erc32'
[0/2] Compiling rootfs/image.img
[1/2] Compiling ../../build/sparc-rtems4.12-erc32/file_io/crc/fs-root.tar
[2/6] Compiling crc_32.c
[3/6] Compiling ../../build/sparc-rtems4.12-erc32/file_io/crc/fs-root-tar.c
[4/6] Compiling init.c
../../file_io/crc/init.c:18:10: fatal error: FilesystemImage?.h: No such file or directory
compilation terminated.
Waf: Leaving directory `/home/joel/rtems-work/examples-v2/build/sparc-rtems4.12-erc32'
Build failed
I did a "git submodule deinit ." and reinitialized the modules but that didn't help either.