Mercury Bugs - mercury | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000262 | mercury | Bug | public | 2012-08-27 08:42 | 2013-05-22 13:42 |
Reporter | vezhlys | ||||
---|---|---|---|---|---|
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | amd64 | OS | NetBSD | OS Version | 6_RC1 |
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000262: Mercury doesn't compile on NetBSD | ||||
Description | Mercury programming language doesn't compile in NetBSD operating system. I tried to compile it using from NetBSD source package management (pkgsrc). It ended up with error: os_dep.c:503:9: error: redefinition of 'GC_data_start' os_dep.c:454:9: note: previous definition of 'GC_data_start' was here gmake[3]: *** [os_dep.o] Error 1 gmake[3]: Leaving directory `/usr/pkgsrc/lang/mercury/work/mercury-compiler-11.07/boehm_gc' gmake[2]: *** [submake] Error 2 gmake[2]: Leaving directory `/usr/pkgsrc/lang/mercury/work/mercury-compiler-11.07/boehm_gc' gmake[1]: *** [boehm_gc] Error 2 gmake[1]: Leaving directory `/usr/pkgsrc/lang/mercury/work/mercury-compiler-11.07' gmake: *** [install] Error 2 *** Error code 2 Stop. make: stopped in /usr/pkgsrc/lang/mercury *** Error code 1 Stop. make: stopped in /usr/pkgsrc/lang/mercury It seems that solution is simple. I commented two duplicate definitions GC_data_start and GC_find_limit as they were defined exactly the same a bit earlier in the same file (see lines 454-456). Mercury compiled fine then. I looked into current version of os_dep.c file and it is the same (pkgsrc retrieves mercury-compiler-11.07.tar.gz currently) because of this it should fail too. | ||||
Steps To Reproduce | Compile mercury on netbsd. | ||||
Additional Information | --- os_dep.c 2012-08-27 01:08:21.000000000 +0300 +++ os_dep.c 2012-08-27 01:09:19.000000000 +0300 @@ -500,8 +500,8 @@ # endif /* ECOS */ #if defined(NETBSD) && defined(__ELF__) - ptr_t GC_data_start = NULL; - ptr_t GC_find_limit(ptr_t, GC_bool); + //ptr_t GC_data_start = NULL; + //ptr_t GC_find_limit(ptr_t, GC_bool); extern char **environ; | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files |
Notes | |||||
|
|||||
|
|
Issue History | |||||
Date Modified | Username | Field | Change | ||
---|---|---|---|---|---|
2012-08-27 08:42 | vezhlys | New Issue | |||
2013-05-22 13:42 | juliensf | Note Added: 0000526 |