all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Visher <tim.visher@gmail.com>
To: emacs <help-gnu-emacs@gnu.org>
Subject: Building emacs using the `spksrc` toolchain results in `./temacs: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory`
Date: Tue, 14 Aug 2018 20:44:57 -0400	[thread overview]
Message-ID: <CAHa53uwH_Y=KHjO67ae7+J0Vkoo7ihALr6=ydraxjjbP1TDx8g@mail.gmail.com> (raw)

I'm attempting to provide an emacs package for Synology NASes using the
`spksrc` toolchain (PR: https://github.com/SynoCommunity/spksrc/pull/3352).

The build fails with the following error message:

```
./temacs --batch  --load loadup bootstrap
./temacs: error while loading shared libraries: libncurses.so.6: cannot
open shared object file: No such file or directory
```

`./configure` succeeds after being called like:

```
cd /home/vagrant/spksrc/spk/emacs/work-apollolake-6.1/emacs-26.1 \
    && env
PKG_CONFIG_LIBDIR=/home/vagrant/spksrc/spk/emacs/work-apollolake-6.1/install//var/packages/emacs/target/lib/pkgconfig
\
           WORK_DIR=/home/vagrant/spksrc/spk/emacs/work-apollolake-6.1 \
           INSTALL_PREFIX=/var/packages/emacs/target \
           TC=syno-apollolake-6.1 \

 LD="/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld"
\

 LDSHARED="/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-gcc
-shared" \

 CPP="/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-cpp"
\

 NM="/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-nm"
\

 CC="/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-gcc"
\

 AS="/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-as"
\

 RANLIB="/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ranlib"
\

 CXX="/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-g++"
\

 AR="/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ar"
\

 STRIP="/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-strip"
\

 OBJDUMP="/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-objdump"
\

 READELF="/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-readelf"
\

 CFLAGS="-I/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/include
-I/home/vagrant/spksrc/spk/emacs/work-apollolake-6.1/install//var/packages/emacs/target/include
" \

 CPPFLAGS="-I/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/include
-I/home/vagrant/spksrc/spk/emacs/work-apollolake-6.1/install//var/packages/emacs/target/include
" \

 CXXFLAGS="-I/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/include
-I/home/vagrant/spksrc/spk/emacs/work-apollolake-6.1/install//var/packages/emacs/target/include
" \

 LDFLAGS="-L/home/vagrant/spksrc/toolchains/syno-apollolake-6.1/work/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/libftu
-L/home/vagrant/spksrc/spk/emacs/work-apollolake-6.1/install//var/packages/emacs/target/lib
-Wl,--rpath-link,/home/vagrant/spksrc/spk/emacs/work-apollolake-6.1/install//var/packages/emacs/target/lib
-Wl,--rpath,/var/packages/emacs/target/lib " \
           ./configure \
           --host=x86_64-pc-linux-gnu \
           --build=i686-pc-linux \
           --prefix=/var/packages/emacs/target \
           --without-x \
           --with-gnutls
```

```
vagrant@debian-8:~/spksrc/spk/emacs/work-apollolake-6.1/emacs-26.1$ bash x
| grep -F ncurses
checking for library containing tputs... -lncurses
```

Notably LDFLAGS appears to contain a directory which contains
libncurses.so.6

```
vagrant@debian-8:~/spksrc/spk/emacs/work-apollolake-6.1/emacs-26.1$ ls -l
/home/vagrant/spksrc/spk/emacs/work-apollolake-6.1/install//var/packages/emacs/target/lib/libncurses.so*
lrwxrwxrwx 1 vagrant vagrant     15 Aug 14 23:13
/home/vagrant/spksrc/spk/emacs/work-apollolake-6.1/install//var/packages/emacs/target/lib/libncurses.so
-> libncurses.so.6
lrwxrwxrwx 1 vagrant vagrant     17 Aug 14 23:13
/home/vagrant/spksrc/spk/emacs/work-apollolake-6.1/install//var/packages/emacs/target/lib/libncurses.so.6
-> libncurses.so.6.1
-rwxr-xr-x 1 vagrant vagrant 462808 Aug 14 23:13
/home/vagrant/spksrc/spk/emacs/work-apollolake-6.1/install//var/packages/emacs/target/lib/libncurses.so.6.1
```

I'm unsure what else to collect but I'm happy to provide more logs.

A full log of the build is available here:
https://gist.githubusercontent.com/timvisher/bc2855136b3f9933599d1368c5892325/raw/8561dc1e94594f81822fa625f7e754f8e4b31fb6/emacs-arch-apollolake-full.log
(it's quite large).

`spksrc` is automatically compiling ncurses but appears, to my eyes, to be
telling emacs where to find it.

Thanks in advance!

--

In Christ,

Timmy V.

https://blog.twonegatives.com
https://five.sentenc.es


             reply	other threads:[~2018-08-15  0:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-15  0:44 Tim Visher [this message]
2018-08-15  1:05 ` Building emacs using the `spksrc` toolchain results in `./temacs: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory` Noam Postavsky
2018-08-15 12:46   ` Tim Visher
2018-08-15 13:53     ` Noam Postavsky
2018-08-18 15:15       ` Tim Visher
2018-08-21 12:09       ` Tim Visher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHa53uwH_Y=KHjO67ae7+J0Vkoo7ihALr6=ydraxjjbP1TDx8g@mail.gmail.com' \
    --to=tim.visher@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.