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

Compile failing with c_src/fdlink.o present #1

Closed
mirdhyn opened this issue May 14, 2014 · 2 comments
Closed

Compile failing with c_src/fdlink.o present #1

mirdhyn opened this issue May 14, 2014 · 2 comments

Comments

@mirdhyn
Copy link
Contributor

mirdhyn commented May 14, 2014

The compilation fails after a clean clone:
==> sh (compile)
c_src/fdlink.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
ERROR: cc c_src/fdlink.o $LDFLAGS -L/usr/lib/erlang/lib/erl_interface-3.7.16/lib -lerl_interface -lei -o priv/fdlink failed with error: 1 and output:
c_src/fdlink.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status

Removing c_src/fdlink.o fix the issue.

I guess this file shouldn't be present in the repo as it is architecture & system dependent and is built anyway during compilation when absent.

5HT added a commit that referenced this issue May 14, 2014
@5HT
Copy link
Member

5HT commented May 14, 2014

Sorry.

@5HT 5HT closed this as completed May 14, 2014
@Oniry
Copy link

Oniry commented Dec 20, 2018

not generated file c_src/fdlink.o
ubuntu 18.04

==> "sh"
cc -c -g -Wall -fPIC -MMD -I/usr/lib/erlang/lib/erl_interface-3.10.1/include -I/usr/lib/erlang/erts-9.2/include /home/oniry/n2o/sample/deps/sh/c_src/fdlink.c -o /home/oniry/n2o/sample/deps/sh/c_src/fdlink.o
escript: exception error: enoent
in function open_port/2
called as open_port({spawn_executable,false},
[stream,stderr_to_stdout,binary,exit_status,
{args,["-c","-g","-Wall","-fPIC","-MMD",
"-I/usr/lib/erlang/lib/erl_interface-3.10.1/include",
"-I/usr/lib/erlang/erts-9.2/include",
"/home/oniry/n2o/sample/deps/sh/c_src/fdlink.c",
"-o",
"/home/oniry/n2o/sample/deps/sh/c_src/fdlink.o"]},
{cd,"/home/oniry/n2o/sample/deps/sh"},
{env,[{"LDFLAGS",[]},{"CC","gcc"},{"CFLAGS",[]}]}])
in call from sh:run/5 (/Users/maxim/depot/synrc/mad/deps/sh/src/sh.erl, line 43)
in call from mad_port:'-compile_port/3-fun-0-'/5 (/Users/maxim/depot/synrc/mad/src/compile/mad_port.erl, line 35)
in call from mad_port:'-compile_port/3-lc$^4/1-4-'/2 (/Users/maxim/depot/synrc/mad/src/compile/mad_port.erl, line 44)
in call from mad_port:'-compile_port/3-fun-3-'/4 (/Users/maxim/depot/synrc/mad/src/compile/mad_port.erl, line 44)
in call from mad_port:'-compile_port/3-lc$^6/1-6-'/2 (/Users/maxim/depot/synrc/mad/src/compile/mad_port.erl, line 67)
in call from mad_compile:dep/4 (/Users/maxim/depot/synrc/mad/src/compile/mad_compile.erl, line 65)
in call from mad_compile:deps/4 (/Users/maxim/depot/synrc/mad/src/compile/mad_compile.erl, line 20)

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

3 participants