Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maccasoft opened this issue Mar 14, 2017 · 1 comment
Open

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

maccasoft opened this issue Mar 14, 2017 · 1 comment

Comments

@maccasoft
Copy link

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!
@jsdenson
Copy link
Collaborator

Thanks for detailed bug info. Will try to reproduce and fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants