- Posts: 45
Error building devo7E on Windows
- quique65
-
Topic Author
- Offline
Less
More
18 Jan 2013 18:44 #5157
by quique65
Error building devo7E on Windows was created by quique65
Hello,
can somebody help me with this error building on Windows?. Thank you.
commit: efc42d6
make TARGET=devo7e TYPE=prd
+ Building 'devo7e.elf'
d:/mingw/stm32/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/
ld.exe: devo7e.elf section `.data' will not fit in region `rom'
d:/mingw/stm32/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/
ld.exe: region `rom' overflowed by 288 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [devo7e.elf] Error 1
can somebody help me with this error building on Windows?. Thank you.
commit: efc42d6
make TARGET=devo7e TYPE=prd
+ Building 'devo7e.elf'
d:/mingw/stm32/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/
ld.exe: devo7e.elf section `.data' will not fit in region `rom'
d:/mingw/stm32/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/
ld.exe: region `rom' overflowed by 288 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [devo7e.elf] Error 1
- ColdFire
-
- Offline
Less
More
- Posts: 45
18 Jan 2013 19:46 #5159
by ColdFire
Replied by ColdFire on topic Error building devo7E on Windows
Is DEVO7E officially supported by Deviation?
To me it seems like the code size is larger than the Flash ROM
To me it seems like the code size is larger than the Flash ROM
- ColdFire
-
- Offline
Less
More
- Posts: 45
18 Jan 2013 19:48 #5160
by ColdFire
Replied by ColdFire on topic Error building devo7E on Windows
never mind. I just saw PB is working on DEVO7E
- PhracturedBlue
-
- Offline
Less
More
- Posts: 4403
18 Jan 2013 20:10 #5161
by PhracturedBlue
Replied by PhracturedBlue on topic Error building devo7E on Windows
what is your gcc version? The devo7e build is very close to the memory limit, so different versions of gcc may cause you to go over the edge.
you can try doing:
make TARGET=devo7e clean
make TARGET=devo7e TYPE=dev
the dev build is actually smaller, as it disables the 'standard' mixer
you no longer need 'TYPE=prd' it is now the default.
you can try doing:
make TARGET=devo7e clean
make TARGET=devo7e TYPE=dev
the dev build is actually smaller, as it disables the 'standard' mixer
you no longer need 'TYPE=prd' it is now the default.
- quique65
-
Topic Author
- Offline
Less
More
- Posts: 45
18 Jan 2013 21:50 #5164
by quique65
Replied by quique65 on topic Error building devo7E on Windows
Hello,
gcc 4.6.2. Using make TARGET=devo7e same message (288 bytes). If I make new clean and TYPE=dev more overflow:
+ Building 'devo7e.elf'
+ Optimizing placement and re-linking
c:/mingw/stm32/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/
ld.exe: devo7e.elf section `.text' will not fit in region `rom'
c:/mingw/stm32/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/
ld.exe: region `rom' overflowed by 3152 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [devo7e.bin] Error 1
Regards,
Enrique.
gcc 4.6.2. Using make TARGET=devo7e same message (288 bytes). If I make new clean and TYPE=dev more overflow:
+ Building 'devo7e.elf'
+ Optimizing placement and re-linking
c:/mingw/stm32/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/
ld.exe: devo7e.elf section `.text' will not fit in region `rom'
c:/mingw/stm32/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/
ld.exe: region `rom' overflowed by 3152 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [devo7e.bin] Error 1
Regards,
Enrique.
- PhracturedBlue
-
- Offline
Less
More
- Posts: 4403
18 Jan 2013 22:26 #5166
by PhracturedBlue
Replied by PhracturedBlue on topic Error building devo7E on Windows
Actually your dev build is better. It got to the 'optimizing' step. the optimizer doesn't work on windows (I have a patch, but you'll need to wait until I can release it).
- PhracturedBlue
-
- Offline
Less
More
- Posts: 4403
19 Jan 2013 05:28 #5171
by PhracturedBlue
Replied by PhracturedBlue on topic Error building devo7E on Windows
both 'dev' and normal build should now both work fine in Windows
- quique65
-
Topic Author
- Offline
Less
More
- Posts: 45
19 Jan 2013 08:47 #5177
by quique65
Replied by quique65 on topic Error building devo7E on Windows
Thank you. I will check it when you push your repo.
Regards,
Enrique.
Regards,
Enrique.
- PhracturedBlue
-
- Offline
Less
More
- Posts: 4403
19 Jan 2013 12:55 #5189
by PhracturedBlue
Replied by PhracturedBlue on topic Error building devo7E on Windows
oops. done
- quique65
-
Topic Author
- Offline
Less
More
- Posts: 45
20 Jan 2013 11:44 #5240
by quique65
Replied by quique65 on topic Error building devo7E on Windows
Hello,
now the buid is ok but when I copy the protocol modules the TX doesn't boot. I'm copying the folder from /src/objs/devo7e/protocol and the mod files have the same time stamp than the dfu file. If I remove the protocol folder the TX boots.
now the buid is ok but when I copy the protocol modules the TX doesn't boot. I'm copying the folder from /src/objs/devo7e/protocol and the mod files have the same time stamp than the dfu file. If I remove the protocol folder the TX boots.
- PhracturedBlue
-
- Offline
Less
More
- Posts: 4403
20 Jan 2013 13:47 #5244
by PhracturedBlue
Replied by PhracturedBlue on topic Error building devo7E on Windows
Are you sure you loaded the same dfu onto your tx?
if you want me to debug, you should have an errors.txt in the root of your tx.
check to see if it has a stack dump in it (it should). Then send me that, the devo7e.elf and all of the protocol.elf files (in the objs/devo7e directory)
if you want me to debug, you should have an errors.txt in the root of your tx.
check to see if it has a stack dump in it (it should). Then send me that, the devo7e.elf and all of the protocol.elf files (in the objs/devo7e directory)
- quique65
-
Topic Author
- Offline
Less
More
- Posts: 45
20 Jan 2013 16:22 - 20 Jan 2013 16:24 #5256
by quique65
Replied by quique65 on topic Error building devo7E on Windows
Hello. I've attached one zip with the files. Tested with you last build. Thanks again for you support.
Regards,
Enrique.
Regards,
Enrique.
Last edit: 20 Jan 2013 16:24 by quique65.
- PhracturedBlue
-
- Offline
Less
More
- Posts: 4403
20 Jan 2013 16:34 - 20 Jan 2013 16:38 #5259
by PhracturedBlue
Replied by PhracturedBlue on topic Error building devo7E on Windows
yep, your build is corrupt.
The module support is very picky.
For some reason, your build uses memset inside the module. This is likely a compiler optimization and is causing the issues.
To debug, I need to be able to rebuild using your version of gcc.
Are you using the VM or windows build env?
If so which?
If not, what does 'arm-none-eabi-gcc --version' say?
What platform are you on (Windows, Linux (which variant), Mac)?
How did you get the build environment?
Actually the memset is intentional, butthe compiler is calling it in the wrong way. All the rest of the above applies though
The module support is very picky.
For some reason, your build uses memset inside the module. This is likely a compiler optimization and is causing the issues.
To debug, I need to be able to rebuild using your version of gcc.
Are you using the VM or windows build env?
If so which?
If not, what does 'arm-none-eabi-gcc --version' say?
What platform are you on (Windows, Linux (which variant), Mac)?
How did you get the build environment?
Actually the memset is intentional, butthe compiler is calling it in the wrong way. All the rest of the above applies though
Last edit: 20 Jan 2013 16:38 by PhracturedBlue.
- quique65
-
Topic Author
- Offline
Less
More
- Posts: 45
20 Jan 2013 16:47 #5261
by quique65
Replied by quique65 on topic Error building devo7E on Windows
Hi,
I'm on Windows 7 (32 bits) and I've installed:
mingw-get-inst-20120426
yagarto-bu-2.22_gcc-4.7.2-c-c++_nl-1.20.0_gdb-7.5_eabi_20121013
python-2.7.3
fltk-1.3.0-source.tar
pa_stable_v19_20111121
libopencm3-libopencm3-83d62e9
User@User-T60 ~/src/deviation/src
$ arm-none-eabi-gcc --version
arm-none-eabi-gcc.exe (GCC) 4.7.2
Before the Devo7E release I'm building your commits and suvsuv's ones ok. If I use the suvsuv version with your changes mixed I have the same problem but I think that the suvsuv make scrpit has a problem creating the mod files.
Regards,
Enrique.
I'm on Windows 7 (32 bits) and I've installed:
mingw-get-inst-20120426
yagarto-bu-2.22_gcc-4.7.2-c-c++_nl-1.20.0_gdb-7.5_eabi_20121013
python-2.7.3
fltk-1.3.0-source.tar
pa_stable_v19_20111121
libopencm3-libopencm3-83d62e9
User@User-T60 ~/src/deviation/src
$ arm-none-eabi-gcc --version
arm-none-eabi-gcc.exe (GCC) 4.7.2
Before the Devo7E release I'm building your commits and suvsuv's ones ok. If I use the suvsuv version with your changes mixed I have the same problem but I think that the suvsuv make scrpit has a problem creating the mod files.
Regards,
Enrique.
- PhracturedBlue
-
- Offline
Less
More
- Posts: 4403
21 Jan 2013 03:42 #5293
by PhracturedBlue
Replied by PhracturedBlue on topic Error building devo7E on Windows
Can you try to build it again using the latest version?
I've done 3 things:
1) I duplicated the issue, and changed the code so it builds properly with YAGARTO
2) I added a checker to verifythe module build is actually OK
3) I added a dialog to the Tx to tell you if the module is not present or built against a different dfu
I've done 3 things:
1) I duplicated the issue, and changed the code so it builds properly with YAGARTO
2) I added a checker to verifythe module build is actually OK
3) I added a dialog to the Tx to tell you if the module is not present or built against a different dfu
- quique65
-
Topic Author
- Offline
Less
More
- Posts: 45
21 Jan 2013 19:06 #5335
by quique65
Replied by quique65 on topic Error building devo7E on Windows
Hello,
the build on Windows is working properly. Thank you very much.
Regards,
Enrique.
the build on Windows is working properly. Thank you very much.
Regards,
Enrique.
Time to create page: 0.152 seconds
-
Home
-
Forum
-
News, Announcements and Feedback
-
Feedback & Questions
- Error building devo7E on Windows