Re: Fixing absolute install fails on OSX

Thomas Leonard <[email protected]> Thu, 10 Sep 2015 13:32:03 +0100
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAG4opy8fDK61HGF+UdowFWWrnK-Dw70EXgkijdGpojGv16WV4w@mail.gmail.com>
On 10 September 2015 at 13:15, Ilja Honkonen <[email protected]> wrote:
> Hello
>
> While installing gcc from a local interface I got this, which apparently
> was executed after my configure & make & make install:
>
> Absolute install
> name=/private/var/folders/ff/m6cylxhd2csdz9fh62g3djtm0000gq/T/0compile-GFyugS/gcc-any-any/lib/libcilkrts.5.dylib
> in
> /private/var/folders/ff/m6cylxhd2csdz9fh62g3djtm0000gq/T/0compile-GFyugS/gcc-any-any/lib/libcilkrts.5.dylib;
> fixing...
> Absolute install
> name=/private/var/folders/ff/m6cylxhd2csdz9fh62g3djtm0000gq/T/0compile-GFyugS/gcc-any-any/lib/libgcc_s.1.dylib
> in
> /private/var/folders/ff/m6cylxhd2csdz9fh62g3djtm0000gq/T/0compile-GFyugS/gcc-any-any/lib/libgcc_ext.10.4.dylib;
> fixing...
> fatal error: install_name_tool: input file:
> /private/var/folders/ff/m6cylxhd2csdz9fh62g3djtm0000gq/T/0compile-GFyugS/gcc-any-any/lib/libgcc_ext.10.4.dylib
> is Mach-O dynamic shared library stub file and can't be changed

>    File
> "/Users/iljah/.cache/0install.net/implementations/sha256new_JVBP6RCR3JVWBOBYLB7HOYFDV2FXGMUPDW4GCMZY7U2KHVUFFWYA/build.py",
> line 95, in shorten_dynamic_library_install_name
>      subprocess.check_call(['install_name_tool', '-id', shortname,
> dylib_file])

> subprocess.CalledProcessError: Command '['install_name_tool', '-id',
> u'libgcc_ext.10.4.dylib',
> u'/private/var/folders/ff/m6cylxhd2csdz9fh62g3djtm0000gq/T/0compile-GFyugS/gcc-any-any/lib/libgcc_ext.10.4.dylib']'
> returned non-zero exit status 1
> Command failed with exit status 1
>
> Build failed: leaving build directory
> /var/folders/ff/m6cylxhd2csdz9fh62g3djtm0000gq/T/0compile-GFyugS for
> inspection...
>
>
> What's wrong with absolute installs and do they have to be fixed here?
> Thanks

I don't know. This is in 0compile, but it's in some OS X-only code. I
suspect it's trying to replace some full path names with relative
paths, since otherwise the binary it compiled can't be relocated.

Anders, I think you wrote this. What is it doing?


-- 
Dr Thomas Leonard        http://roscidus.com/blog/
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140