| Anonymous | Login | Signup for a new account | 2013-05-18 22:46 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||
| 0004387 | OCaml | OCamlbuild (the tool) | public | 2007-09-13 11:36 | 2011-05-29 12:20 | |||
| Reporter | rbornat | |||||||
| Assigned To | ertai | |||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||
| Status | closed | Resolution | fixed | |||||
| Platform | OS | OS Version | ||||||
| Product Version | 3.10.0 | |||||||
| Target Version | Fixed in Version | 3.11.2+dev | ||||||
| Summary | 0004387: ocamlbuild doesn't use build directory properly | |||||||
| Description | I try to use ocamlbuild to make two versions of an OCaml program. The two commands are ocamlbuild -build-dir _buildi386 -lib unix main.native ocamlbuild -build-dir _buildppc -lib unix -ocamlopt '/usr/local/bin/ocamloptppc -ccopt "-arch ppc" -nostdlib -I /usr/local/lib/ocamlppc' main.native To make the second work, I must do ocamlbuild -clean between them. Without that, the second compilation terminates immediately without doing any work. I can't see what's being recorded to stop the compilations being independent. | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Notes |
|
|
(0004149) ertai (developer) 2007-09-17 16:32 |
I cannot reproduce the bug (at least with the last version). Can you reproduce it on a tiny example? Do you have a plugin? |
|
(0004155) rbornat (reporter) 2007-09-19 17:51 |
I don't have a plugin, so far as I know. (Actually I don't know what you are asking). Here's a little terminal log: nothing happens in the second build, and the main.native in _buildppc has the wrong architecture. After a -clean I get the right effect. [Richard-Bornats-MacBook:~/Desktop/ocamlbuild bug] richard% ls -a . .. main.ml [Richard-Bornats-MacBook:~/Desktop/ocamlbuild bug] richard% ocamlbuild -build-dir _buildi386 -lib unix main.native Finished, 4 targets (0 cached) in 00:00:01. [Richard-Bornats-MacBook:~/Desktop/ocamlbuild bug] richard% ocamlbuild -build-dir _buildppc -lib unix -ocamlopt '/usr/local/bin/ocamloptppc -ccopt "-arch ppc" -nostdlib -I /usr/local/lib/ocamlppc' main.native Finished, 0 targets (0 cached) in 00:00:00. [Richard-Bornats-MacBook:~/Desktop/ocamlbuild bug] richard% ls -Ra . .. _buildi386 _buildppc _log main.ml main.native ./_buildi386: . .. _digests main.cmi main.cmo main.cmx main.ml main.ml.depends main.native main.o ./_buildppc: . .. _digests main.native [Richard-Bornats-MacBook:~/Desktop/ocamlbuild bug] richard% cat main.ml output_string stderr "hello world" [Richard-Bornats-MacBook:~/Desktop/ocamlbuild bug] richard% lipo !* lipo -info */main.native Non-fat file: _buildi386/main.native is architecture: i386 Non-fat file: _buildppc/main.native is architecture: i386 [Richard-Bornats-MacBook:~/Desktop/ocamlbuild bug] richard% ocamlbuild -clean [Richard-Bornats-MacBook:~/Desktop/ocamlbuild bug] richard% ocamlbuild -build-dir _buildppc -lib unix -ocamlopt '/usr/local/bin/ocamloptppc -ccopt "-arch ppc" -nostdlib -I /usr/local/lib/ocamlppc' main.native Finished, 4 targets (0 cached) in 00:00:01. [Richard-Bornats-MacBook:~/Desktop/ocamlbuild bug] richard% lipo -info */main.native Non-fat file: _buildi386/main.native is architecture: i386 Non-fat file: _buildppc/main.native is architecture: ppc [Richard-Bornats-MacBook:~/Desktop/ocamlbuild bug] richard% |
|
(0004157) ertai (developer) 2007-09-20 14:19 |
Ok, I got it! Thats the `link' feature that is mess up the whole thing. As a workaround you can use the -no-links option to avoid creating these stupid links. I've also fixed in CVS by automatically put -no-links when -build-dir is set. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2007-09-13 11:36 | rbornat | New Issue | |
| 2007-09-17 16:32 | ertai | Note Added: 0004149 | |
| 2007-09-17 16:32 | ertai | Assigned To | => ertai |
| 2007-09-17 16:32 | ertai | Status | new => assigned |
| 2007-09-19 17:29 | rbornat | Note Added: 0004154 | |
| 2007-09-19 17:42 | rbornat | Note Deleted: 0004154 | |
| 2007-09-19 17:51 | rbornat | Note Added: 0004155 | |
| 2007-09-20 14:19 | ertai | Note Added: 0004157 | |
| 2008-10-06 11:40 | ertai | Category | OCaml general => OCamlbuild |
| 2009-12-07 09:58 | xclerc | Status | assigned => resolved |
| 2009-12-07 09:58 | xclerc | Fixed in Version | => 3.11.2+dev |
| 2009-12-07 09:58 | xclerc | Resolution | open => fixed |
| 2011-05-29 12:20 | xleroy | Status | resolved => closed |
| 2012-02-02 15:17 | protz | Category | OCamlbuild => OCamlbuild (the tool) |
| Copyright © 2000 - 2011 MantisBT Group |