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 error #123

Closed
alexmuntean opened this issue Jan 22, 2014 · 2 comments
Closed

Compile error #123

alexmuntean opened this issue Jan 22, 2014 · 2 comments
Assignees
Milestone

Comments

@alexmuntean
Copy link

Compiled src/leo_mcerl_sup.erl
Compiled src/leo_mcerl_server.erl
Compiled src/leo_mcerl.erl
Compiling c_src/leo_mcerl_nif.c
/usr/bin/ld: c_src/libcutil/build/src/libcutil.a(lcu_cache.c.o): relocation R_X86_64_32 against 'StrMapType' can not be used when making a shared object; recompile with -fPIC
c_src/libcutil/build/src/libcutil.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
ERROR: cc c_src/leo_mcerl_nif.o $LDFLAGS -shared -L/usr/local/erlang/R16B02/lib/erlang/lib/erl_interface-3.7.14/lib -lerl_interface -lei c_src/libcutil/build/src/libcutil.a -o priv/leo_mcerl.so failed with error: 1 and output:
/usr/bin/ld: c_src/libcutil/build/src/libcutil.a(lcu_cache.c.o): relocation R_X86_64_32 against 'StrMapType' can not be used when making a shared object; recompile with -fPIC
c_src/libcutil/build/src/libcutil.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

ERROR: compile failed while processing /home/alexandru/development/github-projects/leofs/deps/leo_mcerl: rebar_abort
make: *** [compile] Error 1

@ghost ghost assigned mocchira Jan 23, 2014
@mocchira
Copy link
Member

Thanks for your report.
I fixed this issue on develop branch.
So you can build LeoFS as follows for now.

cd ${leofs_repo_root}
rm -rf deps/
make deps
(cd deps/leo_mcerl/;git checkout develop)
(cd deps/leo_dcerl/;git checkout develop)
make
make release

This fix will be included in next release(1.0.0-pre3).

@alexmuntean
Copy link
Author

it worked. thank you. there was also an issue (before this error) to some project where I had to go to the path and do the cmake and then make.... because some build folder was empty... I read more details in the readme of that project...

I was just following this: http://www.leofs.org/docs/getting_started.html

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