RTEMS build broken on msys2

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Oct 11 13:16:31 UTC 2018


it is always a pleasure to work on Windows via msys2. After my recent 
Makefile.am changes the argument list to create the library is too long:

in_cpuinfo.o libmisc/shell/main_profreport.o libmisc/utf8proc/utf8proc.o 
libmd/sha256c.o libmd/sha512c.o             score/cpu/no_cpu/cpuidle.o 
score/cpu/powerpc/cpu.o score/cpu/powerpc/ppc-context-volatile-clobber.o 
make[4]: execvp: powerpc-rtems5-ar: Argument list too long

Some time ago we had the same problem with libbsd and got a fix for waf 
due to that. What works is this manual hack:

librtemscpu.a: $(librtemscpu_a_OBJECTS) $(librtemscpu_a_DEPENDENCIES) 
         -rm -f librtemscpu.a
         echo "" > librtemscpu.txt
         for i in $(librtemscpu_a_OBJECTS) ; do $$i >>librtemscpu.txt ; done
         $(librtemscpu_a_AR) librtemscpu.a @librtemscpu.txt 
         $(RANLIB) librtemscpu.a

The standard Automake target is this:

librtemscpu.a: $(librtemscpu_a_OBJECTS) $(librtemscpu_a_DEPENDENCIES) 
     -rm -f librtemscpu.a
     $(librtemscpu_a_AR) librtemscpu.a $(librtemscpu_a_OBJECTS) 
     $(RANLIB) librtemscpu.a

Is it possible to override a Automake generated target with a custom 

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.huber at embedded-brains.de
PGP     : Public key available on request.

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

More information about the devel mailing list