Static library is destroyed by building project

Comments

28 comments

  • Avatar
    Jon Elliott

    Right click on the executable project in the project explorer window and click Export Build to show the command lines for each build step - what is output?

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    Jon, the output is 67 lines and many are very long. The first 15 are as shown below. I will send all of it to you, if you need. 

    Thank you,

     --Jim

    cd "/home/jim/Documents/CrossWorks Projects/Executable_1"
    /usr/share/crossworks_for_arm_5.2/bin/mkdir -p "Apollo3Library ARM Release"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms.d" -MQ "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/cal_cpa_time_float_v3a1_ms.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms.asm" -o "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_data.d" -MQ "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_data.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/cal_cpa_time_float_v3a1_ms_data.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_data.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_data.asm" -o "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_data.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_data.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_initialize.d" -MQ "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_initialize.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/cal_cpa_time_float_v3a1_ms_initialize.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_initialize.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_initialize.asm" -o "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_initialize.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_initialize.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_terminate.d" -MQ "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_terminate.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/cal_cpa_time_float_v3a1_ms_terminate.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Ap

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    I can't see any mention of libname.a in any of these command lines - can you see any command lines that would account for why libname.a is being corrupted?

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    The name libname.a was used only to represent the actual library name - it is "Apollo3Library.a". I will try to include more of the file you requested. It's considerably larger than I might have guessed.  

    cd "/home/jim/Documents/CrossWorks Projects/Executable_1"
    /usr/share/crossworks_for_arm_5.2/bin/mkdir -p "Apollo3Library ARM Release"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms.d" -MQ "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/cal_cpa_time_float_v3a1_ms.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms.asm" -o "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_data.d" -MQ "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_data.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/cal_cpa_time_float_v3a1_ms_data.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_data.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_data.asm" -o "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_data.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_data.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_initialize.d" -MQ "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_initialize.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/cal_cpa_time_float_v3a1_ms_initialize.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_initialize.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_initialize.asm" -o "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_initialize.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_initialize.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_terminate.d" -MQ "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_terminate.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/cal_cpa_time_float_v3a1_ms_terminate.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_terminate.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_terminate.asm" -o "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_terminate.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_terminate.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms.d" -MQ "Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/cal_cpa_time_float_v3a2_ms.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms.asm" -o "Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_data.d" -MQ "Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_data.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/cal_cpa_time_float_v3a2_ms_data.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_data.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_data.asm" -o "Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_data.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_data.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_initialize.d" -MQ "Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_initialize.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/cal_cpa_time_float_v3a2_ms_initialize.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_initialize.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_initialize.asm" -o "Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_initialize.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_initialize.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_terminate.d" -MQ "Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_terminate.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/cal_cpa_time_float_v3a2_ms_terminate.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_terminate.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_terminate.asm" -o "Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_terminate.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_terminate.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float.d" -MQ "Apollo3Library ARM Release/detect_target_simple_v8_float.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/detect_target_simple_v8_float.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float.asm" -o "Apollo3Library ARM Release/detect_target_simple_v8_float.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float_data.d" -MQ "Apollo3Library ARM Release/detect_target_simple_v8_float_data.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/detect_target_simple_v8_float_data.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float_data.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float_data.asm" -o "Apollo3Library ARM Release/detect_target_simple_v8_float_data.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float_data.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float_initialize.d" -MQ "Apollo3Library ARM Release/detect_target_simple_v8_float_initialize.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/detect_target_simple_v8_float_initialize.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float_initialize.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float_initialize.asm" -o "Apollo3Library ARM Release/detect_target_simple_v8_float_initialize.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float_initialize.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float_terminate.d" -MQ "Apollo3Library ARM Release/detect_target_simple_v8_float_terminate.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/detect_target_simple_v8_float_terminate.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float_terminate.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float_terminate.asm" -o "Apollo3Library ARM Release/detect_target_simple_v8_float_terminate.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/detect_target_simple_v8_float_terminate.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=arm7tdmi-s -mlittle-endian -mfloat-abi=soft -mabi=aapcs -mno-unaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/filter_data_float_v2.d" -MQ "Apollo3Library ARM Release/filter_data_float_v2.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/filter_data_float_v2.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/filter_data_float_v2.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/filter_data_float_v2.asm" -o "Apollo3Library ARM Release/filter_data_float_v2.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/filter_data_float_v2.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -lang-asm -fdiagnostics-color=never -fdiagnostics-show-caret -E -march=armv4t -mlittle-endian -mfloat-abi=soft -mno-unaligned-access -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/ARM_Startup.d" -MQ "Apollo3Library ARM Release/ARM_Startup.o" -quiet /usr/share/crossworks_for_arm_5.2/samples/ARM_Startup.s -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/ARM_Startup_PP.s"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/ARM_Startup_PP.s" -o "Apollo3Library ARM Release/ARM_Startup.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/ARM_Startup_PP.s"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -lang-asm -fdiagnostics-color=never -fdiagnostics-show-caret -E -march=armv4t -mlittle-endian -mfloat-abi=soft -mno-unaligned-access -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include -I. -D__ARM_ARCH_4T__ -D__CROSSWORKS_ARM -D__HEAP_SIZE__=1024 "-isystem/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/include" -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/crt0.d" -MQ "Apollo3Library ARM Release/crt0.o" -quiet /usr/share/crossworks_for_arm_5.2/source/crt0.s -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/crt0_PP.s"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format -I. -march=armv4t -mlittle-endian -mfloat-abi=soft "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/crt0_PP.s" -o "Apollo3Library ARM Release/crt0.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/crt0_PP.s"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/Apollo3Library.a"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/ar -rcs "Apollo3Library ARM Release/Apollo3Library.a" "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms.o" "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_data.o" "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_initialize.o" "Apollo3Library ARM Release/cal_cpa_time_float_v3a1_ms_terminate.o" "Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms.o" "Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_data.o" "Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_initialize.o" "Apollo3Library ARM Release/cal_cpa_time_float_v3a2_ms_terminate.o" "Apollo3Library ARM Release/detect_target_simple_v8_float.o" "Apollo3Library ARM Release/detect_target_simple_v8_float_data.o" "Apollo3Library ARM Release/detect_target_simple_v8_float_initialize.o" "Apollo3Library ARM Release/detect_target_simple_v8_float_terminate.o" "Apollo3Library ARM Release/filter_data_float_v2.o" "Apollo3Library ARM Release/ARM_Startup.o" "Apollo3Library ARM Release/crt0.o"
    /usr/share/crossworks_for_arm_5.2/bin/mkdir -p "Apollo3_1 ARM Release"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=cortex-m4 -mlittle-endian -mfloat-abi=hard -mabi=aapcs -mfpu=fpv4-sp-d16 -mthumb -munaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/CMSIS/Device/Include" "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/CMSIS_5/CMSIS/Core/Include" -D__ARM_ARCH_7EM__ -D__CROSSWORKS_ARM -D__ARM_ARCH_FPV4_SP_D16__ -D__HEAP_SIZE__=256 -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DAPOLLO2_1024 -D__Apollo_FAMILY -DARM_MATH_CM4 -DFLASH_PLACEMENT=1 -DSTARTUP_FROM_RESET -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/Apollo3Library.a" -MQ "Apollo3_1 ARM Release/system_apollo2.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -mtext=.init -mrodata=.init_rodata -fshort-enums -fno-common "/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/CMSIS/Device/Source/system_apollo2.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/system_apollo2.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/CMSIS/Device/Include" -march=armv7e-m -mlittle-endian -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/system_apollo2.asm" -o "Apollo3_1 ARM Release/system_apollo2.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/system_apollo2.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -fdiagnostics-color=never -fdiagnostics-show-caret -mcpu=cortex-m4 -mlittle-endian -mfloat-abi=hard -mabi=aapcs -mfpu=fpv4-sp-d16 -mthumb -munaligned-access -mtp=soft -mfp16-format=ieee -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/CMSIS/Device/Include" "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/CMSIS_5/CMSIS/Core/Include" -D__ARM_ARCH_7EM__ -D__CROSSWORKS_ARM -D__ARM_ARCH_FPV4_SP_D16__ -D__HEAP_SIZE__=256 -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DAPOLLO2_1024 -D__Apollo_FAMILY -DARM_MATH_CM4 -DFLASH_PLACEMENT=1 -DSTARTUP_FROM_RESET -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/hao_main.d" -MQ "Apollo3_1 ARM Release/hao_main.o" -quiet -O1 -fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-enums -fno-common "/home/jim/Documents/CrossWorks Projects/Executable_1/hao_main.c" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/hao_main.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/CMSIS/Device/Include" -march=armv7e-m -mlittle-endian -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/hao_main.asm" -o "Apollo3_1 ARM Release/hao_main.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/hao_main.asm"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -lang-asm -fdiagnostics-color=never -fdiagnostics-show-caret -E -march=armv7e-m -mlittle-endian -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -munaligned-access -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/CMSIS/Device/Include" "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/CMSIS_5/CMSIS/Core/Include" -D__ARM_ARCH_7EM__ -D__CROSSWORKS_ARM -D__ARM_ARCH_FPV4_SP_D16__ -D__HEAP_SIZE__=256 -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DAPOLLO2_1024 -D__Apollo_FAMILY -DARM_MATH_CM4 -DFLASH_PLACEMENT=1 -DSTARTUP_FROM_RESET -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/Apollo3Library.a" -MQ "Apollo3_1 ARM Release/apollo2_Vectors.o" -quiet "/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/Source/apollo2_Vectors.s" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/apollo2_Vectors_PP.s"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/CMSIS/Device/Include" -march=armv7e-m -mlittle-endian -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/apollo2_Vectors_PP.s" -o "Apollo3_1 ARM Release/apollo2_Vectors.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/apollo2_Vectors_PP.s"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -lang-asm -fdiagnostics-color=never -fdiagnostics-show-caret -E -march=armv7e-m -mlittle-endian -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -munaligned-access -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/CMSIS/Device/Include" "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/CMSIS_5/CMSIS/Core/Include" -D__ARM_ARCH_7EM__ -D__CROSSWORKS_ARM -D__ARM_ARCH_FPV4_SP_D16__ -D__HEAP_SIZE__=256 -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DAPOLLO2_1024 -D__Apollo_FAMILY -DARM_MATH_CM4 -DFLASH_PLACEMENT=1 -DSTARTUP_FROM_RESET -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/Apollo3Library.a" -MQ "Apollo3_1 ARM Release/Apollo_Startup.o" -quiet "/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/Source/Apollo_Startup.s" -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/Apollo_Startup_PP.s"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/CMSIS/Device/Include" -march=armv7e-m -mlittle-endian -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/Apollo_Startup_PP.s" -o "Apollo3_1 ARM Release/Apollo_Startup.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/Apollo_Startup_PP.s"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/cc1 -fmessage-length=0 -lang-asm -fdiagnostics-color=never -fdiagnostics-show-caret -E -march=armv7e-m -mlittle-endian -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -munaligned-access -nostdinc -isystem/usr/share/crossworks_for_arm_5.2/include "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/CMSIS/Device/Include" "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/CMSIS_5/CMSIS/Core/Include" -D__ARM_ARCH_7EM__ -D__CROSSWORKS_ARM -D__ARM_ARCH_FPV4_SP_D16__ -D__HEAP_SIZE__=256 -D__CROSSWORKS_MAJOR_VERSION=5 -D__CROSSWORKS_MINOR_VERSION=2 -D__CROSSWORKS_REVISION=2 -DAPOLLO2_1024 -D__Apollo_FAMILY -DARM_MATH_CM4 -DFLASH_PLACEMENT=1 -DSTARTUP_FROM_RESET -DNDEBUG -D__ARM -MD "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/Apollo3Library.a" -MQ "Apollo3_1 ARM Release/thumb_crt0.o" -quiet /usr/share/crossworks_for_arm_5.2/source/thumb_crt0.s -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/thumb_crt0_PP.s"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/as --traditional-format "-I/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/CMSIS/Device/Include" -march=armv7e-m -mlittle-endian -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/thumb_crt0_PP.s" -o "Apollo3_1 ARM Release/thumb_crt0.o"
    /usr/share/crossworks_for_arm_5.2/bin/rm -f "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/thumb_crt0_PP.s"
    /usr/share/crossworks_for_arm_5.2/bin/mkld -target arm -memory-map-file "/home/jim/.rowley_associates_limited/CrossWorks for ARM/v5/packages/targets/Apollo/XML/AMAPH1KK-KBR_MemoryMap.xml" -section-placement-file /usr/share/crossworks_for_arm_5.2/targets/Cortex_M/flash_placement.xml -check-segment-overflow -check-section-overflow -symbols "__STACKSIZE__=256;__STACKSIZE_PROCESS__=0;__STACKSIZE_IRQ__=0;__STACKSIZE_FIQ__=0;__STACKSIZE_SVC__=0;__STACKSIZE_ABT__=0;__STACKSIZE_UND__=0;__HEAPSIZE__=256;__do_debug_operation=__do_debug_operation_mempoll;__vfprintf=__vfprintf_float_long_long;__vfscanf=__vfscanf_float_long_long_cc" "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/Apollo3_1.ld"
    /usr/share/crossworks_for_arm_5.2/gcc/arm-none-eabi/bin/ld -X --omagic -eReset_Handler -EL --gc-sections "-T/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/Apollo3_1.ld" -Map "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/Apollo3_1.map" --defsym=__STACKSIZE__=256 --defsym=__STACKSIZE_PROCESS__=0 --defsym=__STACKSIZE_IRQ__=0 --defsym=__STACKSIZE_FIQ__=0 --defsym=__STACKSIZE_SVC__=0 --defsym=__STACKSIZE_ABT__=0 --defsym=__STACKSIZE_UND__=0 --defsym=__HEAPSIZE__=256 --defsym=__do_debug_operation=__do_debug_operation_mempoll --defsym=__vfprintf=__vfprintf_float_long_long --defsym=__vfscanf=__vfscanf_float_long_long_cc -u_vectors -o "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3_1 ARM Release/Apollo3_1.elf" --start-group "Apollo3_1 ARM Release/system_apollo2.o" "Apollo3_1 ARM Release/hao_main.o" "Apollo3_1 ARM Release/apollo2_Vectors.o" "Apollo3_1 ARM Release/Apollo_Startup.o" "Apollo3_1 ARM Release/thumb_crt0.o" "/home/jim/Documents/CrossWorks Projects/Executable_1/Apollo3Library ARM Release/Apollo3Library.a" /usr/share/crossworks_for_arm_5.2/lib/libm_v7em_fpv4_sp_d16_hard_t_le_eabi.a /usr/share/crossworks_for_arm_5.2/lib/libc_v7em_fpv4_sp_d16_hard_t_le_eabi.a /usr/share/crossworks_for_arm_5.2/lib/libdebugio_v7em_fpv4_sp_d16_hard_t_le_eabi.a /usr/share/crossworks_for_arm_5.2/lib/libcm_v7em_fpv4_sp_d16_hard_t_le_eabi.a --end-group

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    Hi James,

    It looks like you've probably set the executable project's Code > Build > Dependency File Name project property to point to the library file as it is being passed to the compiler using the -MD option.

    The dependency file is generated by the compiler and contains a list of the files the source file being compiled is dependent on.

    To solve this, return the property to it's default value by right clicking on the project property in the project explorer and selecting Use Inherited Value.

    To link in a static library, you can either add the file path to the executable project's Code > Linker > Additional Input Files project property or, if it is in the same solution, right click on the executable project in the project explorer, click Dependencies and tick the library project's check box.

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    The Solution has two projects. One project is the static library project. The other project, which should result in an executable has only one file (in c) and requires the static library. I would like to follow your instructions explicitly. Which project gets the change to "Use Inherited Value"?

    In other words, please tell me which project gets the change to "Use Inherited Value". Is this the static library project? 

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    No, the executable project - it is building this project that is overwriting the library.

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    I can see that the library file is not being disturbed now. The files can be compiled without errors in each project of the solution. The linker is unhappy, though. If I do a "Build" it complains that Apollo.elf uses VFP register arguments, but Apollo3Library.a does not. Then it follows up with a "failed to merge target specific data of file (and names the same object file). These problems are repeated for all the library files. I can perform a build of all the c files which become the library without difficulties. The problems occur when I try to do a build of the file representing the executable project. 

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    The architecture of the library and executable differs.

    The easiest way to create a library targeting the Apollo device is to create the library project using the Apollo library project template:

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    I began a new project, as you showed here. The problem is that when I try to build these files into a library, CrossStudio complains that it can't see the "Include" files. I thought their path was automatically assigned when the folders were entered. I believe I did this in the same way when I set up the project for a generic library, instead of the Ambiq library. That project builds correctly into a static library. But, as you said, it was not aimed at the Ambiq Micro. Perhaps I need to better understand how CrossStudio locates the headers in a project.  

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    What is the appropriate way to introduce the header files in a project?

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    What is the appropriate way to introduce the header files in a project?

    Directories can be added to the user include search path by modifying the Code > Preprocessor > User Include Directories project property.

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    That worked as you suggested. System_Apollo2.c, System_Apollo2.h, and Apollo2.h. are necessary. I added those, but now CrossStudio complains that system_apollo2.asm has unterminated newlines inserted, unknown pseudo-ops, and other problems. Is it possible that something has been corrupted? This is just supposed to build a static library.

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    It is hard to tell without seeing the exact errors, the command line that generated them and the file itself, but it sounds like you are trying to assemble something that isn't assembly code.

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    I certainly agree, but this is the first time I've seen such. I would not move files around. I have screen images of the errors.

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    Do the export build again and return all the command lines containing the string "system_apollo2".

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    I don't really understand what you are suggesting here. For example, which "command lines" are we describing?

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    Jon, I would like to try your suggestion. Can you explain which "command lines" you are describing here?

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    In order to try an diagnose the cause of the problem, show the command lines that are potentially causing the error, i.e. the build command lines containing the string "system_apollo2".

    To do this, right click on the solution in the project explorer and click Export Build, then click File > Save File1.txt to save the command lines to a file. The lines containing the string "system_apollo2" can be obtained by running 'grep system_apollo2 File1.txt' from the Linux command prompt.

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    I make changes to the system, but it seems that it just gets more complicated. It is complaining that it doesn't see a header file called "system_apollo2.h". Interestingly, CrossStudio brought in and displayed "system_apollo2.c". I believe that's provided by CrossWorks. I don't understand how it found "system_apollo2.c", but doesn't find "system_apollo2.h". The header file is there under CMSIS/Device/Include. Am I supposed to place that location and/or file somewhere in CrossStudio to make it visible?

    Is there something else I was supposed to do? I have configured this project to build an executable for the AMAPH1KK-KBR. The other "Project" of the "Solution" is for static libraries. That one seems to compile and link correctly.

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    Jon, please take a look at my last comment. I'm still stuck in the mud.

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    I don't understand how it found "system_apollo2.c", but doesn't find "system_apollo2.h". The header file is there under CMSIS/Device/Include. Am I supposed to place that location and/or file somewhere in CrossStudio to make it visible?

    No.

    The Ambiq Micro Apollo executable project template creates the project with the system_apollo2.c file added to the project (specified by the $(DeviceSystemFile) macro in the "CMSIS Files" folder):

    and the path to Apollo system header files added to the Code > Preprocessor > User Include Directories (specified by the the $(DeviceIncludePath) macro):

    Is there something else I was supposed to do?

    No, the project should build successfully immediately after it has been created.

    I would imagine the most likely cause of the system include file no longer being able to be found would be if you removed the $(DeviceIncludePath) entry from the Code > Preprocessor > User Include Directories directory list when you added the path to your static library header files.

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    I haven't found anything which was moved. To avoid further problems, I have initiated a new project as a library. I have placed all the header files in the Code>Preprocessor>Include Directories. CrossStudio still refuses to use them. So now I can’t compile the files which work under the library part of another project. Under Project 'Library_1' I added the four directories of the files I intend to compile as libraries. CrossStudio tells me I don’t have headers. But under the above-mentioned Include Directories, I added the locations.  I used existing listings in CrossStudio to write them correctly. I’ve tried writing them out completely, and writing them as a macro which I designed. The c files and headers are all copies of the original files in a new directory location to avoid any further problems. I have successfully used CrossStudio for a few relatively simple projects, but this project which involves some static libraries has completely defeated me. What is your suggestion? I’ve made no progress in days.

     -James

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    There is really not a lot to it. All you need to do is:

    • Click File > New Project
    • If prompted with a "Where do you want to create a new project?" dialog, select the "Create the project in a new solution" option.
    • Select the "A C/C++ executable for Ambiq Micro Apollo" project template
    • Click Next
    • Click Next
    • Click Next
    • Click Finish

    This will have created a buildable executable project.

    To create the library project:

    • Click File > New Project
    • Select the "Add the project to the current solution" option
    • Select the "A library for Ambiq Micro Apollo" project template
    • Click Next
    • Click Next
    • Click Finish

    This will have added a library project to the solution.

    To add a C++ file to the library:

    • Right click on the library project in the project explorer and select Add New File
    • Select the "C++ File" template
    • Set the "Name" field to "mylib" and click OK

    To add a header file to the library:

    • Right click on the library project in the project explorer and select Add New File
    • Select the "Header File" template
    • Set the "Name" field to "mylib" and click OK

    You should now have a library project that will build.

    To make the executable project dependent on the library and link it in:

    • Right click on the executable project in the project explorer and select Dependencies
    • Tick the checkbox next to the Library_1 project in the Project Dependencies box.

    Now, when you build the executable project it should also build the library project and link it in.

    To add a function to the library:

    • Right click on the mylib.h file in the project explorer and select Open
    • Add the following text to the mylib.h file:
      int myfunc(int n);
    • Right click on the mylib.cpp file in the project explorer and select Open
    • Add the following text to the mylib.cpp file:
      int myfunc(int n)
      {
        return n * n;
      }

    If you now build the executable project, it should rebuild the library and link it in.

    To add the directory containing the library header file to the list of include directories:

    • Right click on the executable project in the project explorer and select Properties
    • Locate the Code > Preprocessor > User Include Directories property and press the ... button on the right hand side to open the "Set User Include Directories" property editor
    • Append a line containing $(SolutionDir) after the line containing $(DeviceIncludePath) to add the directory containing the solution to the list of include directories. It should look as follows:
    • Click OK to close the dialog.

    To call the library code from the executable:

    • Right click on the main.cpp file in the Source Files folder of the executable project in the project explorer and select Open
    • Modify main.cpp so it looks like:

      //
      // main.cpp : Defines entry point for an Apollo C/C++ application.
      //

      #include <mcu.h>
      #include "mylib.h"

      int main(int argc, char *argv[])
      {
        int n = myfunc(10);
        return 0;
      }

    That is it - you should now be able to build an executable project that calls a function in a library project.

    Note that the paths listed in the list of include directories do not need to be be macros, the macros are used to make the project portable if, for example, you want to move the project to a different directory, machine, etc. If the header files were kept in a subdirectory of the solution called mylib, you could use the line "$(SolutionDir)/mylib".

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    I'm going to follow your directions explicitly. I would like to know if there is a good, easy way of removing a project or solution so that I can reuse the name.

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    CrossStudio still doesn’t see my headers. Under the library project there are five folders, four of which are c files and one which is a group of header files. I also placed them in Code > Preprocessor > User Include Directories. The problem is shown as “No such file or directory”. When adding the folder I checked the “Recurse into subdirectories”. The files are there. What keeps CrossStudio from “seeing” them. Is the problem possibly related to the fact that they are in a separate directory?

    --James

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    I'm going to follow your directions explicitly. I would like to know if there is a good, easy way of removing a project or solution so that I can reuse the name.

    Simply delete the directory containing the solution, or move it to a different location.

    You can also change the location of the solution by changing the Location field when creating a new solution.

    CrossStudio still doesn’t see my headers. Under the library project there are five folders, four of which are c files and one which is a group of header files. I also placed them in Code > Preprocessor > User Include Directories. The problem is shown as “No such file or directory”. When adding the folder I checked the “Recurse into subdirectories”. The files are there. What keeps CrossStudio from “seeing” them. Is the problem possibly related to the fact that they are in a separate directory?

    As I say, there really isn't a lot to this - you just need to add the correct paths to the Code > Preprocessor > User Include Directories project property and get the #include directives right.

    I notice you are using Linux. Linux paths are case sensitive and the path delimiter is / (rather than \ as it is on Windows) so make sure you have the correct case in the include paths and #include directives and that you are using the correct path delimiter.

    Also note that the sub directories of directories specified by Code > Preprocessor > User Include Directories are not searched so if you need to include a file from a sub directory, that directory will need to be added as well.

    Another thing to bear in mind is that the project hierarchy does not necessarily correspond to the directory hierarchy of the file system. The paths specified by Code > Preprocessor > User Include Directories refer to the file's location on the file system.

    0
    Comment actions Permalink
  • Avatar
    James Sutherland

    Okay, and thanks. I am going to try this various ways and see what happens. The concept of using CrossStudio is not so difficult. I just haven't used static libraries before.

    I have projects using the Code > Preprocessor > User Include Directories and they compile correctly. But none of those has a separate static library. 

    0
    Comment actions Permalink

Please sign in to leave a comment.