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

Problems compiling on OS X 10.13.1 #5

Open
rlb3 opened this issue Dec 14, 2017 · 1 comment
Open

Problems compiling on OS X 10.13.1 #5

rlb3 opened this issue Dec 14, 2017 · 1 comment

Comments

@rlb3
Copy link

rlb3 commented Dec 14, 2017

I'm getting this error when running mix firmware.

Erlang and Elixir versions:

Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Interactive Elixir (1.5.2) - press Ctrl+C to exit (type h() ENTER for help)

My gcc version is:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

My make version is:

GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

The error I'm seeing:

==> squitter
rm -f priv/modes.so
/Users/robert/.nerves/artifacts/nerves_toolchain_arm_unknown_linux_gnueabihf-0.10.0.darwin-x86_64/bin/arm-unknown-linux-gnueabihf-gcc src/modes.c -I/Users/robert/.nerves/artifacts/nerves_system_rpi3_sdr-0.15.1.arm_unknown_linux_gnueabihf/staging/usr/lib/erlang/erts-9.0/include -I/Users/robert/.nerves/artifacts/nerves_system_rpi3_sdr-0.15.1.arm_unknown_linux_gnueabihf/staging/usr/lib/erlang/lib/erl_interface-3.10/include --sysroot=/Users/robert/.nerves/artifacts/nerves_system_rpi3_sdr-0.15.1.arm_unknown_linux_gnueabihf/staging -dynamiclib -undefined dynamic_lookup -O3 -pedantic -Wall -fPIC -shared -o priv/modes.so
arm-unknown-linux-gnueabihf-gcc: error: dynamic_lookup: No such file or directory
make: *** [priv/modes.so] Error 1
could not compile dependency :squitter, "mix compile" failed. You can recompile this dependency with "mix deps.compile squitter", update it with "mix deps.update squitter" or clean it with "mix deps.clean squitter"
==> squitter_firmware
** (Mix) Could not compile with "make" (exit status: 2).
Depending on your OS, make sure to follow these instructions:

  * Mac OS X: You need to have gcc and make installed. Try running the
    commands "gcc --version" and / or "make --version". If these programs
    are not installed, you will be prompted to install them.

  * Linux: 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'".

@electricshaman
Copy link
Owner

Hi @rlb3! First of all, thanks for the detail. All of the linker flags look correct. I suspect this is an issue related to compiling on High Sierra. I haven’t upgraded yet.

I’ll give it a go tomorrow or Wednesday and see what’s going on.

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