Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
datpt11 opened this issue Oct 2, 2024 · 1 comment

Comments

@datpt11
Copy link

datpt11 commented Oct 2, 2024

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

@fhunleth
Copy link
Contributor

fhunleth commented Oct 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants