Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575744 - sys-devel/crossdev: add support for xtensa-lx106-elf target (ESP8266)
Summary: sys-devel/crossdev: add support for xtensa-lx106-elf target (ESP8266)
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://github.com/pfalcon/esp-open-sdk
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-26 16:40 UTC by Vadim A. Misbakh-Soloviov (mva)
Modified: 2016-05-11 05:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.