xobs / wishbone-utils

Utilities for working with a Wishbone bridge
9 stars 5 forks source link

ci: point to FreeBSD headers #13

Closed kevans91 closed 4 years ago

kevans91 commented 4 years ago

This will hopefully allow the FreeBSD libusb build to locate the proper headers to build against now that freebsd_glue is installed.

Signed-off-by: Kyle Evans kevans@FreeBSD.org

(I suspect not merging yet is a good idea, since I can't trigger a Travis build against my branch)

kevans91 commented 4 years ago

I'm not sure how freebsd-glue is supposed to work -- most Linux distros don't ship with a sys/cdefs.h, as far as I'm aware, so there is no other sys/cdefs.h in this environment to #include_next.

xobs commented 4 years ago

It's working for me, except it's looking for dev/usb/usb.h which doesn't exist:

--- stdout
TARGET = Some("x86_64-unknown-freebsd")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-freebsd = None
CC_x86_64_unknown_freebsd = None
TARGET_CC = None
CC = None
CROSS_COMPILE = None
CFLAGS_x86_64-unknown-freebsd = None
CFLAGS_x86_64_unknown_freebsd = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/usr/include/freebsd" "-I" "/usr/include" "-I" "freebsd/lib/libusb/" "-Wall" "-Wextra" "-o" "/home/builder/wishbone-utils/wishbone-tool/target/x86_64-unknown-freebsd/debug/build/libusb-sys-c70b8e1836f9ce52/out/freebsd/lib/libusb/libusb20.o" "-c" "freebsd/lib/libusb/libusb20.c"
exit code: 0
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/usr/include/freebsd" "-I" "/usr/include" "-I" "freebsd/lib/libusb/" "-Wall" "-Wextra" "-o" "/home/builder/wishbone-utils/wishbone-tool/target/x86_64-unknown-freebsd/debug/build/libusb-sys-c70b8e1836f9ce52/out/freebsd/lib/libusb/libusb20_desc.o" "-c" "freebsd/lib/libusb/libusb20_desc.c"
exit code: 0
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/usr/include/freebsd" "-I" "/usr/include" "-I" "freebsd/lib/libusb/" "-Wall" "-Wextra" "-o" "/home/builder/wishbone-utils/wishbone-tool/target/x86_64-unknown-freebsd/debug/build/libusb-sys-c70b8e1836f9ce52/out/freebsd/lib/libusb/libusb20_ugen20.o" "-c" "freebsd/lib/libusb/libusb20_ugen20.c"
cargo:warning=freebsd/lib/libusb/libusb20_ugen20.c:43:10: fatal error: dev/usb/usb.h: No such file or directory
cargo:warning= #include <dev/usb/usb.h>
cargo:warning=          ^~~~~~~~~~~~~~~
cargo:warning=compilation terminated.
exit code: 1

--- stderr
thread 'main' panicked at '
kevans91 commented 4 years ago

Ah, I missed that one... we'd need to clone the source tree for that and .include() in ^/sys