

Code: Select all
In file included from include/libbb.h:13,
from include/busybox.h:8,
from applets/applets.c:9:
include/platform.h:164:11: fatal error: byteswap.h: No such file or directory
164 | # include <byteswap.h>
| ^~~~~~~~~
Code: Select all
!!! WARNING - Cannot auto-configure CHOST sgpp-lite-arm-eabi-bin;
!!! You should edit /usr/sgpp-lite-arm-eabi-bin/etc/portage/make.conf /usr/sgpp-lite-arm-eabi-bin/etc/portage/profile/make.defaults /usr/sgpp-lite-arm-eabi-bin/etc/portage/profile/use.force
!!! by hand to complete your configuration.
!!! No ARCH is known for this target.
!!! No LIBC is known for this target.
!!! No KERNEL is known for this target.
* Log: /var/log/portage/cross-sgpp-lite-arm-eabi-bin-binutils.log
* Emerging cross-binutils ...
* error: binutils failed :(
It didnt. You asked it to build buildbox by asking it to emerge system. The initial crossdev command gave you gcc newlib and binutils, what else do you need to build firmware?Tefrem34 wrote:I have no idea what the "none" means. It is just one of the dependencies that I need for building arm firmware.
I also do not know why it would build busybox. For some reason, I think that it is not pulling in the package that I need "sgpp-lite-arm-eabi-bin". I wonder if that is what I need to use instead of "arm-none-eabi-gcc".
Thats because you put in nonsense. sgpp-lite-arm-eabi-bin is a specific prebuilt toolchain (a different version of what we just built with crossdev), the s from sgpp refers to it being done by the sorcery group, the g++-lite refers to it being the gcc toolchain (but lite somehow) the bin just refers to it being a prebuilt binaryTefrem34 wrote:I just tried "crossdev --stable -t sgpp-lite-arm-eabi-bin" and got
I do not know what configs that it would need. I have yet to have gained that level of knowledge.
Thanks
I used the command that the wiki said to use. What should I use that would be correct?You asked it to build buildbox by asking it to emerge system

crossdev -t arm-none-eabi
Code: Select all
* crossdev version: 20190712
* Host Portage ARCH: amd64
* Target Portage ARCH: arm
* Target System: arm-none-eabi
* Stage: 3 (C compiler & libc)
* USE=multilib: yes
* ABIs: default
* binutils: binutils-[latest]
* gcc: gcc-[latest]
* libc: newlib-[latest]
* CROSSDEV_OVERLAY: /usr/crossdev-overlay
* PORT_LOGDIR: /var/log/portage
* PORTAGE_CONFIGROOT: /
* Portage flags:
* leaving sys-devel/binutils in /usr/crossdev-overlay
* leaving sys-devel/gcc in /usr/crossdev-overlay
* leaving sys-libs/newlib in /usr/crossdev-overlay
* leaving sys-devel/gdb in /usr/crossdev-overlay
* enabling thin-manifests due to /var/lib/layman/cynede
* Log: /var/log/portage/cross-arm-none-eabi-binutils.log
* Emerging cross-binutils ... [ ok ]
* Log: /var/log/portage/cross-arm-none-eabi-gcc-stage1.log
* Emerging cross-gcc-stage1 ... [ ok ]
* Log: /var/log/portage/cross-arm-none-eabi-newlib.log
* Emerging cross-newlib ...Code: Select all
|
| /opt/sgpp-lite-arm-eabi-bin-2014.05.28/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/thumb2/libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
| sbrkr.c:(.text+0x12): undefined reference to `_sbrk'
| collect2: error: ld returned 1 exit status
|
make[1]: *** [tmk_core/rules.mk:300: .build/hadron_ver3_TellNoLies.elf] Error 1
It using the wrong gcc has nothing to do with the crossdev toolchain. Either uninstall the old spgpp gcc or take it out of your PATH or adjust your path so that the new one is in front.Tefrem34 wrote: It looks like it all built properly, is there a command that I am missing? When I try to build the firmware I am still getting the same error.
It is complaining aboutIf you look at the location string, you can see that it is still using the arm-none-eabi 4.8.3 . If I did it properly, wouldn't it say the new version?Code: Select all
| | /opt/sgpp-lite-arm-eabi-bin-2014.05.28/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/thumb2/libc.a(lib_a-sbrkr.o): In function `_sbrk_r': | sbrkr.c:(.text+0x12): undefined reference to `_sbrk' | collect2: error: ld returned 1 exit status | make[1]: *** [tmk_core/rules.mk:300: .build/hadron_ver3_TellNoLies.elf] Error 1
Thank you for the link. I will see if that will work.
Code: Select all
gcc-config --list-profiles
[1] arm-none-eabi-9.1.0 *
[2] arm-unknown-linux-gnueabi-7.3.0
[3] arm-unknown-linux-gnueabi-8.2.0
[4] arm-unknown-linux-gnueabi-8.3.0 *
[5] arm-unknown-linux-gnueabi-9.1.0
[6] avr-4.9.4
[7] avr-7.3.0 *
[8] avr-9.1.0
[9] x86_64-pc-linux-gnu-7.3.0
[10] x86_64-pc-linux-gnu-8.2.0
[11] x86_64-pc-linux-gnu-8.3.0 *