GNU bug report logs - #26874
lvm2 build error

Previous Next

Package: guix;

Reported by: ng0 <ng0 <at> pragmatique.xyz>

Date: Thu, 11 May 2017 07:32:02 UTC

Severity: normal

Done: Marius Bakke <mbakke <at> fastmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26874 in the body.
You can then email your comments to 26874 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#26874; Package guix. (Thu, 11 May 2017 07:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to ng0 <ng0 <at> pragmatique.xyz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 11 May 2017 07:32:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: ng0 <ng0 <at> pragmatique.xyz>
To: bug-guix <at> gnu.org
Subject: lvm2 build error
Date: Thu, 11 May 2017 07:31:09 +0000
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/




Information forwarded to bug-guix <at> gnu.org:
bug#26874; Package guix. (Thu, 11 May 2017 14:56:01 GMT) Full text and rfc822 format available.

Message #8 received at 26874 <at> debbugs.gnu.org (full text, mbox):

From: ng0 <ng0 <at> pragmatique.xyz>
To: 26874 <at> debbugs.gnu.org
Subject: Re: bug#26874: lvm2 build error
Date: Thu, 11 May 2017 14:55:15 +0000
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/




Information forwarded to bug-guix <at> gnu.org:
bug#26874; Package guix. (Thu, 11 May 2017 18:11:02 GMT) Full text and rfc822 format available.

Message #11 received at 26874 <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: ng0 <ng0 <at> pragmatique.xyz>, 26874 <at> debbugs.gnu.org
Subject: Re: bug#26874: lvm2 build error
Date: Thu, 11 May 2017 20:10:00 +0200
[Message part 1 (text/plain, inline)]
ng0 <ng0 <at> pragmatique.xyz> writes:

> #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.

I'm afraid I'm to blame for this (try git log --grep lvm2-static) :(

I'll try to sort out what happened.
[signature.asc (application/pgp-signature, inline)]

Reply sent to Marius Bakke <mbakke <at> fastmail.com>:
You have taken responsibility. (Thu, 11 May 2017 19:46:01 GMT) Full text and rfc822 format available.

Notification sent to ng0 <ng0 <at> pragmatique.xyz>:
bug acknowledged by developer. (Thu, 11 May 2017 19:46:01 GMT) Full text and rfc822 format available.

Message #16 received at 26874-done <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: ng0 <ng0 <at> pragmatique.xyz>, 26874-done <at> debbugs.gnu.org
Subject: Re: bug#26874: lvm2 build error
Date: Thu, 11 May 2017 21:45:52 +0200
[Message part 1 (text/plain, inline)]
ng0 <ng0 <at> pragmatique.xyz> writes:

> lvm2 from bc0e6c9312f5f755e1ccd7d8c43b58974e6f7d38 fails with this:

[...]

> ../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

I've pushed a fix for this in 2d4deb5d2107b2844b1f663fd54702bbd3c8b985.

Sorry for the inconvenience!
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#26874; Package guix. (Thu, 11 May 2017 20:13:02 GMT) Full text and rfc822 format available.

Message #19 received at 26874 <at> debbugs.gnu.org (full text, mbox):

From: ng0 <ng0 <at> pragmatique.xyz>
To: 26874 <at> debbugs.gnu.org, mbakke <at> fastmail.com, ng0 <at> pragmatique.xyz
Subject: Re: bug#26874: lvm2 build error
Date: Thu, 11 May 2017 20:12:07 +0000
Marius Bakke transcribed 1.1K bytes:
> ng0 <ng0 <at> pragmatique.xyz> writes:
> 
> > lvm2 from bc0e6c9312f5f755e1ccd7d8c43b58974e6f7d38 fails with this:
> 
> [...]
> 
> > ../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
> 
> I've pushed a fix for this in 2d4deb5d2107b2844b1f663fd54702bbd3c8b985.
> 
> Sorry for the inconvenience!

Many thanks!

-- 
https://pragmatique.xyz
PGP: https://people.pragmatique.xyz/ng0/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 09 Jun 2017 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 320 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.