bug-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compilation failed under Alpine Linux


From: fx . nion
Subject: Compilation failed under Alpine Linux
Date: Mon, 25 Apr 2016 16:08:53 +0200
User-agent: Internet Messaging Program (IMP) 3.2.8

Hi,

I played with a simple DockerFile based on Alpine Linux. After grabbing the
build tools and geting the master branch form git, the compilation failed with
these lines :

autoconf
./configure
make
...
...
gplc -o pl2wam --no-fd-lib-warn --no-top-level pl2wam.o read_file.o syn_sugar.o
internal.o code_gen.o reg_alloc.o inst_codif.o first_arg.o indexing.o wam_emit.o
/usr/lib/gcc/x86_64-alpine-linux-musl/5.3.0/../../../../x86_64-alpine-linux-musl/bin/ld:
pl2wam.o: relocation R_X86_64_32S against `.text' can not be used when making a
shared object; recompile with -fPIC
pl2wam.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
compilation failed
Makefile:22: recipe for target 'pl2wam' failed
make[1]: *** [pl2wam] Error 1
make[1]: Leaving directory '/tmp/gprolog-code/src/Pl2Wam'
Makefile:45: recipe for target 'all' failed
make: *** [all] Error 1


Can we pass th "-fPIC" advice to the make command line, or shall we adapt the
configure.in script ?

Regards,

Fx



reply via email to

[Prev in Thread] Current Thread [Next in Thread]