leo-project / leofs

The LeoFS Storage System
https://leo-project.net/leofs/
Apache License 2.0
1.55k stars 155 forks source link

Compile error #123

Closed alexmuntean closed 10 years ago

alexmuntean commented 10 years ago

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

mocchira commented 10 years ago

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 commented 10 years ago

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