Bug #268

Building Chrome EC within coreboot requires libftdi for no good reason

Added by Paul Menzel 28 days ago. Updated 28 days ago.

Status:NewStart date:07/06/2020
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

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

History

#1 Updated by Patrick Georgi 28 days 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.

#2 Updated by Paul Menzel 28 days ago

In Ubuntu 20.04

libftdi-dev/focal,now 0.20-4build8 ppc64el [installed]

wasn’t enough. After installing libftdi1-dev the build succeeded.

Also available in: Atom PDF