Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330373 - sys-fs/lvm2-2.02.70 fails to build with dmsetup-related errors
Summary: sys-fs/lvm2-2.02.70 fails to build with dmsetup-related errors
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-29 15:26 UTC by Jouni Rinne
Modified: 2011-09-05 17:39 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,151.64 KB, text/plain)
2010-07-29 15:27 UTC, Jouni Rinne
Details
emerge --info (emerge_info,3.95 KB, text/plain)
2010-07-29 15:28 UTC, Jouni Rinne
Details
build.log using -j1 (build.log,151.59 KB, text/plain)
2010-08-01 20:00 UTC, Jouni Rinne
Details
lvm2-locale-killer.patch (lvm2-locale-killer.patch,477 bytes, patch)
2010-08-04 07:13 UTC, Priit Laes (IRC: plaes)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jouni Rinne 2010-07-29 15:26:48 UTC
Lvm2-2.02.70 fails to build with dmsetup-related errors. I tried also with MAKEOPTS="-j1" and distcc disabled, without any luck.
Comment 1 Jouni Rinne 2010-07-29 15:27:48 UTC
Created attachment 240583 [details]
build.log
Comment 2 Jouni Rinne 2010-07-29 15:28:28 UTC
Created attachment 240585 [details]
emerge --info
Comment 3 Alasdair Kergon 2010-07-31 18:42:33 UTC
i686-pc-linux-gnu-gcc -O2 -march=pentium3 -pipe -O2 -march=pentium3 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -O2 -march=pentium3 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic -L./libdm -L./lib -L./daemons/dmeventd -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic -L../libdm -L../lib -L../daemons/dmeventd -L../libdm \
	      -o dmsetup dmsetup.o -ldevmapper -lm  -ludev

dmsetup.o: In function `_get_split_name':
dmsetup.c:(.text+0x2b6): undefined reference to `dm_split_lvm_name'
Comment 4 Alasdair Kergon 2010-07-31 18:49:13 UTC
My current upstream build gives just:

gcc  -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls  -g -fno-omit-frame-pointer -Wl,--export-dynamic -L../libdm -L../lib -L../daemons/dmeventd -L../libdm \
	      -o dmsetup dmsetup.o -ldevmapper -lm  -ludev

- Are output lines getting conflated or are all those options really getting duplicated?   Can you test moving the 'dmsetup.o' on the last line right to the end of it, after the -ludev ?
Comment 5 Alasdair Kergon 2010-07-31 18:53:01 UTC
(an easy way to test is to keep the failed build directory around, cd into it and cut-and-paste the failing command - see that it fails the same way - then tweak it to see if you can find a 'right' version of it.)
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-07-31 19:14:55 UTC
l33tmmx:
please repeat with MAKEOPTS=-j1 and post the build.log from that run, as I think some of the output in your log is mixed up.
Comment 7 Jouni Rinne 2010-08-01 20:00:17 UTC
Created attachment 240965 [details]
build.log using -j1
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-08-03 18:18:28 UTC
(In reply to comment #7)
> Created an attachment (id=240965) [details]
> build.log using -j1
Can you please test 2.02.70-r1 that has some as-needed fixes, and if that
solves it for you, I'll upstream that patch to agk.
Comment 9 Priit Laes (IRC: plaes) 2010-08-03 19:00:32 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Created an attachment (id=240965) [details] [details]
> > build.log using -j1
> Can you please test 2.02.70-r1 that has some as-needed fixes, and if that
> solves it for you, I'll upstream that patch to agk.
> 

Both lvm2-2.02.70-r1 and lvm2-2.02.72 still fail :(
Comment 10 Jouni Rinne 2010-08-03 19:17:42 UTC
Same here, unfortunately :( . lvm2-2.02.70-r1 fails regardless of which way I build it
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-08-04 00:13:05 UTC
(In reply to comment #10)
> Same here, unfortunately :( . lvm2-2.02.70-r1 fails regardless of which way I
> build it
If you drop that --as-needed, does it start to compile?

Comment 12 Priit Laes (IRC: plaes) 2010-08-04 06:00:39 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > Same here, unfortunately :( . lvm2-2.02.70-r1 fails regardless of which way I
> > build it
> If you drop that --as-needed, does it start to compile?

Still fails.
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-08-04 06:47:16 UTC
build.log without the --as-needed please?
Comment 14 Priit Laes (IRC: plaes) 2010-08-04 07:13:16 UTC
Created attachment 241375 [details, diff]
lvm2-locale-killer.patch

Gah... should've first to build under LC_ALL=C :S

This is locale issue.
Comment 15 Priit Laes (IRC: plaes) 2010-08-04 07:15:18 UTC
Regression was caused by this commit:

http://sources.redhat.com/git/gitweb.cgi?p=lvm2.git;a=commit;f=make.tmpl.in;h=1c78aa19ff8945362ad6635c5f064c8590853dd3
Comment 16 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-08-04 07:36:14 UTC
fun. merging into tree now.

agk: want to merge that LC_ALL=C bit upstream too?
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-09-05 17:39:47 UTC
This was already fixed upstream.