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

Build on M1 #1

Open
markhalonen opened this issue Mar 2, 2021 · 1 comment
Open

Build on M1 #1

markhalonen opened this issue Mar 2, 2021 · 1 comment

Comments

@markhalonen
Copy link

I had to add this to build on M1 Apple Silicon

diff --git a/deps/build.jl b/deps/build.jl
index d9165a4..bb97b1a 100644
--- a/deps/build.jl
+++ b/deps/build.jl
@@ -31,7 +31,7 @@ provides(
                                @build_steps(begin
                                        `./autogen.sh`
                                        `./configure --prefix=$(BinDeps.usrdir(modbus))`
-                                       `make install`
+                                       `make install CFLAGS='-Wno-nullability-completeness'`
                                end),
                        )
                end)
@EricHalonen
Copy link

This is still broken.


(coho-deploy) pkg> build
   Building Clp ──────→ `~/.julia/packages/Clp/NUuKQ/deps/build.log`
   Building TimeZones → `~/.julia/packages/TimeZones/K98G0/deps/build.log`
   Building CMake ────→ `~/.julia/packages/CMake/ULbyn/deps/build.log`
   Building PLCTag ───→ `~/.julia/packages/PLCTag/9jSKn/deps/build.log`
   Building Modbus ───→ `~/Coho/rona/coho-deploy/Modbus.jl/deps/build.log`
┌ Error: Error building `Modbus`, showing the last 100 of log: 
│ FILE    *funopen(const void *,
│         ^
│           _Nullable 
│ /usr/local/include/stdio.h:384:6: note: insert '_Nonnull' if the pointer should never be null
│ FILE    *funopen(const void *,
│         ^
│           _Nonnull 
│ In file included from modbus.c:25:
│ /usr/local/include/stdlib.h:134:25: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
│ double   atof(const char *);
│                          ^
│ /usr/local/include/stdlib.h:134:25: note: insert '_Nullable' if the pointer may be null
│ double   atof(const char *);
│                          ^
│                           _Nullable
│ /usr/local/include/stdlib.h:134:25: note: insert '_Nonnull' if the pointer should never be null
│ double   atof(const char *);
│                          ^
│                           _Nonnull
│ /usr/local/include/stdlib.h:135:22: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
│ int      atoi(const char *);
│                          ^
│ /usr/local/include/stdlib.h:135:22: note: insert '_Nullable' if the pointer may be null

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