From mboxrd@z Thu Jan  1 00:00:00 1970
From: ng0 <ng0@pragmatique.xyz>
Subject: bug#26874: lvm2 build error
Date: Thu, 11 May 2017 14:55:15 +0000
Message-ID: <20170511145515.u45dknfjcfn74htv@abyayala>
References: <20170511073109.olno56qranqdrj2x@abyayala>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Return-path: <bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48538)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1d8pVd-0005td-G2
	for bug-guix@gnu.org; Thu, 11 May 2017 10:56:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1d8pVa-0003SH-CZ
	for bug-guix@gnu.org; Thu, 11 May 2017 10:56:05 -0400
Received: from debbugs.gnu.org ([208.118.235.43]:36212)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
	id 1d8pVa-0003SB-84
	for bug-guix@gnu.org; Thu, 11 May 2017 10:56:02 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1d8pVZ-0002xR-Po
	for bug-guix@gnu.org; Thu, 11 May 2017 10:56:01 -0400
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-Message-ID: <handler.26874.B26874.149451452511328@debbugs.gnu.org>
Content-Disposition: inline
In-Reply-To: <20170511073109.olno56qranqdrj2x@abyayala>
List-Id: Bug reports for GNU Guix <bug-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guix>,
	<mailto:bug-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-guix/>
List-Post: <mailto:bug-guix@gnu.org>
List-Help: <mailto:bug-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guix>,
	<mailto:bug-guix-request@gnu.org?subject=subscribe>
Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org
Sender: "bug-Guix" <bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org>
To: 26874@debbugs.gnu.org

ng0 transcribed 2.3K bytes:
> lvm2 from bc0e6c9312f5f755e1ccd7d8c43b58974e6f7d38 fails with this:
> 
> ../lib/liblvm-internal.a(sharedlib.o): In function `load_shared_library':
> sharedlib.c:(.text+0x130): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> /gnu/store/874zyvmg1ykihbx2j38m58srgblj7al9-eudev-3.2.1/lib/libudev.a(util.o): In function `get_group_creds':
> (.text+0x1e89): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> /gnu/store/874zyvmg1ykihbx2j38m58srgblj7al9-eudev-3.2.1/lib/libudev.a(util.o): In function `get_group_creds':
> (.text+0x1ef2): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> /gnu/store/874zyvmg1ykihbx2j38m58srgblj7al9-eudev-3.2.1/lib/libudev.a(util.o): In function `get_user_creds':
> (.text+0x1ddb): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> /gnu/store/874zyvmg1ykihbx2j38m58srgblj7al9-eudev-3.2.1/lib/libudev.a(util.o): In function `get_user_creds':
> (.text+0x1d13): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> ../libdm/ioctl/libdevmapper.a(libdm-string.o): In function `dm_size_to_string':
> libdm-string.c:(.text+0x11b6): undefined reference to `nearbyint'
> libdm-string.c:(.text+0x11cb): undefined reference to `floor'
> collect2: error: ld returned 1 exit status
> make[1]: *** [Makefile:163: lvm.static] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: Leaving directory '/tmp/guix-build-lvm2-static-2.02.171.drv-0/LVM2.2.02.171/tools'
> make: *** [make.tmpl:327: tools] Error 2
> phase `build' failed after 22.0 seconds
> builder for `/gnu/store/jhmy3pfy0mda6svfjg82zz67j2qw6nxi-lvm2-static-2.02.171.drv' failed with exit code 1
> cannot build derivation `/gnu/store/nrk426gr7p9j8lfy9mi52yxfq6fylc76-cryptsetup-static-1.7.4.drv': 1 dependencies couldn't be built
> guix system: error: build failed: build of `/gnu/store/nrk426gr7p9j8lfy9mi52yxfq6fylc76-cryptsetup-static-1.7.4.drv' failed
> -- 
> https://pragmatique.xyz
> PGP: https://people.pragmatique.xyz/ng0/
> 
> 
> 

#lvm on freenode.net says we are on our own and that the method (in general)
to statically build lvm2 is considered fragile.
The comment was that we need to make libm available, statically, as well for
lvm2.
The only person shown by git blame gnu/packages/linux.scm for lvm2-static is
Ludovic.
-- 
https://pragmatique.xyz
PGP: https://people.pragmatique.xyz/ng0/