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

Unable to Build Python Library #21

Open
tscanlon opened this issue Oct 22, 2015 · 0 comments
Open

Unable to Build Python Library #21

tscanlon opened this issue Oct 22, 2015 · 0 comments

Comments

@tscanlon
Copy link

So I'm stuck trying to build and package python_seco_librange (what I want), librange and libcrange. I tried the non python libraries as an attempt to be able to build the python one.

In each I resolved missing commands mentioned in errors from running multipkg -d deb . in each of those three folders. In python_seco_librange I am stuck on

git/range/python_seco_librange$ multipkg -p deb .
Build failed: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
 running install
 running build
 running build_ext
 building 'secorange' extension
 x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c secorange.c -o build/temp.linux-x86_64-2.7/secorange.o
 x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffe
r-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/secorange.o -L/usr/local/lib -lrange -lpcre -o build/lib.linux-x86_64-2.7/secorange.so
 /usr/bin/ld: cannot find -lrange
 collect2: error: ld returned 1 exit status
 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I'm fairly sure its stuck looking for librange.so and librange.a but I have no idea where to get those.

So as an attempt to solve that I started trying to build libcrange which ends up with

git/range/libcrange$ multipkg -p deb .
Build failed: byacc: e - line 13 of "/tmp/oc_d6p8UkL/build/src/range_parser.y", syntax error
 %locations
 ^
 make[3]: *** [range_parser.c] Error 1
 make[3]: Leaving directory `/tmp/oc_d6p8UkL/build/src'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory `/tmp/oc_d6p8UkL/build/src'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/tmp/oc_d6p8UkL/build'
 make: *** [all] Error 2

Lastly when trying to build librange I get

git/range/librange$ multipkg -p deb .
Build failed: /usr/lib/ocaml/caml/memory.h:227:28: note: in expansion of macro ‘CAMLreturnT’
  #define CAMLreturn(result) CAMLreturnT(value, result)
                             ^
 librange.c:141:5: note: in expansion of macro ‘CAMLreturn’
      CAMLreturn(strdup(String_val(caml_result)));
      ^
 ld -fPIC -Bsymbolic -shared --whole-archive -o librange.so camlcode.o librange.o /usr/lib/ocaml/libunix.a /usr/lib/ocaml/libasmrun.a /usr/lib/ocaml/pcre/libpcre_stubs.a -lm -lpcre -ldl
 ld: /usr/lib/ocaml/libasmrun.a(startup.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
 /usr/lib/ocaml/libasmrun.a(startup.o): error adding symbols: Bad value
 make: *** [librange.so] Error 1

I'm running ubuntu 14.04 LTS and pulled all the various commands these were erroring on from the official ubuntu mirrors.

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

1 participant