rtems-syms assumes that the compiler used is GCC. This breaks the build if using a different compiler (such as Clang). Using the --cc argument for rtems-syms we can specify the compiler.
A better implementation would mabe be to configure the default compiler to LLVM when building rtems-tools? --- testsuites/libtests/Makefile.am | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/testsuites/libtests/Makefile.am b/testsuites/libtests/Makefile.am index 36f7a2f..2de35d4 100644 --- a/testsuites/libtests/Makefile.am +++ b/testsuites/libtests/Makefile.am @@ -340,7 +340,7 @@ dl01-tar.h: dl01.tar dl01-tar.o: dl01-tar.c dl01-tar.h $(AM_V_CC)$(COMPILE) -c -o $@ $< dl01-sym.o: dl01.pre - $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $< + $(AM_V_GEN)rtems-syms -e --cc @CC@ -c "$(CFLAGS)" -o $@ $< dl01$(EXEEXT): $(dl01_OBJECTS) $(dl01_DEPENDENCIES) dl01-sym.o @rm -f $@ $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ @@ -373,7 +373,7 @@ dl02-tar.h: dl02.tar dl02-tar.o: dl02-tar.c dl02-tar.h $(AM_V_CC)$(COMPILE) -c -o $@ $< dl02-sym.o: dl02.pre - $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $< + $(AM_V_GEN)rtems-syms -e --cc @CC@ -c "$(CFLAGS)" -o $@ $< dl02$(EXEEXT): $(dl02_OBJECTS) $(dl02_DEPENDENCIES) dl02-sym.o @rm -f $@ $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ @@ -416,7 +416,7 @@ dl04-tar.h: dl04.tar dl04-tar.o: dl04-tar.c dl04-tar.h $(AM_V_CC)$(COMPILE) -c -o $@ $< dl04-sym.o: dl04.pre - $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $< + $(AM_V_GEN)rtems-syms -e --cc @CC@ -c "$(CFLAGS)" -o $@ $< dl04$(EXEEXT): $(dl04_OBJECTS) $(dl04_DEPENDENCIES) dl04-sym.o @rm -f $@ $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ @@ -450,7 +450,7 @@ dl05-tar.h: dl05.tar dl05-tar.o: dl05-tar.c dl05-tar.h $(AM_V_CC)$(COMPILE) -c -o $@ $< dl05-sym.o: dl05.pre - $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $< + $(AM_V_GEN)rtems-syms -e --cc @CC@ -c "$(CFLAGS)" -o $@ $< dl05$(EXEEXT): $(dl05_OBJECTS) $(dl05_DEPENDENCIES) dl05-sym.o @rm -f $@ $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ @@ -487,7 +487,7 @@ dl06-o1.o: dl06/dl06-o1.c Makefile dl06-o2.o: dl06/dl06-o2.c Makefile $(AM_V_CC)$(COMPILE) -c -o $@ $< dl06.rap: dl06.pre dl06-o1.o dl06-o2.o - $(AM_V_GEN)rtems-ld -r $(RTEMS_BUILD_ROOT) -O rap -b $< -e rtems_main -s \ + $(AM_V_GEN)rtems-ld --cc @CC@ -r $(RTEMS_BUILD_ROOT) -O rap -b $< -e rtems_main -s \ -o $@ $(filter-out dl06.pre,$+) -lm dl06.tar: dl06.rap @rm -f $@ @@ -499,7 +499,7 @@ dl06-tar.h: dl06.tar dl06-tar.o: dl06-tar.c dl06-tar.h $(AM_V_CC)$(COMPILE) -c -o $@ $< dl06-sym.o: dl06.pre - $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $< + $(AM_V_GEN)rtems-syms -e --cc @CC@ -c "$(CFLAGS)" -o $@ $< dl06$(EXEEXT): $(dl06_OBJECTS) dl06-sym.o @rm -f $@ $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ -- 2.7.4 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel