GithubHelp home page GithubHelp logo

e2qc's People

Contributors

arekinath avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

e2qc's Issues

compilation failure on OS X

compiling e2qc on the latest OSX crashes with the following error:

gcc -v nif.c
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.10.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name nif.c -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 242 -v -dwarf-column-info -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0 -fdebug-compilation-dir /Users/heinz/Projects/fifo/core/wiggle-app/deps/e2qc/c_src -ferror-limit 19 -fmessage-length 272 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.10.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/cq/y3k8yt6s015gr90lf06ss7lw0000gn/T/nif-b18874.o -x c nif.c
clang -cc1 version 6.1.0 based upon LLVM 3.6.0svn default target x86_64-apple-darwin14.3.0
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: error: unable to execute command: Segmentation fault: 11
clang: note: diagnostic msg: Error generating preprocessed source(s).

Compilation fails ( Erlang 25.0.4 )

When compiling dependencies ( e2qc is a dependency of the Penelope library ), here is what I get:

Erlang/OTP 25 [erts-13.0.4] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns] [dtrace]

cc -O3 -std=c99 -arch x86_64 -finline-functions -Wall -DOS_DARWIN -fPIC -I /usr/local/Cellar/erlang/25.0.4/lib/erlang/erts-13.0.4/include/ -I /usr/local/Cellar/erlang/25.0.4/lib/erlang/lib/erl_interface-5.3/include  -c -o /Volumes/SecondHD/Code/cmdv/bonoboom/deps/e2qc/c_src/nif.o /Volumes/SecondHD/Code/cmdv/bonoboom/deps/e2qc/c_src/nif.c
cc /Volumes/SecondHD/Code/cmdv/bonoboom/deps/e2qc/c_src/nif.o -arch x86_64 -flat_namespace -undefined suppress -shared -L /usr/local/Cellar/erlang/25.0.4/lib/erlang/lib/erl_interface-5.3/lib -lerl_interface -lei -o /Volumes/SecondHD/Code/cmdv/bonoboom/deps/e2qc/c_src/../priv/e2qc_nif.so
ld: library not found for -lerl_interface
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Volumes/SecondHD/Code/cmdv/bonoboom/deps/e2qc/c_src/../priv/e2qc_nif.so] Error 1
===> Hook for compile failed!

** (Mix) Could not compile dependency :e2qc, "/Users/julienmarie/.asdf/installs/elixir/1.13.4-otp-25/.mix/rebar3 bare compile --paths /Volumes/SecondHD/Code/cmdv/bonoboom/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile e2qc", update it with "mix deps.update e2qc" or clean it with "mix deps.clean e2qc"```


When recreating the specific command I get:

```cc -v  -O3 -std=c99 -arch x86_64 -finline-functions -Wall -DOS_DARWIN -fPIC -I /usr/local/Cellar/erlang/25.0.4/lib/erlang/erts-13.0.4/include/ -I /usr/local/Cellar/erlang/25.0.4/lib/erlang/lib/erl_interface-5.3/include  -c -o /Volumes/SecondHD/Code/cmdv/bonoboom/deps/e2qc/c_src/nif.o /Volumes/SecondHD/Code/cmdv/bonoboom/deps/e2qc/c_src/nif.c
cc /Volumes/SecondHD/Code/cmdv/bonoboom/deps/e2qc/c_src/nif.o -arch x86_64 -flat_namespace -undefined suppress -shared -L /usr/local/Cellar/erlang/25.0.4/lib/erlang/lib/erl_interface-5.3/lib -lerl_interface -lei -o /Volumes/SecondHD/Code/cmdv/bonoboom/deps/e2qc/c_src/../priv/e2qc_nif.so
ld: library not found for -lerl_interface
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.15.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name nif.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mframe-pointer=all -fno-strict-return -masm-verbose -munwind-tables -target-sdk-version=10.15.6 -target-cpu penryn -dwarf-column-info -debugger-tuning=lldb -target-linker-version 556.6 -v -coverage-notes-file /Volumes/SecondHD/Code/cmdv/bonoboom/deps/e2qc/c_src/nif.gcno -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -D OS_DARWIN -I /usr/local/Cellar/erlang/25.0.4/lib/erlang/erts-13.0.4/include/ -I /usr/local/Cellar/erlang/25.0.4/lib/erlang/lib/erl_interface-5.3/include -I/usr/local/include -internal-isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include -internal-isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include -internal-externc-isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -internal-externc-isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -O3 -Wall -Wno-objc-signed-char-bool-implicit-int-conversion -Wno-extra-semi-stmt -Wno-quoted-include-in-framework-header -std=c99 -fdebug-compilation-dir /Users/julienmarie/Code/cmdv/bonoboom -ferror-limit 19 -fmessage-length 105 -stack-protector 1 -fstack-check -mdarwin-stkchk-strong-link -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -finline-functions -fobjc-runtime=macosx-10.15.0 -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /Volumes/SecondHD/Code/cmdv/bonoboom/deps/e2qc/c_src/nif.o -x c /Volumes/SecondHD/Code/cmdv/bonoboom/deps/e2qc/c_src/nif.c
clang -cc1 version 11.0.3 (clang-1103.0.32.62) default target x86_64-apple-darwin19.3.0
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/Cellar/erlang/25.0.4/lib/erlang/erts-13.0.4/include
 /usr/local/Cellar/erlang/25.0.4/lib/erlang/lib/erl_interface-5.3/include
 /usr/local/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory)
End of search list.
ld: library not found for -lerl_interface
clang: error: linker command failed with exit code 1 (use -v to see invocation)
zsh: command not found: ld:```

Any clue on how to make it work?

compile failed under rebar3

centos 7 gcc 4.8.5
With modify the rebar.config and add the makefile to c_src according to rebar3's doc
http://www.rebar3.org/docs/building-cc

i got the following error:

[root@localhost e2qc]# rebar3 shell
===> Verifying dependencies...
===> Compiling e2qc
make: Entering directory `/mnt/hgfs/share/devtest/e2qc/c_src'
cc -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes -fPIC -I /root/.asdf/installs/erlang/19.2/lib/erlang/erts-8.2/include/ -I /root/.asdf/installs/erlang/19.2/lib/erlang/lib/erl_interface-3.9.2/include 
-c -o /mnt/hgfs/share/devtest/e2qc/c_src/nif.o /mnt/hgfs/share/devtest/e2qc/c_src/nif.c
/mnt/hgfs/share/devtest/e2qc/c_src/nif.c:82:18: error: field ‘expiry’ has incomplete type
  struct timespec expiry;  /* expiry time */
                  ^
In file included from /mnt/hgfs/share/devtest/e2qc/c_src/nif.c:41:0:
/mnt/hgfs/share/devtest/e2qc/c_src/nif.c:159:13: warning: no previous prototype for ‘atom_tree_RB_INSERT_COLOR’ [-Wmissing-prototypes]
 RB_GENERATE(atom_tree, atom_node, entry, atom_tree_cmp);
             ^
/mnt/hgfs/share/devtest/e2qc/c_src/tree.h:401:1: note: in definition of macro ‘RB_GENERATE_INTERNAL’
 name##_RB_INSERT_COLOR(struct name *head, struct type *elm)             \
 ^
/mnt/hgfs/share/devtest/e2qc/c_src/nif.c:159:1: note: in expansion of macro ‘RB_GENERATE’
 RB_GENERATE(atom_tree, atom_node, entry, atom_tree_cmp);
 ^
/mnt/hgfs/share/devtest/e2qc/c_src/nif.c:159:13: warning: no previous prototype for ‘atom_tree_RB_REMOVE_COLOR’ [-Wmissing-prototypes]
 RB_GENERATE(atom_tree, atom_node, entry, atom_tree_cmp);
             ^
/mnt/hgfs/share/devtest/e2qc/c_src/tree.h:445:1: note: in definition of macro ‘RB_GENERATE_INTERNAL’
 name##_RB_REMOVE_COLOR(struct name *head, struct type *parent, struct type *elm) \
 ^
/mnt/hgfs/share/devtest/e2qc/c_src/nif.c:159:1: note: in expa

What is the public API?

I suggest marking exported functions as @private if you don't want anybody to call them. I can see many uses of this, but thinking about what parts of the API is stable and what is subject to change will help a great deal in the long run.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.