multiple definition of `_impure_ptr'

Sysprogs forums Forums VisualGDB multiple definition of `_impure_ptr'

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9143
    samf48
    Participant

    Hello all, I am trying to build an application that I had previously built for a regular x86 PC platform using an Atmel At91sam7s-ek development board.  My issue is that it keeps coming up with a “multiple definition of ‘_impure_ptr'” error in the output.  I know I’ve set everything up right because I was able to build and deploy the blinking LED just fine.  That is what I am using as the basis for this project.  I am adding my source files and .h files one by one until I have a fully running application on the board.  Can anyone point me in the right direction for what I can do to understand this error? My output log is posted below.

    Thank you!

     

    1>------ Rebuild All started: Project: EmbeddedProject6, Configuration: Debug Win32 ------
    1> VisualGDB: Run "cmd.exe /c "C:\SysGCC\arm-eabi\bin\make.exe" CONFIG=Debug clean" in directory "C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6" on local computer
    1> cmd /C del /S /Q Debug
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\aic.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\aic.o
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\analysis.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\analysis.o
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\bitrate.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\bitrate.o
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\board_cstartup.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\board_cstartup.o
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\board_lowlevel.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\board_lowlevel.o
    1> The process cannot access the file because it is being used by another process.
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\board_memories.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\board_memories.o
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\dbgu.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\dbgu.o
    1> C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\EmbeddedProject6.log
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\GettingStarted.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\GettingStarted.o
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\led.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\led.o
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\main.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\main.o
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\pio.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\pio.o
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\pio_it.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\pio_it.o
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\pit.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\pit.o
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\stdio.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\stdio.o
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\tc.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\tc.o
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\window.dep
    1> Deleted file - C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\Debug\window.o
    1> VisualGDB: Run "cmd.exe /c "C:\SysGCC\arm-eabi\bin\make.exe" CONFIG=Debug" in directory "C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6" on local computer
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -D__ASSEMBLY__ -fno-exceptions -DDEBUG=1 -Dat91sam7s256 -Dsram -c C:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek/board_cstartup.S -o Debug/board_cstartup.o -MD -MF Debug/board_cstartup.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c C:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek/board_lowlevel.c -o Debug/board_lowlevel.o -MD -MF Debug/board_lowlevel.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c C:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek/board_memories.c -o Debug/board_memories.o -MD -MF Debug/board_memories.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c C:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals/aic/aic.c -o Debug/aic.o -MD -MF Debug/aic.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c C:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals/dbgu/dbgu.c -o Debug/dbgu.o -MD -MF Debug/dbgu.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c C:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals/pio/pio.c -o Debug/pio.o -MD -MF Debug/pio.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c C:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals/pio/pio_it.c -o Debug/pio_it.o -MD -MF Debug/pio_it.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c C:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals/pit/pit.c -o Debug/pit.o -MD -MF Debug/pit.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c C:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals/tc/tc.c -o Debug/tc.o -MD -MF Debug/tc.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c C:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/utility/led.c -o Debug/led.o -MD -MF Debug/led.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c C:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/utility/stdio.c -o Debug/stdio.o -MD -MF Debug/stdio.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c analysis.c -o Debug/analysis.o -MD -MF Debug/analysis.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c bitrate.c -o Debug/bitrate.o -MD -MF Debug/bitrate.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c GettingStarted.c -o Debug/GettingStarted.o -MD -MF Debug/GettingStarted.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c main.c -o Debug/main.o -MD -MF Debug/main.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/peripherals -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/components -IC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib -DDEBUG=1 -Dat91sam7s256 -Dsram -c window.c -o Debug/window.o -MD -MF Debug/window.dep
    1> C:\SysGCC\arm-eabi/bin/arm-eabi-g++.exe -o Debug/EmbeddedProject6.elf -Wl,-gc-sections -nostartfiles -TC:\Users\samf48\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.at91sam7s/at91lib/boards/at91sam7s-ek/at91sam7s256/sram.lds -Wl,--start-group Debug/board_cstartup.o Debug/board_lowlevel.o Debug/board_memories.o Debug/aic.o Debug/dbgu.o Debug/pio.o Debug/pio_it.o Debug/pit.o Debug/tc.o Debug/led.o Debug/stdio.o Debug/analysis.o Debug/bitrate.o Debug/GettingStarted.o Debug/main.o Debug/window.o -lcompactcpp -Wl,--end-group
    1> c:/sysgcc/arm-eabi/bin/../lib/gcc/arm-eabi/5.2.0/../../../../arm-eabi/lib\libc.a(lib_a-impure.o):(.data+0x0): multiple definition of '_impure_ptr'
    1> Debug/stdio.o:(.data+0x428): first defined here
    1>collect2.exe : error : ld returned 1 exit status
    1> make: *** [Debug/EmbeddedProject6.elf] Error 1
    1> -------------------------------------------------------------
    1> Command exited with code 2
    1> Executable: cmd.exe
    1> Arguments: /c "C:\SysGCC\arm-eabi\bin\make.exe" CONFIG=Debug
    1> Directory: C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6
    1>VisualGDB : error : Command-line action failed
    1>EXEC : error : Build has failed. See the Output window for more details.
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command ""C:\Program Files (x86)\Sysprogs\VisualGDB\\VisualGDB.exe" /rebuild "C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6\EmbeddedProject6.vcxproj" "/solution:C:\Users\samf48\Documents\Projects\MMM\CompressionARM\CompressionARM2\EmbeddedProject6\EmbeddedProject6.sln" "/config:Debug" "/platform:Win32"" exited with code 1.
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
    • This topic was modified 8 years, 2 months ago by samf48.
    #9145
    samf48
    Participant

    Just in case anyone is curious, what I did to fix this was comment out these two lines in stdio.c:

    // Required for proper compilation.
    struct _reent r = {0, (FILE *) 0, (FILE *) 1, (FILE *) 0};
    struct _reent *_impure_ptr = &r;

     

     

    #9148
    support
    Keymaster

    Hi,

    Thanks for sharing this. Looks like the Atmel libraries were designed for an older version of the toolchain that did not define _impure_ptr properly. Commenting it out should indeed resolve the problem.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.