The attached patch is necessary for msys2.

I still get the following error:

Waf: Entering directory `/c/rtems-setup-gd/home/rtems-libbsd/build/powerpc-rtems4.12-qoriq_t4240rdb'
[885/955] Linking build/powerpc-rtems4.12-qoriq_t4240rdb/libbsd.a
07:47:25 runner ['/opt/rtems-4.12/bin/powerpc-rtems4.12-ar', 'rcs', 'libbsd.a', 'freebsd/sys/arm/xilinx/zy7_slcr.c.16.o', ... , 'freebsd/contrib/tcpdump/util.c.15.o'] Waf: Leaving directory `/c/rtems-setup-gd/home/rtems-libbsd/build/powerpc-rtems4.12-qoriq_t4240rdb'
Build failed
Traceback (most recent call last):
File "/opt/rtems-4.12/bin/.waf3-1.8.21-e3612d52d5ab0c9954153af91d796340/waflib/Context.py", line 170, in exec_command
    p=subprocess.Popen(cmd,**kw)
  File "/usr/lib/python3.4/subprocess.py", line 859, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.4/subprocess.py", line 1457, in _execute_child
    raise child_exception_type(errno_num, err_msg)
OSError: [Errno 7] Argument list too long

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/rtems-4.12/bin/.waf3-1.8.21-e3612d52d5ab0c9954153af91d796340/waflib/Task.py", line 110, in process
    ret=self.run()
File "/opt/rtems-4.12/bin/.waf3-1.8.21-e3612d52d5ab0c9954153af91d796340/waflib/Tools/ccroot.py", line 95, in wrap
    return old(self)
  File "<string>", line 19, in f
File "/opt/rtems-4.12/bin/.waf3-1.8.21-e3612d52d5ab0c9954153af91d796340/waflib/Task.py", line 95, in exec_command
    return bld.exec_command(cmd,**kw)
File "/opt/rtems-4.12/bin/.waf3-1.8.21-e3612d52d5ab0c9954153af91d796340/waflib/Context.py", line 177, in exec_command
    raise Errors.WafError('Execution failure: %s'%str(e),ex=e)
waflib.Errors.WafError: Execution failure: [Errno 7] Argument list too long

The command line workaround is not applied.

We should see something like this:

Waf: Entering directory `/c/rtems-setup-gd/home/rtems-libbsd/build/powerpc-rtems4.12-qoriq_t4240rdb'
[885/955] Linking build/powerpc-rtems4.12-qoriq_t4240rdb/libbsd.a
08:13:25 runner ['/opt/rtems-4.12/bin/powerpc-rtems4.12-ar', '@/c/rtems-setup-gd/home/rtems-libbsd/build/powerpc-rtems4.12-qoriq_t4240rdb/tmp1mijj1ff'] Waf: Leaving directory `/c/rtems-setup-gd/home/rtems-libbsd/build/powerpc-rtems4.12-qoriq_t4240rdb'
'build-powerpc-rtems4.12-qoriq_t4240rdb' finished successfully (2.922s)

On 16/06/16 05:36, Chris Johns wrote:
On 15/06/2016 18:17, Chris Johns wrote:
My understand is we get to decide. I am happy to see if adding this to
the rtems_waf support can work and so it becomes a configuration
parameter for libbsd to rtems_waf. If RTEMS supports clang in the future
then rtems_waf can be taught to handle that case as well.

I have added long command support to rtems_waf and updated libbsd so it builds cleanly on MSYS2 on Windows10.

Please make sure you 'git submodule update rtems_waf'.

Chris

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

>From dded67b8f1cab75cf13bcdaa6873a20d6b94dbe5 Mon Sep 17 00:00:00 2001
From: Sebastian Huber <sebastian.hu...@embedded-brains.de>
Date: Thu, 16 Jun 2016 07:43:34 +0200
Subject: [PATCH] Fix TabError

---
 rtems.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rtems.py b/rtems.py
index 2bf1982..b471a75 100644
--- a/rtems.py
+++ b/rtems.py
@@ -613,7 +613,7 @@ def long_command_line():
                         os.close(fd)
                 # Line may be very long:
                 # Logs.debug('runner:' + ' '.join(flat))
-		cmd = [cmd[0], '@' + tmp]
+                cmd = [cmd[0], '@' + tmp]
             ret = super(self.__class__, self).exec_command(cmd, **kw)
         finally:
             if tmp:
-- 
1.8.4.5

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to