Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 575744

Summary: sys-devel/crossdev: add support for xtensa-lx106-elf target (ESP8266)
Product: Gentoo Linux Reporter: Vadim A. Misbakh-Soloviov (mva) <mva>
Component: [OLD] DevelopmentAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/pfalcon/esp-open-sdk
Whiteboard:
Package list:
Runtime testing required: ---

Description Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2016-02-26 16:40:28 UTC
Hi there!
Can you add some support for the `xtensa-lx106-elf` target (used in ESP8266 SoC)?
Although, for now `crossdev -t xtensa-lx106-elf` building something, it fails to build newlib and, also it doesn't build additional mandatory library, "libhal". And, due to this, prepared toolchain is broken:

```
$ echo 'int main(){}' > a.c
$ xtensa-lx106-elf-gcc a.c
/usr/libexec/gcc/xtensa-lx106-elf/ld: cannot find crt1-sim.o: No such file or directory
/usr/libexec/gcc/xtensa-lx106-elf/ld: cannot find crt0.o: No such file or directory
/usr/libexec/gcc/xtensa-lx106-elf/ld: cannot find _vectors.o: No such file or directory
/usr/libexec/gcc/xtensa-lx106-elf/ld: cannot find -lc
/usr/libexec/gcc/xtensa-lx106-elf/ld: cannot find -lsim
/usr/libexec/gcc/xtensa-lx106-elf/ld: cannot find -lc
/usr/libexec/gcc/xtensa-lx106-elf/ld: cannot find -lhandlers-sim
/usr/libexec/gcc/xtensa-lx106-elf/ld: cannot find -lhal
collect2: error: ld returned 1 exit status
$ xtensa-lx106-elf-gcc a.c -nostdlib
/usr/libexec/gcc/xtensa-lx106-elf/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400054
$ 
```

And, also, it seems, there are some additional patching needed for GCC, newlib and GDB
(Protip: see the link in URL, there are links to toolchain parts' source codes in README. Good thing, that sources seems to be based on forks or original ones, so, it should be easy to make patchsets to put in FILESDIR).

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2016-03-02 17:14:03 UTC
we generally aren't interested in packaging custom toolchain components anymore.  if newlib is failing to build, then post that log.