all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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`
@ 2018-08-15  0:44 Tim Visher
  2018-08-15  1:05 ` Noam Postavsky
  0 siblings, 1 reply; 6+ messages in thread
From: Tim Visher @ 2018-08-15  0:44 UTC (permalink / raw)
  To: emacs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-08-21 12:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-15  0:44 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` Tim Visher
2018-08-15  1:05 ` 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

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.