Mercury Bugs - mercury | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000321 | mercury | Bug | public | 2014-02-20 20:41 | 2014-09-05 15:47 |
Reporter | pbone | ||||
---|---|---|---|---|---|
Assigned To | pbone | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | unable to reproduce | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000321: Exception handling and intermodule optimisation create linker errors | ||||
Description | The C linker gives me errors such as: paul@oxygen> mmc --rebuild test -O2 --intermodule-optimization Making Mercury/int3s/test.int3 Making Mercury/ints/test.int Making Mercury/opts/test.opt Making Mercury/cs/test.c Making Mercury/os/test.o Making test ** Error making `test'. Mercury/os/test.o: In function `<predicate 'test.try_divide'/3 mode 0>': test.c:(.text+0xe6): undefined reference to `<predicate 'exception.wrap_success_or_failure'/2 mode 0>' collect2: error: ld returned 1 exit status When I use at least -O2 and --intermodule-optimisation and my module includes exception handling code (see attached). I'm using Mercury 14.01, this bug seems to be recent, it didn't occur in 13.05. I haven't checked versions in between. | ||||
Steps To Reproduce | Mercury 14.01 in the low-level C grade, mmc --rebuild test -O2 --intermodule-optimization | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | bug321.m (855) 2014-02-20 20:43 https://bugs.mercurylang.org/file_download.php?file_id=206&type=bug |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
Issue History | |||||
Date Modified | Username | Field | Change | ||
---|---|---|---|---|---|
2014-02-20 20:41 | pbone | New Issue | |||
2014-02-20 20:41 | pbone | Status | new => assigned | ||
2014-02-20 20:41 | pbone | Assigned To | => pbone | ||
2014-02-20 20:43 | pbone | File Added: bug321.m | |||
2014-04-04 13:35 | juliensf | Note Added: 0000658 | |||
2014-04-04 16:35 | pbone | Note Added: 0000659 | |||
2014-04-24 14:26 | pbone | Note Added: 0000663 | |||
2014-04-24 14:26 | pbone | Status | assigned => confirmed | ||
2014-08-12 15:56 | pbone | Note Added: 0000758 | |||
2014-09-05 15:47 | pbone | Note Added: 0000784 | |||
2014-09-05 15:47 | pbone | Status | confirmed => closed | ||
2014-09-05 15:47 | pbone | Resolution | open => unable to reproduce |