|
From: Chris J. <ch...@rt...> - 2015-02-11 05:55:20
|
Hello, I am working on getting RTEMS tools (http://www.rtems.org/) to build in MSYS2 on Windows. We cross-compile for RTEMS and are currently using gcc-4.9.2. I am building a SPARC tools chain and I am seeing a some interesting errors when we get to C++'s libsupc++. The issue is not repeatable so I have builds that do not fail here and then builds that do. I am using '-j 2' on the build. The first error I have is: libtool: link: sparc-rtems4.11-ar rc .libs/libsupc++.a array_type_info.o atexit_arm.o atexit_thread.o bad_alloc.o bad_array_length.o bad_array_new.o bad_cast.o bad_typeid.o class_type_info.o del_op.o del_opnt.o del_opv.o del_opvnt.o dyncast.o eh_alloc.o eh_arm.o eh_aux_runtime.o eh_call.o eh_catch.o eh_exception.o eh_globals.o eh_personality.o eh_ptr.o eh_term_handler.o eh_terminate.o eh_tm.o eh_throw.o eh_type.o eh_unex_handler.o enum_type_info.o function_type_info.o fundamental_type_info.o guard.o guard_error.o hash_bytes.o nested_exception.o new_handler.o new_op.o new_opnt.o new_opv.o new_opvnt.o pbase_type_info.o pmem_type_info.o pointer_type_info.o pure.o si_class_type_info.o tinfo.o tinfo2.o vec.o vmi_class_type_info.o vterminate.o cp-demangle.o C:\opt\rtems\rsb\rtems-source-builder.git\rtems\build\tmp\sb-chris\4.11\rtems-sparc\C\opt\rtems\4.11\bin\sparc-rtems4.11-ar.exe: unable to rename '.libs/libsupc++.a'; reason: Permission denied and running the command in the directory as shown worked. The second, again in the same area of gcc is: libtool: link: sparc-rtems4.11-ranlib .libs/libsupc++.a libtool: link: sparc-rtems4.11-ranlib .libs/libsupc++convenience.a C:\opt\rtems\rsb\rtems-source-builder.git\rtems\build\tmp\sb-chris\4.11\rtems-sparc\C\opt\rtems\4.11\bin\sparc-rtems4.11-ranlib.exe: .libs/libsupc++convenience.a: File format not recognized and the .a file is corrupt. The first 8 bytes are 0. I downloaded a fresh MSYS2 2 days ago. Any insight would be welcome. Chris |