Project

General

Profile

Actions

Bug #268

open

Building Chrome EC within coreboot requires libftdi for no good reason

Added by Paul Menzel almost 4 years ago. Updated almost 4 years ago.

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
Actions #1

Updated by Patrick Georgi almost 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.

Actions #2

Updated by Paul Menzel almost 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

Also available in: Atom PDF