unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26874: lvm2 build error
@ 2017-05-11  7:31 ng0
  2017-05-11 14:55 ` ng0
  2017-05-11 19:45 ` Marius Bakke
  0 siblings, 2 replies; 5+ messages in thread
From: ng0 @ 2017-05-11  7:31 UTC (permalink / raw)
  To: 26874

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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#26874: lvm2 build error
  2017-05-11  7:31 bug#26874: lvm2 build error ng0
@ 2017-05-11 14:55 ` ng0
  2017-05-11 18:10   ` Marius Bakke
  2017-05-11 19:45 ` Marius Bakke
  1 sibling, 1 reply; 5+ messages in thread
From: ng0 @ 2017-05-11 14:55 UTC (permalink / raw)
  To: 26874

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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#26874: lvm2 build error
  2017-05-11 14:55 ` ng0
@ 2017-05-11 18:10   ` Marius Bakke
  0 siblings, 0 replies; 5+ messages in thread
From: Marius Bakke @ 2017-05-11 18:10 UTC (permalink / raw)
  To: ng0, 26874

[-- Attachment #1: Type: text/plain, Size: 448 bytes --]

ng0 <ng0@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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#26874: lvm2 build error
  2017-05-11  7:31 bug#26874: lvm2 build error ng0
  2017-05-11 14:55 ` ng0
@ 2017-05-11 19:45 ` Marius Bakke
  2017-05-11 20:12   ` ng0
  1 sibling, 1 reply; 5+ messages in thread
From: Marius Bakke @ 2017-05-11 19:45 UTC (permalink / raw)
  To: ng0, 26874-done

[-- Attachment #1: Type: text/plain, Size: 475 bytes --]

ng0 <ng0@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!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#26874: lvm2 build error
  2017-05-11 19:45 ` Marius Bakke
@ 2017-05-11 20:12   ` ng0
  0 siblings, 0 replies; 5+ messages in thread
From: ng0 @ 2017-05-11 20:12 UTC (permalink / raw)
  To: 26874, mbakke, ng0

Marius Bakke transcribed 1.1K bytes:
> ng0 <ng0@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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-11 20:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-11  7:31 bug#26874: lvm2 build error ng0
2017-05-11 14:55 ` ng0
2017-05-11 18:10   ` Marius Bakke
2017-05-11 19:45 ` Marius Bakke
2017-05-11 20:12   ` ng0

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).