View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0000203 | mercury | Bug | public | 2011-07-11 14:22 | 2013-03-18 15:23 | ||||
Reporter | juliensf | ||||||||
Assigned To | wangp | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000203: Problem with DESTDIR and Darwin | ||||||||
Description | Reported by Jeremy Huddleston (jeremyhu@macports.org) on mercury-bugs: -------- And one more bug to report... mercury-11.01 fails to make install the first time. This looks like some bad logic for making boehm_gc a second time during the make install. cp ./libatomic_ops-install/lib/libatomic_ops.a gc.a cp: ./libatomic_ops-install/lib/libatomic_ops.a: No such file or directory gmake[3]: *** [gc.a] Error 1 gmake[3]: Leaving directory `/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_mercury/mercury/work/mercury-11.01/install_grade_dir.hlc.gc/boehm_gc' gmake[2]: *** [submake] Error 2 gmake[2]: Leaving directory `/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_mercury/mercury/work/mercury-11.01/install_grade_dir.hlc.gc/boehm_gc' To clean up from failed install, remove /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_mercury/mercury/work/mercury-11.01/install_grade_dir.hlc.gc gmake[1]: *** [install_grades] Error 1 gmake[1]: Leaving directory `/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_mercury/mercury/work/mercury-11.01' make: *** [install] Error 2 make: Leaving directory `/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_mercury/mercury/work/mercury-11.01' shell command " cd "/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_mercury/mercury/work/mercury-11.01" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_mercury/mercury/work/destroot " returned error 2 Here's the full log, but I'm just doing a fairly standard ./configure && make && make install DESTDIR=/path/to/stage | ||||||||
Tags | No tags attached. | ||||||||
Attached Files |
|
Notes | |
jeremyhu (reporter) 2011-07-12 02:54 |
Adding a note in hopes that it will add me to a CC list, since I don't see any CC UI (I'm not familiar with Mantis). |
pbone (administrator) 2011-07-28 12:36 |
I can confirm this. |
pbone (administrator) 2011-07-28 13:01 |
DESTDIR was only ever made to work when building Mercury for a single grade, that's all I needed when I implemented it. It _should_ work for builds with more than one grade but I never implemented that. What this means is that this problem probably isn't Darwin specific, It also means that the solution is going to be more difficult since it's now about implementing an incomplete feature rather than fixing a bug. Thanks. |
ony (reporter) 2012-07-06 07:24 |
That 0001-Fix-for-bug-203-DESTDIR-brokes-installation.patch is based on rotd-2012-07-01 |
pbone (administrator) 2012-07-08 11:01 |
Thanks for the patch, I promise to look at it, but I don't have a lot of time at the moment. |
pbone (administrator) 2013-01-09 00:25 |
Hi ony. Before reviewing your patches I want to make check some things with your experience with this bug. I want to ask about how you're using DESTDIR: Are you giving a value for DESTDIR during make install? Are you using more than one grade? (how is configure invoked?). Thanks. |
ony (reporter) 2013-01-09 04:17 |
Configure was invoked as: ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --docdir=/usr/share/doc/mercury-12.08_beta20120813 --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --enable-fast-install --libdir=/usr/lib64 --disable-most-grades Library grades was intended to be built: asm_fast.gc, asm_fast.gc.debug, asm_fast.gc.decldebug, hlc.gc After succesful reaching "make -j9". There was invoked: make -j9 -j1 DESTDIR=/var/tmp/paludis/build/dev-lang-mercury-12.08_beta20120813/image/ install That caused: /usr/bin/install -c -m 644 libatomic_ops.a '/var/tmp/paludis/build/dev-lang-mercury-12.08_beta20120813/image//var/tmp/paludis/build/dev-lang-mercury-12.08_beta20120813/work/mercury-compiler-12.08-beta-2012-08-13/install_grade_dir.asm_fast.gc.debug/boehm_gc/libatomic_ops-install/lib' And as result: cp ./libatomic_ops-install/lib/libatomic_ops.a gc.a cp: cannot stat './libatomic_ops-install/lib/libatomic_ops.a': No such file or directory make[3]: *** [gc.a] Error 1 make[3]: Leaving directory `/var/tmp/paludis/build/dev-lang-mercury-12.08_beta20120813/work/mercury-compiler-12.08-beta-2012-08-13/install_grade_dir.asm_fast.gc.debug/boehm_gc' make[2]: *** [submake] Error 2 make[2]: Leaving directory `/var/tmp/paludis/build/dev-lang-mercury-12.08_beta20120813/work/mercury-compiler-12.08-beta-2012-08-13/install_grade_dir.asm_fast.gc.debug/boehm_gc' To clean up from failed install, remove /var/tmp/paludis/build/dev-lang-mercury-12.08_beta20120813/work/mercury-compiler-12.08-beta-2012-08-13/install_grade_dir.asm_fast.gc.debug make[1]: *** [install_grades] Error 1 make[1]: Leaving directory `/var/tmp/paludis/build/dev-lang-mercury-12.08_beta20120813/work/mercury-compiler-12.08-beta-2012-08-13' make: *** [install] Error 2 |
wangp (developer) 2013-03-18 15:23 |
I applied a patch based on ony's. Thanks. |
Issue History | |||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-07-11 14:22 | juliensf | New Issue | |
2011-07-11 14:24 | juliensf | File Added: main.log.gz | |
2011-07-12 02:54 | jeremyhu | Note Added: 0000337 | |
2011-07-28 12:36 | pbone | Note Added: 0000340 | |
2011-07-28 12:36 | pbone | Assigned To | => pbone |
2011-07-28 12:36 | pbone | Reproducibility | have not tried => always |
2011-07-28 12:36 | pbone | Status | new => assigned |
2011-07-28 13:01 | pbone | Note Added: 0000341 | |
2012-07-06 07:22 | ony | File Added: 0001-Fix-for-bug-203-DESTDIR-brokes-installation.patch | |
2012-07-06 07:24 | ony | Note Added: 0000472 | |
2012-07-08 11:01 | pbone | Note Added: 0000475 | |
2013-01-09 00:25 | pbone | Note Added: 0000494 | |
2013-01-09 04:17 | ony | Note Added: 0000495 | |
2013-03-18 15:23 | wangp | Note Added: 0000500 | |
2013-03-18 15:23 | wangp | Status | assigned => resolved |
2013-03-18 15:23 | wangp | Resolution | open => fixed |
2013-03-18 15:23 | wangp | Assigned To | pbone => wangp |