<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MCUXpresso IDEのトピックRe: Build Error: collect2.exe: error: ld returned 1 exit status</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Build-Error-collect2-exe-error-ld-returned-1-exit-status/m-p/676977#M565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have cleaned and built 20 times.&amp;nbsp; The error is still there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else could be causing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the full Console View:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;15:28:49 **** Build of configuration Debug for project MKL25Z128xxx4_Project ****&lt;/P&gt;&lt;P&gt;make -r -j8 all&lt;/P&gt;&lt;P&gt;Building file: ../startup/startup_mkl25z4.c&lt;/P&gt;&lt;P&gt;Building file: ../source/MKL25Z128xxx4_Project.c&lt;/P&gt;&lt;P&gt;Building file: ../source/board.c&lt;/P&gt;&lt;P&gt;make: stat: source/pin_mux.o: Bad file number&lt;/P&gt;&lt;P&gt;Building file: ../source/clock_config.c&lt;/P&gt;&lt;P&gt;Building file: ../source/common.c&lt;/P&gt;&lt;P&gt;Building file: ../source/i2c1.c&lt;/P&gt;&lt;P&gt;Building file: ../source/mtb.c&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"startup/startup_mkl25z4.d" -MT"startup/startup_mkl25z4.o" -MT"startup/startup_mkl25z4.d" -o "startup/startup_mkl25z4.o" "../startup/startup_mkl25z4.c"&lt;/P&gt;&lt;P&gt;Building file: ../source/main.c&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/board.d" -MT"source/board.o" -MT"source/board.d" -o "source/board.o" "../source/board.c"&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/common.d" -MT"source/common.o" -MT"source/common.d" -o "source/common.o" "../source/common.c"&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/MKL25Z128xxx4_Project.d" -MT"source/MKL25Z128xxx4_Project.o" -MT"source/MKL25Z128xxx4_Project.d" -o "source/MKL25Z128xxx4_Project.o" "../source/MKL25Z128xxx4_Project.c"&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/clock_config.d" -MT"source/clock_config.o" -MT"source/clock_config.d" -o "source/clock_config.o" "../source/clock_config.c"&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/mtb.d" -MT"source/mtb.o" -MT"source/mtb.d" -o "source/mtb.o" "../source/mtb.c"&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/i2c1.d" -MT"source/i2c1.o" -MT"source/i2c1.d" -o "source/i2c1.o" "../source/i2c1.c"&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/main.d" -MT"source/main.o" -MT"source/main.d" -o "source/main.o" "../source/main.c"&lt;/P&gt;&lt;P&gt;Finished building: ../source/board.c&lt;/P&gt;&lt;P&gt;Finished building: ../startup/startup_mkl25z4.c&lt;/P&gt;&lt;P&gt;Finished building: ../source/mtb.c&lt;/P&gt;&lt;P&gt;Finished building: ../source/i2c1.c&lt;/P&gt;&lt;P&gt;Finished building: ../source/clock_config.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finished building: ../source/MKL25Z128xxx4_Project.c&lt;/P&gt;&lt;P&gt;Finished building: ../source/common.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make: stat: CMSIS/system_MKL25Z4.o: Bad file number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finished building: ../source/main.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building file: ../source/pin_mux.c&lt;/P&gt;&lt;P&gt;Building file: ../source/uart.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building file: ../CMSIS/system_MKL25Z4.c&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/pin_mux.d" -MT"source/pin_mux.o" -MT"source/pin_mux.d" -o "source/pin_mux.o" "../source/pin_mux.c"&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/uart.d" -MT"source/uart.o" -MT"source/uart.d" -o "source/uart.o" "../source/uart.c"&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"CMSIS/system_MKL25Z4.d" -MT"CMSIS/system_MKL25Z4.o" -MT"CMSIS/system_MKL25Z4.d" -o "CMSIS/system_MKL25Z4.o" "../CMSIS/system_MKL25Z4.c"&lt;/P&gt;&lt;P&gt;Finished building: ../source/pin_mux.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finished building: ../source/uart.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finished building: ../CMSIS/system_MKL25Z4.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building target: MKL25Z128xxx4_Project.axf&lt;/P&gt;&lt;P&gt;Invoking: MCU Linker&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -nostdlib -Xlinker -Map="MKL25Z128xxx4_Project.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -mcpu=cortex-m0plus -mthumb -T MKL25Z128xxx4_Project_Debug.ld -o "MKL25Z128xxx4_Project.axf" ./startup/startup_mkl25z4.o ./source/MKL25Z128xxx4_Project.o ./source/board.o ./source/clock_config.o ./source/common.o ./source/i2c1.o ./source/main.o ./source/mtb.o ./source/pin_mux.o ./source/uart.o ./CMSIS/system_MKL25Z4.o&lt;/P&gt;&lt;P&gt;Memory region Used Size Region Size %age Used&lt;/P&gt;&lt;P&gt;PROGRAM_FLASH: 8716 B 128 KB 6.65%&lt;/P&gt;&lt;P&gt;./source/common.o:(.bss.val+0x0): multiple definition of `val'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.val+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.cin+0x0): multiple definition of `cin'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.cin+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.adr+0x0): multiple definition of `adr'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.adr+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.reg+0x0): multiple definition of `reg'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.reg+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.i2cerr+0x0): multiple definition of `i2cerr'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.i2cerr+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.val+0x0): multiple definition of `val'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.val+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.fndnb+0x0): multiple definition of `fndnb'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.fndnb+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.fndsa+0x0): multiple definition of `fndsa'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.fndsa+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.slaves+0x0): multiple definition of `slaves'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.slaves+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.time+0x0): multiple definition of `time'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.time+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o: In function `main':&lt;/P&gt;&lt;P&gt;main.c:(.text.main+0x0): multiple definition of `main'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:MKL25Z128xxx4_Project.c:(.text.main+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o: In function `Generic_I2C_Read':&lt;/P&gt;&lt;P&gt;main.c:(.text.Generic_I2C_Read+0x0): multiple definition of `Generic_I2C_Read'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:MKL25Z128xxx4_Project.c:(.text.Generic_I2C_Read+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o: In function `Generic_I2C_Write':&lt;/P&gt;&lt;P&gt;main.c:(.text.Generic_I2C_Write+0x0): multiple definition of `Generic_I2C_Write'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:MKL25Z128xxx4_Project.c:(.text.Generic_I2C_Write+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o: In function `Generic_I2C_FindSlaves':&lt;/P&gt;&lt;P&gt;main.c:(.text.Generic_I2C_FindSlaves+0x0): multiple definition of `Generic_I2C_FindSlaves'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:MKL25Z128xxx4_Project.c:(.text.Generic_I2C_FindSlaves+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o: In function `Generic_I2C_SetAdr':&lt;/P&gt;&lt;P&gt;main.c:(.text.Generic_I2C_SetAdr+0x0): multiple definition of `Generic_I2C_SetAdr'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:MKL25Z128xxx4_Project.c:(.text.Generic_I2C_SetAdr+0x0): first defined here&lt;/P&gt;&lt;P&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;SRAM: 2368 B 16 KB 14.45%&lt;/P&gt;&lt;P&gt;make: *** [MKL25Z128xxx4_Project.axf] Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;15:28:51 Build Finished (took 2s.30ms)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 May 2017 03:54:37 GMT</pubDate>
    <dc:creator>michaelsteffenf</dc:creator>
    <dc:date>2017-05-12T03:54:37Z</dc:date>
    <item>
      <title>Build Error: collect2.exe: error: ld returned 1 exit status</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Build-Error-collect2-exe-error-ld-returned-1-exit-status/m-p/676975#M563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a project FRDM-KL25 and built it in MCUXpresso (just installed).&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Got this error after compiling...Project is attached.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;make: *** [MKL25Z128xxx4_Project.axf] Error 1&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to solve or fix this?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;STRONG style="color: #993300; font-size: 10pt;"&gt;Michael Steffen&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #993300; font-size: 10pt;"&gt;Senior Field Applications Engineer&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #993300; font-size: 10pt;"&gt;Member of the Technical Staff&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #993300; font-size: 10pt;"&gt;NXP Semiconductors &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #993300; font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338756"&gt;SIP.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 20:26:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Build-Error-collect2-exe-error-ld-returned-1-exit-status/m-p/676975#M563</guid>
      <dc:creator>michaelsteffenf</dc:creator>
      <dc:date>2017-05-11T20:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Build Error: collect2.exe: error: ld returned 1 exit status</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Build-Error-collect2-exe-error-ld-returned-1-exit-status/m-p/676976#M564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the full build log (you might need to clean first), or the Problems view. This message generally indicates a problem higher up in the build output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Details of accessing the Build log in the Console view can be found in the MCUXpresso IDE v10.0.0 User Guide, &amp;nbsp;section 14.7 - Appendix : The Console View&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 20:38:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Build-Error-collect2-exe-error-ld-returned-1-exit-status/m-p/676976#M564</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-05-11T20:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Build Error: collect2.exe: error: ld returned 1 exit status</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Build-Error-collect2-exe-error-ld-returned-1-exit-status/m-p/676977#M565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have cleaned and built 20 times.&amp;nbsp; The error is still there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else could be causing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the full Console View:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;15:28:49 **** Build of configuration Debug for project MKL25Z128xxx4_Project ****&lt;/P&gt;&lt;P&gt;make -r -j8 all&lt;/P&gt;&lt;P&gt;Building file: ../startup/startup_mkl25z4.c&lt;/P&gt;&lt;P&gt;Building file: ../source/MKL25Z128xxx4_Project.c&lt;/P&gt;&lt;P&gt;Building file: ../source/board.c&lt;/P&gt;&lt;P&gt;make: stat: source/pin_mux.o: Bad file number&lt;/P&gt;&lt;P&gt;Building file: ../source/clock_config.c&lt;/P&gt;&lt;P&gt;Building file: ../source/common.c&lt;/P&gt;&lt;P&gt;Building file: ../source/i2c1.c&lt;/P&gt;&lt;P&gt;Building file: ../source/mtb.c&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"startup/startup_mkl25z4.d" -MT"startup/startup_mkl25z4.o" -MT"startup/startup_mkl25z4.d" -o "startup/startup_mkl25z4.o" "../startup/startup_mkl25z4.c"&lt;/P&gt;&lt;P&gt;Building file: ../source/main.c&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/board.d" -MT"source/board.o" -MT"source/board.d" -o "source/board.o" "../source/board.c"&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/common.d" -MT"source/common.o" -MT"source/common.d" -o "source/common.o" "../source/common.c"&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/MKL25Z128xxx4_Project.d" -MT"source/MKL25Z128xxx4_Project.o" -MT"source/MKL25Z128xxx4_Project.d" -o "source/MKL25Z128xxx4_Project.o" "../source/MKL25Z128xxx4_Project.c"&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/clock_config.d" -MT"source/clock_config.o" -MT"source/clock_config.d" -o "source/clock_config.o" "../source/clock_config.c"&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/mtb.d" -MT"source/mtb.o" -MT"source/mtb.d" -o "source/mtb.o" "../source/mtb.c"&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/i2c1.d" -MT"source/i2c1.o" -MT"source/i2c1.d" -o "source/i2c1.o" "../source/i2c1.c"&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/main.d" -MT"source/main.o" -MT"source/main.d" -o "source/main.o" "../source/main.c"&lt;/P&gt;&lt;P&gt;Finished building: ../source/board.c&lt;/P&gt;&lt;P&gt;Finished building: ../startup/startup_mkl25z4.c&lt;/P&gt;&lt;P&gt;Finished building: ../source/mtb.c&lt;/P&gt;&lt;P&gt;Finished building: ../source/i2c1.c&lt;/P&gt;&lt;P&gt;Finished building: ../source/clock_config.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finished building: ../source/MKL25Z128xxx4_Project.c&lt;/P&gt;&lt;P&gt;Finished building: ../source/common.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make: stat: CMSIS/system_MKL25Z4.o: Bad file number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finished building: ../source/main.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building file: ../source/pin_mux.c&lt;/P&gt;&lt;P&gt;Building file: ../source/uart.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building file: ../CMSIS/system_MKL25Z4.c&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/pin_mux.d" -MT"source/pin_mux.o" -MT"source/pin_mux.d" -o "source/pin_mux.o" "../source/pin_mux.c"&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"source/uart.d" -MT"source/uart.o" -MT"source/uart.d" -o "source/uart.o" "../source/uart.c"&lt;/P&gt;&lt;P&gt;Invoking: MCU C Compiler&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -DFSL_RTOS_BM -DSDK_OS_BAREMETAL -DCPU_MKL25Z128VFM4_cm0plus -DCPU_MKL25Z128VFM4 -D__REDLIB__ -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\source" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\startup" -I"C:\Users\r80133\Documents\MCUXpressoIDE_10.0.0_344\workspace\MKL25Z128xxx4_Project\CMSIS" -O0 -fno-common -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"CMSIS/system_MKL25Z4.d" -MT"CMSIS/system_MKL25Z4.o" -MT"CMSIS/system_MKL25Z4.d" -o "CMSIS/system_MKL25Z4.o" "../CMSIS/system_MKL25Z4.c"&lt;/P&gt;&lt;P&gt;Finished building: ../source/pin_mux.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finished building: ../source/uart.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finished building: ../CMSIS/system_MKL25Z4.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building target: MKL25Z128xxx4_Project.axf&lt;/P&gt;&lt;P&gt;Invoking: MCU Linker&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -nostdlib -Xlinker -Map="MKL25Z128xxx4_Project.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -mcpu=cortex-m0plus -mthumb -T MKL25Z128xxx4_Project_Debug.ld -o "MKL25Z128xxx4_Project.axf" ./startup/startup_mkl25z4.o ./source/MKL25Z128xxx4_Project.o ./source/board.o ./source/clock_config.o ./source/common.o ./source/i2c1.o ./source/main.o ./source/mtb.o ./source/pin_mux.o ./source/uart.o ./CMSIS/system_MKL25Z4.o&lt;/P&gt;&lt;P&gt;Memory region Used Size Region Size %age Used&lt;/P&gt;&lt;P&gt;PROGRAM_FLASH: 8716 B 128 KB 6.65%&lt;/P&gt;&lt;P&gt;./source/common.o:(.bss.val+0x0): multiple definition of `val'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.val+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.cin+0x0): multiple definition of `cin'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.cin+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.adr+0x0): multiple definition of `adr'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.adr+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.reg+0x0): multiple definition of `reg'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.reg+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.i2cerr+0x0): multiple definition of `i2cerr'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.i2cerr+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.val+0x0): multiple definition of `val'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.val+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.fndnb+0x0): multiple definition of `fndnb'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.fndnb+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.fndsa+0x0): multiple definition of `fndsa'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.fndsa+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.slaves+0x0): multiple definition of `slaves'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.slaves+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o:(.bss.time+0x0): multiple definition of `time'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:(.bss.time+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o: In function `main':&lt;/P&gt;&lt;P&gt;main.c:(.text.main+0x0): multiple definition of `main'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:MKL25Z128xxx4_Project.c:(.text.main+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o: In function `Generic_I2C_Read':&lt;/P&gt;&lt;P&gt;main.c:(.text.Generic_I2C_Read+0x0): multiple definition of `Generic_I2C_Read'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:MKL25Z128xxx4_Project.c:(.text.Generic_I2C_Read+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o: In function `Generic_I2C_Write':&lt;/P&gt;&lt;P&gt;main.c:(.text.Generic_I2C_Write+0x0): multiple definition of `Generic_I2C_Write'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:MKL25Z128xxx4_Project.c:(.text.Generic_I2C_Write+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o: In function `Generic_I2C_FindSlaves':&lt;/P&gt;&lt;P&gt;main.c:(.text.Generic_I2C_FindSlaves+0x0): multiple definition of `Generic_I2C_FindSlaves'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:MKL25Z128xxx4_Project.c:(.text.Generic_I2C_FindSlaves+0x0): first defined here&lt;/P&gt;&lt;P&gt;./source/main.o: In function `Generic_I2C_SetAdr':&lt;/P&gt;&lt;P&gt;main.c:(.text.Generic_I2C_SetAdr+0x0): multiple definition of `Generic_I2C_SetAdr'&lt;/P&gt;&lt;P&gt;./source/MKL25Z128xxx4_Project.o:MKL25Z128xxx4_Project.c:(.text.Generic_I2C_SetAdr+0x0): first defined here&lt;/P&gt;&lt;P&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;SRAM: 2368 B 16 KB 14.45%&lt;/P&gt;&lt;P&gt;make: *** [MKL25Z128xxx4_Project.axf] Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;15:28:51 Build Finished (took 2s.30ms)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 03:54:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Build-Error-collect2-exe-error-ld-returned-1-exit-status/m-p/676977#M565</guid>
      <dc:creator>michaelsteffenf</dc:creator>
      <dc:date>2017-05-12T03:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Build Error: collect2.exe: error: ld returned 1 exit status</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Build-Error-collect2-exe-error-ld-returned-1-exit-status/m-p/676978#M566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;can you share your project? The error is that you have functions defined/implemented twice.&lt;/P&gt;&lt;P&gt;I think you are including a .c file instead a header file.&lt;/P&gt;&lt;P&gt;Search for all&lt;/P&gt;&lt;P&gt;#include&lt;/P&gt;&lt;P&gt;and check if they are including a header file and not a .c file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 05:19:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Build-Error-collect2-exe-error-ld-returned-1-exit-status/m-p/676978#M566</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-05-12T05:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Build Error: collect2.exe: error: ld returned 1 exit status</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Build-Error-collect2-exe-error-ld-returned-1-exit-status/m-p/676979#M567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;You have a main.c in your project, you also have a MKL25Z128xxx4_Project.c. I guess they have same functions. So maybe you should merge two file and recompile.&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pan Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 06:12:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Build-Error-collect2-exe-error-ld-returned-1-exit-status/m-p/676979#M567</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2017-05-12T06:12:19Z</dc:date>
    </item>
  </channel>
</rss>

