guile-user
[Top][All Lists]
Advanced

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

Help installing guile from source


From: Kaushal Modi
Subject: Help installing guile from source
Date: Fri, 13 Oct 2017 12:01:05 +0000

Hello,

I thought I installed all the dependencies for guile, but make failed at
the last moment with this error:

make  all-am
make[3]: Entering directory '/home/kmodi/downloads/git/guile/guile-readline'
  CC       readline.lo
  CCLD     guile-readline.la
libtool: warning: '/home/kmodi/stowed/lib/libgc.la' seems to be moved
libtool: warning: '/home/kmodi/usr_local/6/lib64/libffi.la' seems to be
moved
libtool: warning: '/home/kmodi/stowed/lib/libunistring.la' seems to be moved
libtool: warning: '/home/kmodi/stowed/lib/libgmp.la' seems to be moved
libtool: warning: '/home/kmodi/stowed/lib/libltdl.la' seems to be moved
/usr/bin/ld: /home/kmodi/usr_local/6/lib/libncurses.a(lib_termcap.o):
relocation R_X86_64_32S against `_nc_globals' can not be used when making a
shared object; recompile with -fPIC
/home/kmodi/usr_local/6/lib/libncurses.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:1753: guile-readline.la] Error 1
make[3]: Leaving directory '/home/kmodi/downloads/git/guile/guile-readline'
make[2]: *** [Makefile:1681: all] Error 2
make[2]: Leaving directory '/home/kmodi/downloads/git/guile/guile-readline'
make[1]: *** [Makefile:1848: all-recursive] Error 1
make[1]: Leaving directory '/home/kmodi/downloads/git/guile'
make: *** [Makefile:1733: all] Error 2

Here is what I did:

CFLAGS="-I${STOW_PKGS_TARGET}/include -I${STOW_PKGS_TARGET}/include/gc" \
      LDFLAGS="-L${STOW_PKGS_TARGET}/lib" \
      BDW_GC_CFLAGS="-L${STOW_PKGS_TARGET}/lib" \
      BDW_GC_LIBS=-lgc \
      ./configure --prefix="${guile_install_dir}"
make

I install the libs and packages using stow organization:

So the lib/pkg will be installed in

~/stow/pkgs/PKGNAME/VERSION

and under there we will have

~/stow/pkgs/PKGNAME/VERSION/{bin,lib,share,include}

After running stow, symlinks to those are created in the STOW_PKGS_TARGET
dir

~/stowed

Here is a snippet of ls that showed the last few installed libs in
~/stowed/lib

lrwxrwxrwx 50 kmodi 12 Oct 14:19 libltdl.so.7.3.1 ->
../../stow/pkgs/libtool/2.4.6/lib/libltdl.so.7.3.1
lrwxrwxrwx 44 kmodi 12 Oct 14:19 libltdl.so ->
../../stow/pkgs/libtool/2.4.6/lib/libltdl.so
lrwxrwxrwx 44 kmodi 12 Oct 14:19 libltdl.la ->
../../stow/pkgs/libtool/2.4.6/lib/libltdl.la
lrwxrwxrwx 46 kmodi 12 Oct 14:19 libltdl.so.7 ->
../../stow/pkgs/libtool/2.4.6/lib/libltdl.so.7
lrwxrwxrwx 43 kmodi 12 Oct 14:19 libltdl.a ->
../../stow/pkgs/libtool/2.4.6/lib/libltdl.a
lrwxrwxrwx 60 kmodi 12 Oct 14:29 libunistring.so.2.0.0 ->
../../stow/pkgs/libunistring/0.9.7/lib/libunistring.so.2.0.0
lrwxrwxrwx 54 kmodi 12 Oct 14:29 libunistring.la ->
../../stow/pkgs/libunistring/0.9.7/lib/libunistring.la
lrwxrwxrwx 56 kmodi 12 Oct 14:29 libunistring.so.2 ->
../../stow/pkgs/libunistring/0.9.7/lib/libunistring.so.2
lrwxrwxrwx 54 kmodi 12 Oct 14:29 libunistring.so ->
../../stow/pkgs/libunistring/0.9.7/lib/libunistring.so
lrwxrwxrwx 53 kmodi 12 Oct 14:29 libunistring.a ->
../../stow/pkgs/libunistring/0.9.7/lib/libunistring.a
drwxr-xr-x  - kmodi 12 Oct 14:45 pkgconfig/
lrwxrwxrwx 36 kmodi 12 Oct 14:45 libgc.so ->
../../stow/pkgs/gc/7.2g/lib/libgc.so
lrwxrwxrwx 42 kmodi 12 Oct 14:45 libgc.so.1.0.3 ->
../../stow/pkgs/gc/7.2g/lib/libgc.so.1.0.3
lrwxrwxrwx 36 kmodi 12 Oct 14:45 libgc.la -> ../../stow/pkgs/gc/7.2g/lib/
libgc.la
lrwxrwxrwx 38 kmodi 12 Oct 14:45 libgc.so.1 ->
../../stow/pkgs/gc/7.2g/lib/libgc.so.1
lrwxrwxrwx 44 kmodi 12 Oct 14:45 libcord.so.1.0.3 ->
../../stow/pkgs/gc/7.2g/lib/libcord.so.1.0.3
lrwxrwxrwx 40 kmodi 12 Oct 14:45 libcord.so.1 ->
../../stow/pkgs/gc/7.2g/lib/libcord.so.1
lrwxrwxrwx 38 kmodi 12 Oct 14:45 libcord.la -> ../../stow/pkgs/gc/7.2g/lib/
libcord.la
lrwxrwxrwx 38 kmodi 12 Oct 14:45 libcord.so ->
../../stow/pkgs/gc/7.2g/lib/libcord.so
lrwxrwxrwx 37 kmodi 12 Oct 14:45 libcord.a ->
../../stow/pkgs/gc/7.2g/lib/libcord.a
lrwxrwxrwx 35 kmodi 12 Oct 14:45 libgc.a ->
../../stow/pkgs/gc/7.2g/lib/libgc.a

So I don't know what these warnings mean:

libtool: warning: '/home/kmodi/stowed/lib/libgc.la' seems to be moved
libtool: warning: '/home/kmodi/usr_local/6/lib64/libffi.la' seems to be
moved
libtool: warning: '/home/kmodi/stowed/lib/libunistring.la' seems to be moved
libtool: warning: '/home/kmodi/stowed/lib/libgmp.la' seems to be moved
libtool: warning: '/home/kmodi/stowed/lib/libltdl.la' seems to be moved

Are those warnings OK to ignore? If so, what does the below error mean?

/usr/bin/ld: /home/kmodi/usr_local/6/lib/libncurses.a(lib_termcap.o):
relocation R_X86_64_32S against `_nc_globals' can not be used when making a
shared object; recompile with -fPIC
/home/kmodi/usr_local/6/lib/libncurses.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status


Here are the versions of the installed dependencies:

Installing guile from its master branch.

- gmp 6.1.2
- libtool 2.4.6
- libunistring 0.9.7
- gc 7.2g
- ncurses 6.0

Thanks.
-- 

Kaushal Modi


reply via email to

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