Discussion:
cmake build failure depending on liblzma
(too old to reply)
Jim Pazarena
2015-04-18 18:14:47 UTC
Permalink
I'm attempting a re-install of 10.1 amd, and cmake is a show stopper,
appearing to have a problem with liblzma. I re-installed liblzma, yet
cmake continues to fail. Without cmake many other things such as mysql
fail because of the dependency on cmake.

I am not sure what to do.
Any help would be much appreciated.

Jim


EVIDENCE OF LIBLZMA:

***@servera:~ # cd /usr/local/lib
***@servera:/usr/local/lib # ls -l | grep lzma
-rw-r--r-- 1 root wheel 401452 Apr 18 10:44 liblzma.a
lrwxr-xr-x 1 root wheel 16 Apr 18 10:44 liblzma.so ->
liblzma.so.1.1.0
lrwxr-xr-x 1 root wheel 16 Apr 18 10:44 liblzma.so.1 ->
liblzma.so.1.1
.0
-rwxr-xr-x 1 root wheel 290461 Apr 18 10:44 liblzma.so.1.1.0
***@servera:/usr/local/lib #


FAILURE OF CMAKE:

-- Checking whether cxxabi works with this C++ compiler - yes
-- Using system-installed BZIP2
-- Using system-installed CURL
-- Using system-installed EXPAT
-- Using system-installed LIBARCHIVE
-- Using system-installed LIBLZMA
-- Using system-installed ZLIB
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.8")
-- Found CURL: /usr/local/lib/libcurl.so (found version "7.41.0")
-- Found BZip2: /usr/lib/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so - found
-- Looking for lzma_auto_decoder in /usr/local/lib/liblzma.so
-- Looking for lzma_auto_decoder in /usr/local/lib/liblzma.so - not found
-- Looking for lzma_easy_encoder in /usr/local/lib/liblzma.so
-- Looking for lzma_easy_encoder in /usr/local/lib/liblzma.so - not found
-- Looking for lzma_lzma_preset in /usr/local/lib/liblzma.so
-- Looking for lzma_lzma_preset in /usr/local/lib/liblzma.so - not found
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER
LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.0.5")
CMake Error at CMakeLists.txt:310 (message):
CMAKE_USE_SYSTEM_LIBLZMA is ON but LibLZMA is not found!
Call Stack (most recent call first):
CMakeLists.txt:488 (CMAKE_BUILD_UTILITIES)


-- Configuring incomplete, errors occurred!
See also
"/usr/ports/devel/cmake/work/cmake-3.1.3/CMakeFiles/CMakeOutput.log".
See also
"/usr/ports/devel/cmake/work/cmake-3.1.3/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
===> Script "configure" failed unexpectedly.
Please report the problem to ***@FreeBSD.org [maintainer] and attach the
"/usr/ports/devel/cmake/work/cmake-3.1.3/config.log" including the output of
the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/cmake
***@servera:/usr/ports/devel/cmake # ^Dlogout
_______________________________________________
freebsd-***@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Jim Pazarena
2015-04-19 19:58:53 UTC
Permalink
just attempted to update another server, and cmake dies on it as well
citing the same liblzma error

oh my. had better stop with the updates until someone fixes this.
Post by Jim Pazarena
I'm attempting a re-install of 10.1 amd, and cmake is a show stopper,
appearing to have a problem with liblzma. I re-installed liblzma, yet
cmake continues to fail. Without cmake many other things such as mysql
fail because of the dependency on cmake.
I am not sure what to do.
Any help would be much appreciated.
Jim
-rw-r--r-- 1 root wheel 401452 Apr 18 10:44 liblzma.a
lrwxr-xr-x 1 root wheel 16 Apr 18 10:44 liblzma.so ->
liblzma.so.1.1.0
lrwxr-xr-x 1 root wheel 16 Apr 18 10:44 liblzma.so.1 ->
liblzma.so.1.1
.0
-rwxr-xr-x 1 root wheel 290461 Apr 18 10:44 liblzma.so.1.1.0
-- Checking whether cxxabi works with this C++ compiler - yes
-- Using system-installed BZIP2
-- Using system-installed CURL
-- Using system-installed EXPAT
-- Using system-installed LIBARCHIVE
-- Using system-installed LIBLZMA
-- Using system-installed ZLIB
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.8")
-- Found CURL: /usr/local/lib/libcurl.so (found version "7.41.0")
-- Found BZip2: /usr/lib/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so - found
-- Looking for lzma_auto_decoder in /usr/local/lib/liblzma.so
-- Looking for lzma_auto_decoder in /usr/local/lib/liblzma.so - not found
-- Looking for lzma_easy_encoder in /usr/local/lib/liblzma.so
-- Looking for lzma_easy_encoder in /usr/local/lib/liblzma.so - not found
-- Looking for lzma_lzma_preset in /usr/local/lib/liblzma.so
-- Looking for lzma_lzma_preset in /usr/local/lib/liblzma.so - not found
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER
LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.0.5")
CMAKE_USE_SYSTEM_LIBLZMA is ON but LibLZMA is not found!
CMakeLists.txt:488 (CMAKE_BUILD_UTILITIES)
-- Configuring incomplete, errors occurred!
See also
"/usr/ports/devel/cmake/work/cmake-3.1.3/CMakeFiles/CMakeOutput.log".
See also
"/usr/ports/devel/cmake/work/cmake-3.1.3/CMakeFiles/CMakeError.log".
---------------------------------------------
Problem while running initial CMake
---------------------------------------------
===> Script "configure" failed unexpectedly.
"/usr/ports/devel/cmake/work/cmake-3.1.3/config.log" including the
output of
the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1
Stop.
make: stopped in /usr/ports/devel/cmake
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
Raphael Kubo da Costa
2015-05-01 21:58:51 UTC
Permalink
Post by Jim Pazarena
-- Looking for lzma_auto_decoder in /usr/local/lib/liblzma.so
-- Looking for lzma_auto_decoder in /usr/local/lib/liblzma.so - not found
-- Looking for lzma_easy_encoder in /usr/local/lib/liblzma.so
-- Looking for lzma_easy_encoder in /usr/local/lib/liblzma.so - not found
-- Looking for lzma_lzma_preset in /usr/local/lib/liblzma.so
-- Looking for lzma_lzma_preset in /usr/local/lib/liblzma.so - not found
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER
LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.0.5")
CMAKE_USE_SYSTEM_LIBLZMA is ON but LibLZMA is not found!
CMakeLists.txt:488 (CMAKE_BUILD_UTILITIES)
It should work if you remove archivers/lzmalib, whose liblzma.so is
being picked up instead of base's liblzma.so.

It's a workaround, I still need to think of a proper fix. Would you mind
filing a PR about this?
Raphael Kubo da Costa
2015-05-03 19:38:47 UTC
Permalink
Post by Raphael Kubo da Costa
Post by Jim Pazarena
-- Looking for lzma_auto_decoder in /usr/local/lib/liblzma.so
-- Looking for lzma_auto_decoder in /usr/local/lib/liblzma.so - not found
-- Looking for lzma_easy_encoder in /usr/local/lib/liblzma.so
-- Looking for lzma_easy_encoder in /usr/local/lib/liblzma.so - not found
-- Looking for lzma_lzma_preset in /usr/local/lib/liblzma.so
-- Looking for lzma_lzma_preset in /usr/local/lib/liblzma.so - not found
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER
LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.0.5")
CMAKE_USE_SYSTEM_LIBLZMA is ON but LibLZMA is not found!
CMakeLists.txt:488 (CMAKE_BUILD_UTILITIES)
It should work if you remove archivers/lzmalib, whose liblzma.so is
being picked up instead of base's liblzma.so.
It's a workaround, I still need to think of a proper fix. Would you mind
filing a PR about this?
I've committed a fix in r385307.

Loading...