Skip to content

Build issue on program start and when changing memory model #280

@maccasoft

Description

@maccasoft

When changing memory model, the first build always overwrites the previous model output.

How to reproduce:

  1. Start SimpleIDE with the Welcome project.
  2. Hit build, the target Welcome.elf file is saved in the same directory as the project file
SimpleIDE Version 1.1.1
/home/marco/SimpleIDE/Learn/Simple Libraries/
/home/marco/SimpleIDE/ Updated on: 2017-03-13

propeller-elf-gcc -v GCC 4.6.1 (propellergcc-alpha_v1_9_0_)
propeller-elf-gcc -I . -L . -I /home/marco/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools -L /home/marco/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools/cmm/ -I /home/marco/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext -L /home/marco/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext/cmm/ -I /home/marco/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c -L /home/marco/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c/cmm/ -o Welcome.elf -Os -mcmm -m32bit-doubles -fno-exceptions -std=c99 Welcome.c -lm -lsimpletools -lsimpletext -lsimplei2c -lm -lsimpletools -lsimpletext -lm -lsimpletools -lm
propeller-load -s Welcome.elf
propeller-elf-objdump -h Welcome.elf
Done. Build Succeeded!
  1. Hit build a second time, now the target Welcome.elf is stored in the cmm subfolder as expected
SimpleIDE Version 1.1.1
/home/marco/SimpleIDE/Learn/Simple Libraries/
/home/marco/SimpleIDE/ Updated on: 2017-03-13

propeller-elf-gcc -v GCC 4.6.1 (propellergcc-alpha_v1_9_0_)
propeller-elf-gcc -I . -L . -I /home/marco/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools -L /home/marco/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools/cmm/ -I /home/marco/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext -L /home/marco/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext/cmm/ -I /home/marco/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c -L /home/marco/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c/cmm/ -o cmm/Welcome.elf -Os -mcmm -m32bit-doubles -fno-exceptions -std=c99 Welcome.c -lm -lsimpletools -lsimpletext -lsimplei2c -lm -lsimpletools -lsimpletext -lm -lsimpletools -lm
propeller-load -s cmm/Welcome.elf
propeller-elf-objdump -h cmm/Welcome.elf
Done. Build Succeeded!
  1. Change memory model to lmm and hit build, the cmm target is overwritten
SimpleIDE Version 1.1.1
/home/marco/SimpleIDE/Learn/Simple Libraries/
/home/marco/SimpleIDE/ Updated on: 2017-03-13

propeller-elf-gcc -v GCC 4.6.1 (propellergcc-alpha_v1_9_0_)
propeller-elf-gcc -I . -L . -I /home/marco/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools -L /home/marco/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools/lmm/ -I /home/marco/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext -L /home/marco/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext/lmm/ -I /home/marco/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c -L /home/marco/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c/lmm/ -o cmm/Welcome.elf -Os -mlmm -m32bit-doubles -fno-exceptions -std=c99 Welcome.c -lm -lsimpletools -lsimpletext -lsimplei2c -lm -lsimpletools -lsimpletext -lm -lsimpletools -lm
propeller-load -s cmm/Welcome.elf
propeller-elf-objdump -h cmm/Welcome.elf
Done. Build Succeeded!
  1. Hit build again, the target is now saved in the lmm subfolder
SimpleIDE Version 1.1.1
/home/marco/SimpleIDE/Learn/Simple Libraries/
/home/marco/SimpleIDE/ Updated on: 2017-03-13

propeller-elf-gcc -v GCC 4.6.1 (propellergcc-alpha_v1_9_0_)
propeller-elf-gcc -I . -L . -I /home/marco/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools -L /home/marco/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools/lmm/ -I /home/marco/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext -L /home/marco/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext/lmm/ -I /home/marco/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c -L /home/marco/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c/lmm/ -o lmm/Welcome.elf -Os -mlmm -m32bit-doubles -fno-exceptions -std=c99 Welcome.c -lm -lsimpletools -lsimpletext -lsimplei2c -lm -lsimpletools -lsimpletext -lm -lsimpletools -lm
propeller-load -s lmm/Welcome.elf
propeller-elf-objdump -h lmm/Welcome.elf
Done. Build Succeeded!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions