Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587892 - app-arch/lz4-0_p131 fails to build on Darwin with install_name QA failure
Summary: app-arch/lz4-0_p131 fails to build on Darwin with install_name QA failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal
Assignee: Richard Yao (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-03 16:24 UTC by Stuart Shelton
Modified: 2016-07-28 18:34 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2016-07-03 16:24:42 UTC
>>> Emerging (1 of 2) app-arch/lz4-0_p131::gentoo_prefix
 * lz4-r131.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking lz4-r131.tar.gz to /Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work
>>> Source unpacked in /Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work
>>> Preparing source in /Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work/lz4-r131 ...
 * Will copy sources from /Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work/lz4-r131
 * abi_x86_64.amd64: copying to /Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work/lz4-r131-abi_x86_64.amd64
>>> Source prepared.
>>> Configuring source in /Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work/lz4-r131 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
>>> Source configured.
>>> Compiling source in /Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work/lz4-r131 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_compile
make SHELL=/opt/gentoo/bin/bash -j7 -C lib liblz4 liblz4.pc 
make: Entering directory '/Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work/lz4-r131-abi_x86_64.amd64/lib'
compiling static library
creating pkgconfig
compiling dynamic library 1.7.1
creating versioned links
make: Leaving directory '/Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work/lz4-r131-abi_x86_64.amd64/lib'
make SHELL=/opt/gentoo/bin/bash -j7 -C programs lz4 lz4c 
make: Entering directory '/Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work/lz4-r131-abi_x86_64.amd64/programs'
/opt/gentoo/usr/bin/clang      -I../lib  -arch x86_64 -march=core-avx-i -fcolor-diagnostics -O3 -pipe -Wno-implicit-function-declaration -mmacosx-version-min=10.11 -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -pedantic -DLZ4_VERSION=\"r131\" -Wl,-dead_strip_dylibs ../lib/lz4.c ../lib/lz4hc.c ../lib/lz4frame.c ../lib/xxhash.c bench.c lz4io.c lz4cli.c -o lz4
/opt/gentoo/usr/bin/clang      -I../lib  -arch x86_64 -march=core-avx-i -fcolor-diagnostics -O3 -pipe -Wno-implicit-function-declaration -mmacosx-version-min=10.11 -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -pedantic -DLZ4_VERSION=\"r131\" -Wl,-dead_strip_dylibs -DENABLE_LZ4C_LEGACY_OPTIONS ../lib/lz4.c ../lib/lz4hc.c ../lib/lz4frame.c ../lib/xxhash.c bench.c lz4io.c lz4cli.c -o lz4c
make: Leaving directory '/Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work/lz4-r131-abi_x86_64.amd64/programs'
>>> Source compiled.
>>> Test phase [not enabled]: app-arch/lz4-0_p131

>>> Install lz4-0_p131 into /Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/image/ category app-arch
 * abi_x86_64.amd64: running multilib-minimal_abi_src_install
make SHELL=/opt/gentoo/bin/bash -j7 install DESTDIR=/Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/image/ PREFIX=/opt/gentoo/usr LIBDIR=/opt/gentoo/usr/lib 
make[1]: Entering directory '/Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work/lz4-r131-abi_x86_64.amd64/lib'
lz4 static and shared library installed
make[1]: Leaving directory '/Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work/lz4-r131-abi_x86_64.amd64/lib'
make[1]: Entering directory '/Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work/lz4-r131-abi_x86_64.amd64/programs'
Installing binaries
Installing man pages
lz4 installation completed
make[1]: Leaving directory '/Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/work/lz4-r131-abi_x86_64.amd64/programs'
>>> Completed installing lz4-0_p131 into /Volumes/Scratch/tmp/portage/app-arch/lz4-0_p131/image/

 * Final size of build directory: 2016 KiB
 * Final size of installed tree: 496 KiB

ecompressdir: bzip2 -9 /usr/share/doc
ecompressdir: bzip2 -9 /usr/share/man
 * QA Notice: invalid self-reference install_name /usr/local/lib/liblz4.1.dylib in /opt/gentoo/usr/lib/liblz4.1.7.1.dylib
 * ERROR: app-arch/lz4-0_p131::gentoo_prefix failed:
 *   invalid install_name found, your application or library will crash at runtime


If 'PREFIX' (and 'LIBDIR'?) are exported in multilib_src_compile() rather than only being passed in multilib_src_install() then the build succeeds.
Comment 1 Alexander Tsoy 2016-07-21 23:33:02 UTC
(In reply to Stuart Shelton from comment #0)

> If 'PREFIX' (and 'LIBDIR'?) are exported in multilib_src_compile() rather
> than only being passed in multilib_src_install() then the build succeeds.

And this should also fix pkgconfig files:

$ grep /lib /usr/lib64/pkgconfig/liblz4.pc 
libdir=/usr/local/lib
Libs: -L/usr/local/lib -llz4
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-07-28 18:34:09 UTC
commit 7d04fd796da60ab39399dbd479cfcf9cf72723b0
Author:     Alexander Tsoy <alexander@tsoy.me>
AuthorDate: Mon Jul 25 21:21:35 2016
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Thu Jul 28 20:18:37 2016

    app-arch/lz4: fix paths in .pc and install_name (for Darwin)
    
    Bug: https://bugs.gentoo.org/587892
    Closes: https://github.com/gentoo/gentoo/pull/1967