Mercury Bugs - mercury | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0000052 | mercury | Bug | public | 2008-03-13 17:07 | 2008-03-27 23:42 |
| Reporter | maclarty | ||||
|---|---|---|---|---|---|
| Assigned To | juliensf | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0000052: rebuilding a program with a mutable in a different grade causes invalid c to be generated | ||||
| Description | Compile the attached program in hlc.gc and then rebuild in asm_fast.gc and the c compiler gives an error: jupiter:/home/jupiter/maclarty/mut> mmc --make mut --grade hlc.gc Making Mercury/int3s/mut.int3 Making Mercury/ints/mut.int Making Mercury/cs/mut.c Making Mercury/os/mut.o Making mut jupiter:/home/jupiter/maclarty/mut> ./mut 1 jupiter:/home/jupiter/maclarty/mut> mmc --make mut --grade asm_fast.gc Making mut ** Error making `mut'. Mercury/os/mut_init.o(.text+0x458): In function `mercury_init': : undefined reference to `<predicate 'main'/2 mode 0>' Mercury/os/mut.o(.text+0x1a): In function `<predicate 'main'/2 mode 0>': : undefined reference to `<predicate 'io.write_int'/3 mode 0>' Mercury/os/mut.o(.text+0x22): In function `<predicate 'main'/2 mode 0>': : undefined reference to `<predicate 'io.nl'/2 mode 0>' collect2: ld returned 1 exit status | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://bugs.mercurylang.org/file_download.php?file_id=46&type=bug | ||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
|---|---|---|---|---|---|
| 2008-03-13 17:07 | New Issue | ||||
| 2008-03-13 17:07 | File Added: mut.m | ||||
| 2008-03-13 17:30 | juliensf | Note Added: 0000087 | |||
| 2008-03-14 12:08 | Note Added: 0000088 | ||||
| 2008-03-15 01:25 | juliensf | Note Added: 0000089 | |||
| 2008-03-15 01:25 | juliensf | Status | new => assigned | ||
| 2008-03-15 01:25 | juliensf | Assigned To | => juliensf | ||
| 2008-03-27 23:42 | juliensf | Status | assigned => resolved | ||
| 2008-03-27 23:42 | juliensf | Resolution | open => fixed | ||
| 2008-03-27 23:42 | juliensf | Note Added: 0000093 | |||