Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420267 - dev-util/cmake-2.8.8-r2 on x32: build fails saying it can't find zlib even though it does
Summary: dev-util/cmake-2.8.8-r2 on x32: build fails saying it can't find zlib even th...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: x32
  Show dependency tree
 
Reported: 2012-06-08 15:40 UTC by Albert W. Hopkins
Modified: 2012-06-14 17:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
complete build.log (build.log,40.03 KB, text/plain)
2012-06-08 15:40 UTC, Albert W. Hopkins
Details
add x32 library search paths (cmake-2.8.8-x32.patch,1.01 KB, patch)
2012-06-09 08:13 UTC, Tim Harder
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Albert W. Hopkins 2012-06-08 15:40:05 UTC
Created attachment 314693 [details]
complete build.log

The build fails as follows:

----
-- Checking if ostream supports long long - yes
-- Checking whether C compiler has ptrdiff_t in stddef.h
-- Checking whether C compiler has ptrdiff_t in stddef.h - yes
-- Checking whether C compiler has ssize_t in unistd.h
-- Checking whether C compiler has ssize_t in unistd.h - yes
-- Using system-installed BZIP2
-- Using system-installed CURL
-- Using system-installed EXPAT
-- Using system-installed LIBARCHIVE
-- Using system-installed ZLIB
-- Could NOT find ZLIB (missing:  ZLIB_LIBRARY) (found version "1.2.6")
CMake Error at CMakeLists.txt:267 (MESSAGE):
  CMAKE_USE_SYSTEM_ZLIB is ON but a zlib is not found!
Call Stack (most recent call first):
  CMakeLists.txt:526 (CMAKE_BUILD_UTILITIES)
----

The above is with zlib-1.2.6 but it does the same with 1.2.7.  Zlib appears to be installed (and I guess other things can find it):

----

/libx32
/libx32/libz.so.1 -> libz.so.1.2.6
/libx32/libz.so.1.2.6
/usr
/usr/include
/usr/include/zconf.h
/usr/include/zlib.h
/usr/libx32
/usr/libx32/libz.a
/usr/libx32/libz.so
/usr/libx32/pkgconfig
/usr/libx32/pkgconfig/zlib.pc
/usr/share
/usr/share/doc
/usr/share/doc/zlib-1.2.6
/usr/share/doc/zlib-1.2.6/ChangeLog
/usr/share/doc/zlib-1.2.6/FAQ
/usr/share/doc/zlib-1.2.6/README
/usr/share/doc/zlib-1.2.6/algorithm.txt
/usr/share/doc/zlib-1.2.6/rfc1950.txt
/usr/share/doc/zlib-1.2.6/rfc1951.txt
/usr/share/doc/zlib-1.2.6/rfc1952.txt
/usr/share/doc/zlib-1.2.6/txtvsbin.txt
/usr/share/man
/usr/share/man/man3
/usr/share/man/man3/zlib.3
---

Complete build log attached.
Comment 1 Tim Harder gentoo-dev 2012-06-09 08:13:09 UTC
Created attachment 314757 [details, diff]
add x32 library search paths

This patch adds x32 support to the cmake-2.8.8-more-no_host_paths.patch we currently apply to cmake-2.8.8.
Comment 2 Albert W. Hopkins 2012-06-09 09:02:40 UTC
(In reply to comment #1)
> Created attachment 314757 [details, diff] [details, diff]
> add x32 library search paths
> 
> This patch adds x32 support to the cmake-2.8.8-more-no_host_paths.patch we
> currently apply to cmake-2.8.8.

Oh goodie, a patch of a patch! ;-)

... Worked fine from here.  Thanks so much, Tim!
Comment 3 Michael Palimaka (kensington) gentoo-dev 2012-06-14 10:24:21 UTC
Thanks everyone, this is now fixed in CVS.

+  14 Jun 2012; Michael Palimaka <kensington@gentoo.org> +cmake-2.8.8-r3.ebuild,
+  files/cmake-2.8.8-more-no_host_paths.patch:
+  Add support for x32 ABI, wrt bug #393673. Patch by Tim Harder
+  <radhermit@gentoo.org>.
Comment 4 Albert W. Hopkins 2012-06-14 17:11:43 UTC
Thank you!