circuits_uart icon indicating copy to clipboard operation
circuits_uart copied to clipboard

src/uart_comm_unix.c:34:10: fatal error: linux/serial.h: No such file or directory on Mac OS

Open datpt11 opened this issue 1 year ago • 1 comments

Setup

  • Version: 1.5.3
  • OS: OSX
  • Platform: MacBook

Expected Behavior

Run on Mac OS

Actual Behavior

==> circuits_uart CC circuits_uart.o CC debug_tests.o CC erlcmd.o CC uart_comm.o CC uart_comm_unix.o src/uart_comm_unix.c:34:10: fatal error: linux/serial.h: No such file or directory 34 | #include <linux/serial.h> | ^~~~~~~~~~~~~~~~ compilation terminated. make: *** [src/Makefile:107: /app/_build/dev/lib/circuits_uart/obj/uart_comm_unix.o] Error 1 could not compile dependency :circuits_uart, "mix compile" failed. You can recompile this dependency with "mix deps.compile circuits_uart", update it with "mix deps.update circuits_uart" or clean it with "mix deps.clean circuits_uart" ==> pos_api ** (Mix) Could not compile with "make" (exit status: 2). You need to have gcc and make installed. If you are using Ubuntu or any other Debian-based system, install the packages "build-essential". Also install "erlang-dev" package if not included in your Erlang/OTP version. If you're on Fedora, run "dnf group install 'Development Tools'".

Steps to Reproduce the Problem

datpt11 avatar Oct 02 '24 09:10 datpt11

Do you have CFLAGS defined? That's very strange for it to go down a very specific Linux path.

fhunleth avatar Oct 02 '24 20:10 fhunleth