Actions
Bug #268
openBuilding Chrome EC within coreboot requires libftdi for no good reason
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07/06/2020
Due date:
% Done:
0%
Estimated time:
Affected versions:
Needs backport to:
Affected hardware:
Affected OS:
Description
$ uname -m
ppc64le
$ make crossgcc CPUS=100
[…]
Welcome to the coreboot cross toolchain builder v157851fdbb (2020-05-29)
[…]
$ make what-jenkins-does
[…]
GOOGLE_SAMUS build FAILED after 73s!
Log excerpt:
/usr/bin/ld: /dev/shm/coreboot/3rdparty/chromeec/util/ec_uartd.c:66: undefined reference to `ftdi_get_error_string'
/usr/bin/ld: /dev/shm/coreboot/3rdparty/chromeec/util/ec_uartd.c:71: undefined reference to `ftdi_set_baudrate'
/usr/bin/ld: /dev/shm/coreboot/3rdparty/chromeec/util/ec_uartd.c:79: undefined reference to `ftdi_setdtr'
/usr/bin/ld: /dev/shm/coreboot/3rdparty/chromeec/util/ec_uartd.c:119: undefined reference to `ftdi_write_data'
/usr/bin/ld: /dev/shm/coreboot/3rdparty/chromeec/util/ec_uartd.c:128: undefined reference to `ftdi_read_data'
/usr/bin/ld: /dev/shm/coreboot/3rdparty/chromeec/util/ec_uartd.c:156: undefined reference to `ftdi_usb_close'
/usr/bin/ld: /dev/shm/coreboot/3rdparty/chromeec/util/ec_uartd.c:157: undefined reference to `ftdi_deinit'
/usr/bin/ld: /dev/shm/coreboot/3rdparty/chromeec/util/ec_uartd.c:73: undefined reference to `ftdi_get_error_string'
collect2: error: ld returned 1 exit status
Updated by Patrick Georgi over 4 years ago
- Subject changed from chromeec fails to build with undefined references to `ftdi_*` to Building Chrome EC within coreboot requires libftdi for no good reason
I don't think the issue is architecture specific: these are libftdi symbols and that only depends on libusb which should be architecture independent as well.
The actionable task for this may be to not build EC utilities that aren't necessary for just building EC.
Updated by Paul Menzel over 4 years ago
In Ubuntu 20.04
libftdi-dev/focal,now 0.20-4build8 ppc64el [installed]
wasn’t enough. After installing libftdi1-dev
the build succeeded.
Actions