Hello Niko, Am 22.06.2018 um 13:23 schrieb Nicolas Tsiogkas: > Hi, > > waf was downloaded by the website (waf.io <http://waf.io>) > > niko@im-desktop-021:~/sandbox/rtems-libbsd$ which waf-2.0.8 > /home/niko/.local/bin/waf-2.0.8
Should be OK. > > running also with waf-2.0.4 which used to work gives the same error > > ~/sandbox/rtems-libbsd$ waf-2.0.8 -v > Could not create the directory ///h > > ~/sandbox/rtems-libbsd$ waf-2.0.4 -v > Could not create the directory ///h > > that's pretty weird. Yes it is. The build scripts do a lot of stuff in preparation for the real build. But as far as I know nothing of it should create a directory. The first operation that creates a directory should print the following line: [ 1/99] Compiling testsuite/include/rtems/bsd/test/network-config.h.in Anyway: To find out how far you get into the build scripts, I added a few debug messages. Could you try to apply the attached patch and see whether it prints some messages. Note that the messages are not really clean and it seems that there is a bug that prints them two times. But they should give a hint when the build process breaks. Best Regards Christian Mauderer > > Regards, > Niko > > On Fri, Jun 22, 2018 at 12:23 PM Christian Mauderer > <christian.maude...@embedded-brains.de > <mailto:christian.maude...@embedded-brains.de>> wrote: > > Hello Niko, > > from a quick glance, everything till the waf call looks good. What is > really odd is the output of the last waf-2.0.8 call. There should be a > lot more output starting with something like > > ---- > Waf: Entering directory > > `/home/EB/christian_m/Projekte/some-project/rtems-libbsd/build/arm-rtems5-atsamv-everything' > [ 1/122] Creating > build/arm-rtems5-atsamv-everything/build-include/rtems/bsd/modules.h > [ 2/122] Compiling rtemsbsd/rtems/generate_kvm_symbols > [ 3/122] Compiling > testsuite/include/rtems/bsd/test/network-config.h.in > <http://network-config.h.in> > [ 4/122] Compiling freebsd/sys/crypto/blowfish/bf_locl.h > [ 5/122] Compiling freebsd/sys/crypto/blowfish/bf_pi.h > ... > ---- > > You are even missing the "Waf: Entering directory". So that seems like a > quite early bug. > > You can try whether a `waf -v` provides more output. Beneath that: Where > does your waf come from? You call it with a version number. > > Best regards > > Christian Mauderer > > Am 22.06.2018 um 11:21 schrieb Nicolas Tsiogkas: > > Hi, > > > > I did the process again with no luck. I am attaching a zip with > command > > outputs/logs. > > > > Regards, > > Niko > > > > On Fri, Jun 22, 2018 at 9:44 AM Nicolas Tsiogkas > <lou.n...@gmail.com <mailto:lou.n...@gmail.com> > > <mailto:lou.n...@gmail.com <mailto:lou.n...@gmail.com>>> wrote: > > > > Hi Christian, > > > > it is a fresh clone. Although I had a previous build with 4.11 I > > decided try from scratch given the changes. > > > > Error is during the build. I'm configuring normally and when I try > > to waf it then it fails. > > > > Is there any way to increase the verbosity? I will repeat all the > > process from scratch keeping logs so I can send them and try > to find > > the issue. > > > > Thanks for your time! > > > > Regards, > > Niko > > > > On Thu, Jun 21, 2018 at 6:49 PM Christian Mauderer > > <l...@c-mauderer.de <mailto:l...@c-mauderer.de> > <mailto:l...@c-mauderer.de <mailto:l...@c-mauderer.de>>> wrote: > > > > Am 21.06.2018 um 16:26 schrieb Nicolas Tsiogkas: > > > And apparently I forgot the host. > > > > > > It is ubuntu 16.04: > > > Linux im-desktop-021 4.13.0-45-generic > #50~16.04.1-Ubuntu SMP > > Wed May 30 > > > 11:18:27 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux > > > gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9) > > > > > > N. > > > > > > > > > On Thu, Jun 21, 2018 at 4:19 PM Nicolas Tsiogkas > > <lou.n...@gmail.com <mailto:lou.n...@gmail.com> > <mailto:lou.n...@gmail.com <mailto:lou.n...@gmail.com>> > > > <mailto:lou.n...@gmail.com <mailto:lou.n...@gmail.com> > <mailto:lou.n...@gmail.com <mailto:lou.n...@gmail.com>>>> wrote: > > > > > > Hi Joel, > > > > > > waf-2.0.8 configure --prefix="$sandbox/5" > > > --rtems-bsps=arm/xilinx_zynq_a9_qemu > > > > > > has the following output: > > > > > > Setting top to : > > > /home/niko/sandbox/rtems-libbsd > > > Setting out to : > > > /home/niko/sandbox/rtems-libbsd/build > > > RTEMS Version : 5 > > > Architectures : arm-rtems5 > > > Board Support Package : > > > arm-rtems5-xilinx_zynq_a9_qemu > > > Show commands : no > > > Long commands : no > > > Checking for program 'arm-rtems5-gcc' : > > > /home/niko/sandbox/5/bin/arm-rtems5-gcc > > > Checking for program 'arm-rtems5-g++' : > > > /home/niko/sandbox/5/bin/arm-rtems5-g++ > > > Checking for program 'arm-rtems5-gcc' : > > > /home/niko/sandbox/5/bin/arm-rtems5-gcc > > > Checking for program 'arm-rtems5-ld' : > > > /home/niko/sandbox/5/bin/arm-rtems5-ld > > > Checking for program 'arm-rtems5-ar' : > > > /home/niko/sandbox/5/bin/arm-rtems5-ar > > > Checking for program 'arm-rtems5-nm' : > > > /home/niko/sandbox/5/bin/arm-rtems5-nm > > > Checking for program 'arm-rtems5-objdump' : > > > /home/niko/sandbox/5/bin/arm-rtems5-objdump > > > Checking for program 'arm-rtems5-objcopy' : > > > /home/niko/sandbox/5/bin/arm-rtems5-objcopy > > > Checking for program 'arm-rtems5-readelf' : > > > /home/niko/sandbox/5/bin/arm-rtems5-readelf > > > Checking for program 'arm-rtems5-strip' : > > > /home/niko/sandbox/5/bin/arm-rtems5-strip > > > Checking for program 'rtems-ld' : > > > /home/niko/sandbox/5/bin/rtems-ld > > > Checking for program 'rtems-tld' : > > > /home/niko/sandbox/5/bin/rtems-tld > > > Checking for program 'rtems-bin2c' : > > > /home/niko/sandbox/5/bin/rtems-bin2c > > > Checking for program 'tar' : /bin/tar > > > Checking for program 'gcc, cc' : > > > /home/niko/sandbox/5/bin/arm-rtems5-gcc > > > Checking for program 'ar' : > > > /home/niko/sandbox/5/bin/arm-rtems5-ar > > > Checking for program 'g++, c++' : > > > /home/niko/sandbox/5/bin/arm-rtems5-g++ > > > Checking for program 'ar' : > > > /home/niko/sandbox/5/bin/arm-rtems5-ar > > > Checking for program 'gas, gcc' : > > > /home/niko/sandbox/5/bin/arm-rtems5-gcc > > > Checking for program 'ar' : > > > /home/niko/sandbox/5/bin/arm-rtems5-ar > > > Compiler version (arm-rtems5-gcc) : 7.3.0 > 20180125 > > (RTEMS 5, > > > RSB 8ee4e8cd557c25fca59bb9751751ad4172530958, Newlib > 3.0.0) > > > Checking for RTEMS CPU options header : started > > > -> processing test results : all ok > > > Checking for RTEMS_DEBUG : no > > > Checking for RTEMS_MULTIPROCESSING : no > > > Checking for RTEMS_NEWLIB : yes > > > Checking for RTEMS_POSIX_API : yes > > > Checking for RTEMS_SMP : no > > > Checking for RTEMS_NETWORKING : no > > > Checking for RTEMS header : started > > > -> processing test results : all ok > > > Checking for header dlfcn.h : yes > > > Checking for header rtems/pci.h : yes > > > Configure variant: : > > > arm-rtems5-xilinx_zynq_a9_qemu-default > > > Checking for header rtems/rtems-debugger.h : yes > > > 'configure' finished successfully (0.744s) > > > > > > Cheers, > > > Niko > > > > > > On Thu, Jun 21, 2018 at 4:09 PM Joel Sherrill > > <j...@rtems.org <mailto:j...@rtems.org> > <mailto:j...@rtems.org <mailto:j...@rtems.org>> > > > <mailto:j...@rtems.org <mailto:j...@rtems.org> > <mailto:j...@rtems.org <mailto:j...@rtems.org>>>> wrote: > > > > > > > > > > > > On Thu, Jun 21, 2018 at 8:52 AM, Nicolas Tsiogkas > > > <lou.n...@gmail.com <mailto:lou.n...@gmail.com> > <mailto:lou.n...@gmail.com <mailto:lou.n...@gmail.com>> > > <mailto:lou.n...@gmail.com <mailto:lou.n...@gmail.com> > <mailto:lou.n...@gmail.com <mailto:lou.n...@gmail.com>>>> wrote: > > > > > > Hi, > > > > > > following the steps described > > > in https://github.com/RTEMS/rtems-libbsd I > get an > > error > > > > > > "Could not create the directory ///h" while > trying > > to build > > > with waf 2.0.8 > > > > > > Is it a known problem? > > > > > > > > > Not to me. > > > > > > What's your configure command and host? > > > > > > > > > I have seen that the installation procedure has > > changed > > > since 4.11 and now the tools and the bsps are > > installed in > > > the same prefix, but that shouldn't matter I > suppose. > > > > > > Thank you in advance. > > > > > > Regards, > > > Niko > > > > > > _______________________________________________ > > > users mailing list > > > users@rtems.org <mailto:users@rtems.org> > <mailto:users@rtems.org <mailto:users@rtems.org>> > > <mailto:users@rtems.org <mailto:users@rtems.org> > <mailto:users@rtems.org <mailto:users@rtems.org>>> > > > http://lists.rtems.org/mailman/listinfo/users > > > > > > > > > > > > > > > _______________________________________________ > > > users mailing list > > > users@rtems.org <mailto:users@rtems.org> > <mailto:users@rtems.org <mailto:users@rtems.org>> > > > http://lists.rtems.org/mailman/listinfo/users > > > > > > > Hello Nicolas, > > > > I also don't know that problem. The directory that should > be created > > "///h" looks like there are some variables missing between the > > slashes. > > But I'm not aware of any directory h that should be created > > somewhere. > > > > - Did you upgrade from a earlier build or do you build in > a fresh > > checkout? There have been some changes to the build system in > > the last > > months that have lead to incompatible cache files. If it is an > > old tree, > > try to remove `build` and `.lock-waf_*`. > > > > - About when does the problem happen? It seems your configure > > runs fine. > > So I assume that it appears during build or install. Maybe > you could > > provide some lines of context to the error message? > > > > Best regards > > > > Christian Mauderer > > > > -- > -------------------------------------------- > embedded brains GmbH > Herr Christian Mauderer > Dornierstr. 4 > D-82178 Puchheim > Germany > email: christian.maude...@embedded-brains.de > <mailto:christian.maude...@embedded-brains.de> > Phone: +49-89-18 94 741 - 18 > Fax: +49-89-18 94 741 - 08 > PGP: Public key available on request. > > Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. >
>From 92d038fd152c45197f57dc54518202c1bae31183 Mon Sep 17 00:00:00 2001 From: Christian Mauderer <o...@c-mauderer.de> Date: Fri, 22 Jun 2018 21:48:12 +0200 Subject: [PATCH] REMOVE_ME: Add some debug messages. --- waf_libbsd.py | 16 ++++++++++++++++ wscript | 1 + 2 files changed, 17 insertions(+) diff --git a/waf_libbsd.py b/waf_libbsd.py index bbc8b42c..000abcf6 100644 --- a/waf_libbsd.py +++ b/waf_libbsd.py @@ -160,6 +160,7 @@ class Builder(builder.ModuleManager): # # Localize the config. # + bld.msg("DEBUG", "Get config.") config = self.getConfiguration() module_header_path = "rtems/bsd" module_header_name = "modules.h" @@ -168,6 +169,7 @@ class Builder(builder.ModuleManager): # # C/C++ flags # + bld.msg("DEBUG", "C/C++ flags.") common_flags = [] common_flags += ['-O%s' % (bld.env.OPTIMIZATION)] if 'common-flags' in config: @@ -184,6 +186,7 @@ class Builder(builder.ModuleManager): # # Defines # + bld.msg("DEBUG", "defines.") defines = [] if len(bld.env.FREEBSD_OPTIONS) > 0: for o in bld.env.FREEBSD_OPTIONS.split(','): @@ -192,6 +195,7 @@ class Builder(builder.ModuleManager): # # Include paths # + bld.msg("DEBUG", "includes.") includes = [] buildinclude = 'build-include' if 'cpu-include-paths' in config: @@ -216,6 +220,7 @@ class Builder(builder.ModuleManager): # # Network test configuration # + bld.msg("DEBUG", "network-test.") if not os.path.exists(bld.env.NET_CONFIG): bld.fatal('network configuraiton \'%s\' not found' % (bld.env.NET_CONFIG)) tags = [ 'NET_CFG_SELF_IP', @@ -249,6 +254,7 @@ class Builder(builder.ModuleManager): # Add a copy rule for all headers where the install path and the source # path are not the same. # + bld.msg("DEBUG", "header-paths.") if 'header-paths' in config: header_build_copy_paths = [ hp for hp in config['header-paths'] if hp[2] != '' and not hp[0].endswith(hp[2]) @@ -267,6 +273,7 @@ class Builder(builder.ModuleManager): # # Generate a header that contains information about enabled modules # + bld.msg("DEBUG", "modules_h_gen") def rtems_libbsd_modules_h_gen(self): output = "" output += '/*\n' @@ -295,6 +302,7 @@ class Builder(builder.ModuleManager): # # KVM Symbols # + bld.msg("DEBUG", "KVM Symbols") if 'KVMSymbols' in self.data: kvmsymbols = self.data['KVMSymbols'] if 'includes' in kvmsymbols['files']: @@ -317,6 +325,7 @@ class Builder(builder.ModuleManager): # # RPC Generation # + bld.msg("DEBUG", "RPCGen") if 'RPCGen' in self.data: if bld.env.AUTO_REGEN: rpcgen = self.data['RPCGen'] @@ -328,6 +337,7 @@ class Builder(builder.ModuleManager): # # Route keywords # + bld.msg("DEBUG", "RouteKeywords") if 'RouteKeywords' in self.data: if bld.env.AUTO_REGEN: routekw = self.data['RouteKeywords'] @@ -343,6 +353,7 @@ class Builder(builder.ModuleManager): # # Lex # + bld.msg("DEBUG", "Lex") if 'lex' in self.data: lexes = self.data['lex'] for l in sorted(lexes.keys()): @@ -372,6 +383,7 @@ class Builder(builder.ModuleManager): # # Yacc # + bld.msg("DEBUG", "Yacc") if 'yacc' in self.data: yaccs = self.data['yacc'] for y in sorted(yaccs.keys()): @@ -410,6 +422,7 @@ class Builder(builder.ModuleManager): # We have 'm' different sets of flags and there can be 'n' cpus # specific files for those flags. # + bld.msg("DEBUG", "sources") objs = 0 sources = sorted(self.data['sources']) if 'default' in sources: @@ -446,6 +459,7 @@ class Builder(builder.ModuleManager): # We hold the 'default' cflags set of files to the end to create the # static library with. # + bld.msg("DEBUG", "lib") build = self.data['sources']['default'] bld_sources = Builder._sourceList(bld, build['all']) archs = sorted(build) @@ -467,6 +481,7 @@ class Builder(builder.ModuleManager): # # Header file collector. # + bld.msg("DEBUG", "header file collector") arch_lib_path = rtems.arch_bsp_lib_path(bld.env.RTEMS_VERSION, bld.env.RTEMS_ARCH_BSP) arch_inc_path = rtems.arch_bsp_include_path(bld.env.RTEMS_VERSION, @@ -497,6 +512,7 @@ class Builder(builder.ModuleManager): # # Tests # + bld.msg("DEBUG", "tests") tests = self.data['tests'] for testName in sorted(tests): test = self.data['tests'][testName]['all'] diff --git a/wscript b/wscript index e0a7e9f7..50c96098 100644 --- a/wscript +++ b/wscript @@ -227,5 +227,6 @@ def configure(conf): rtems.configure(conf, bsp_configure) def build(bld): + bld.msg("DEBUG", "Starting build") rtems.build(bld) builders[bld.libbsd_buildset_name].build(bld) -- 2.17.1
_______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users