Hi. I'm Fera, I'm trying to compile the code. and I get the following error
Maybe it's something silly. But I can't figure it out.
could someone help me please?
Thanks
Compilation problems , PLEASE HELP
-
- Posts: 5
- Joined: Sat Jan 07, 2023 3:24 pm
- Location: Argentina
- Github Username: Fera31
- Contact:
Compilation problems , PLEASE HELP
You do not have the required permissions to view the files attached to this post.
- AndreyB
- Site Admin
- Posts: 14727
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Compilation problems , PLEASE HELP
First is less obvious - first one says "you have java runtime environment while java development kit is required"
But the second one you kind of you should not be asking to be honest, it literally says "you have compiler version 10 while we require compiler version 11
But the second one you kind of you should not be asking to be honest, it literally says "you have compiler version 10 while we require compiler version 11
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- Posts: 5
- Joined: Sat Jan 07, 2023 3:24 pm
- Location: Argentina
- Github Username: Fera31
- Contact:
Re: Compilation problems , PLEASE HELP
Now I get the same error in both
I already tried with
gcc 11.3
gcc 12.2
gcc 12.3
I already tried with
gcc 11.3
gcc 12.2
gcc 12.3
Code: Select all
lto-wrapper.exe: warning: Options to '-Xassembler' do not match: -alms=build/lst
/gcc_version_check.lst, -alms=build/lst/crt1.lst, dropping all '-Xassembler' and
'-Wa' options.
lto1.exe: fatal error: bytecode stream in file 'build/obj/gcc_version_check.o' g
enerated with LTO version 11.3 instead of the expected 12.0
compilation terminated.
lto-wrapper.exe: fatal error: C:\Program Files (x86)\Arm GNU Toolchain arm-none-
eabi\12.3 rel1\bin\arm-none-eabi-gcc.exe returned 1 exit status
compilation terminated.
c:/program files (x86)/arm gnu toolchain arm-none-eabi/12.3 rel1/bin/../lib/gcc/
arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: error: lto-wrapper fa
iled
collect2.exe: error: ld returned 1 exit status
make: *** [ChibiOS/os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:217: build/rusefi.elf] Error 1
- AndreyB
- Site Admin
- Posts: 14727
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Compilation problems , PLEASE HELP
Are you doing "make clean" between changing compiler? Please stay only with 11.3
There is also a https://github.com/rusefi/rusefi/issues/5861 issue you would need to use short Windows names for now
There is also a https://github.com/rusefi/rusefi/issues/5861 issue you would need to use short Windows names for now
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- Posts: 5
- Joined: Sat Jan 07, 2023 3:24 pm
- Location: Argentina
- Github Username: Fera31
- Contact:
Re: Compilation problems , PLEASE HELP
Yes
It's already compiled.AndreyB wrote: ↑Sun Sep 22, 2024 2:10 amThere is also a https://github.com/rusefi/rusefi/issues/5861 issue you would need to use short Windows names for now
eclipse ide
visual studio code
and cygwin
works on all
Code: Select all
Linking build/rusefi.elf
lto-wrapper.exe: warning: Options to '-Xassembler' do not match: -alms=build/lst/gcc_version_check.lst, -alms=build/lst/crt1.lst, dropping all '-Xassembler' and '-Wa' options.
make[1]: [C:\Users\Code\AppData\Local\Temp\ccQuwdM3.mk:6: C:\Users\Code\AppData\Local\Temp\ccsTIWyx.ltrans1.ltrans.o] Error 1 (ignored)
make[1]: [C:\Users\Code\AppData\Local\Temp\ccQuwdM3.mk:3: C:\Users\Code\AppData\Local\Temp\ccsTIWyx.ltrans0.ltrans.o] Error 1 (ignored)
make[1]: [C:\Users\Code\AppData\Local\Temp\ccQuwdM3.mk:24: C:\Users\Code\AppData\Local\Temp\ccsTIWyx.ltrans7.ltrans.o] Error 1 (ignored)
make[1]: [C:\Users\Code\AppData\Local\Temp\ccQuwdM3.mk:30: C:\Users\Code\AppData\Local\Temp\ccsTIWyx.ltrans9.ltrans.o] Error 1 (ignored)
make[1]: [C:\Users\Code\AppData\Local\Temp\ccQuwdM3.mk:21: C:\Users\Code\AppData\Local\Temp\ccsTIWyx.ltrans6.ltrans.o] Error 1 (ignored)
make[1]: [C:\Users\Code\AppData\Local\Temp\ccQuwdM3.mk:33: C:\Users\Code\AppData\Local\Temp\ccsTIWyx.ltrans10.ltrans.o] Error 1 (ignored)
make[1]: [C:\Users\Code\AppData\Local\Temp\ccQuwdM3.mk:9: C:\Users\Code\AppData\Local\Temp\ccsTIWyx.ltrans2.ltrans.o] Error 1 (ignored)
make[1]: [C:\Users\Code\AppData\Local\Temp\ccQuwdM3.mk:12: C:\Users\Code\AppData\Local\Temp\ccsTIWyx.ltrans3.ltrans.o] Error 1 (ignored)
make[1]: [C:\Users\Code\AppData\Local\Temp\ccQuwdM3.mk:36: C:\Users\Code\AppData\Local\Temp\ccsTIWyx.ltrans11.ltrans.o] Error 1 (ignored)
make[1]: [C:\Users\Code\AppData\Local\Temp\ccQuwdM3.mk:15: C:\Users\Code\AppData\Local\Temp\ccsTIWyx.ltrans4.ltrans.o] Error 1 (ignored)
make[1]: [C:\Users\Code\AppData\Local\Temp\ccQuwdM3.mk:27: C:\Users\Code\AppData\Local\Temp\ccsTIWyx.ltrans8.ltrans.o] Error 1 (ignored)
make[1]: [C:\Users\Code\AppData\Local\Temp\ccQuwdM3.mk:18: C:\Users\Code\AppData\Local\Temp\ccsTIWyx.ltrans5.ltrans.o] Error 1 (ignored)
make[1]: [C:\Users\Code\AppData\Local\Temp\ccQuwdM3.mk:39: C:\Users\Code\AppData\Local\Temp\ccsTIWyx.ltrans12.ltrans.o] Error 1 (ignored)
Creating build/rusefi.hex
Creating build/rusefi.bin
Creating build/rusefi.dmp
text data bss dec hex filename
563074 1048 189616 753738 b804a build/rusefi.elf
Creating build/rusefi.list
Done
bss Total size: 118006
ram4 Total size: 0
text Total size: 446124
data Total size: 1035
rodata Total size: 114083
20 .ram4 0000e8c0 10000000 08089ba4 000b0000 2**3
PS C:\cygwin64\home\Code\rusefi\firmware>
now I'll try to figure out how to switch boards
THANKS
- AndreyB
- Site Admin
- Posts: 14727
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Compilation problems , PLEASE HELP
I have same errors, I do not understand those. I assume these are not a problem, but then again - I mostly use binaries from Linux.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- Posts: 5
- Joined: Sat Jan 07, 2023 3:24 pm
- Location: Argentina
- Github Username: Fera31
- Contact:
Re: Compilation problems , PLEASE HELP
I can only compile f407 discovery
i try with proteus and microrusefi
but...
i change in rusefi.mk
I also tried deleting the line
meta-info-mre_f4.env
i try to compile frankenso_na6
to see if it compiled
i just change
because I noticed that the file
meta-info.env
has the same name as f407-discovery
and It compiled perfectly
i try with proteus and microrusefi
Code: Select all
found ./config/boards/microrusefi/connectors/generated_ts_name_by_pin.cpp
PROJECT_BOARD: microrusefi
BOARD_DIR: ././config/boards/microrusefi
PROJECT_CPU: ARCH_STM32F4
SHORT_BOARD_NAME: mre_f4
CPU_HWLAYER: ports/stm32/stm32f4
CONFDIR: ./hw_layer/ports/stm32/stm32f4/cfg
LDSCRIPT: ./hw_layer/ports/stm32/stm32f4/STM32F4.ld
Code: Select all
collect2.exe:
error: ld returned 1 exit status make: *** [ChibiOS/os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:217:
build/rusefi.elf] Error 1 PS C:\cygwin64\home\Code\rusefi\firmware>
Code: Select all
PROJECT_BOARD = microrusefi
-include $(BOARD_DIR)/meta-info-mre_f4.env
Code: Select all
"USE_OPENBLT=yes".
i try to compile frankenso_na6
to see if it compiled
i just change
Code: Select all
PROJECT_BOARD = frankenso_na6
meta-info.env
has the same name as f407-discovery
and It compiled perfectly
- AndreyB
- Site Admin
- Posts: 14727
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Compilation problems , PLEASE HELP
This cojld be broken on windows/cygwin
See https://github.com/rusefi/rusefi/issues/6948 for suggested workarounds
See https://github.com/rusefi/rusefi/issues/6948 for suggested workarounds
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- Posts: 5
- Joined: Sat Jan 07, 2023 3:24 pm
- Location: Argentina
- Github Username: Fera31
- Contact:
Re: Compilation problems , PLEASE HELP
Code: Select all
Compiling gcc_version_check.c
gcc_version_check.c:11:9: note: '#pragma message: GCC is 10.3.1'
11 | #pragma message("GCC is " STR(__GNUC__)"."STR(__GNUC_MINOR__)"."STR(__GNUC_PATCHLEVEL__))
| ^~~~~~~
gcc_version_check.c:15:3: error: #error "GCC compiler >= 11.3.1 required"
15 | #error "GCC compiler >= 11.3.1 required"
| ^~~~~
make: *** [ChibiOS/os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:190: build/obj/gcc_version_check.o] Error 1
gcc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
fera@DESKTOP-N9GF07B:/mnt/c/cygwin64/home/Code/rusefi/firmware$
I am completely lost

I will try to install everything again
- AndreyB
- Site Admin
- Posts: 14727
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Compilation problems , PLEASE HELP
arm-none-eabi-gcc --version
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute