View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0000524 | mercury | Bug | public | 2020-10-14 20:21 | 2020-10-16 07:16 | ||||
Reporter | dirkz | ||||||||
Assigned To | zs | ||||||||
Priority | normal | Severity | block | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | Mac | OS | macOS Catalina | OS Version | 10.15.7 | ||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000524: Installing rotd-2020-10-13 aborts with error | ||||||||
Description | Installing rotd-2020-10-13 aborts with this error message: backend_libs.bytecode_data.c:256:14: error: "Weird-endian architecture" #error "Weird-endian architecture" ^ backend_libs.bytecode_data.c:339:14: error: "Weird-endian architecture" #error "Weird-endian architecture" ^ backend_libs.bytecode_data.c:457:14: error: "Weird-endian architecture" #error "Weird-endian architecture" ^ 3 errors generated. make[2]: *** [backend_libs.bytecode_data.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [compiler] Error 2 make: *** [all] Error 2 | ||||||||
Steps To Reproduce | sh configure --disable-most-grades make PARALLEL=-j8 | ||||||||
Additional Information | $ gcc -v Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 12.0.0 (clang-1200.0.32.2) Target: x86_64-apple-darwin19.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin $ llvm-gcc -v Apple clang version 12.0.0 (clang-1200.0.32.2) Target: x86_64-apple-darwin19.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin $ clang -v Apple clang version 12.0.0 (clang-1200.0.32.2) Target: x86_64-apple-darwin19.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin | ||||||||
Tags | No tags attached. | ||||||||
Attached Files |
|
Notes | |
juliensf (administrator) 2020-10-14 21:07 |
Hi Dirk, The above will only occur if the configure script cannot determine the endianness of the system. Somewhere amongst the output of configure it should say something like: checking whether we can use unboxed 64-bit integers... yes checking whether architecture is big-endian... no checking whether architecture is little-endian... yes checking whether we can use files as locks... yes Do both the endianness checks return "no" on your system? If so, could you please check in config.log and see why those checks are failing? (Or post that file into Mantis and we'll take a look.) |
juliensf (administrator) 2020-10-14 21:31 |
BTW, I think the issue here is that Xcode 12 sets -Werror=implicit-function-declaration and the configure script contains several tests (including the ones for testing endianness) that do implicitly declare functions. |
dirkz (reporter) 2020-10-14 22:45 |
Hi Julien, both endianness checks return "no": checking whether we can use unboxed 64-bit integers... yes checking whether architecture is big-endian... no checking whether architecture is little-endian... no checking whether we can use files as locks... yes config.log (attached) states: configure:9044: checking whether architecture is big-endian configure:9071: gcc -o conftest -O -Iruntime -Iruntime/machdeps -Itrace conftest.c >&5 conftest.c:146:21: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration] exit(0); ^ conftest.c:146:21: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' 1 error generated. configure:9071: $? = 1 configure: program exited with status 1 |
zs (developer) 2020-10-14 22:55 |
Julien has already committed a diff to #include stdlib.h. It should show up in the next ROTD, or you could check it out of github, and try it out. |
juliensf (administrator) 2020-10-14 22:56 |
Hi Dirk, Thanks for that. The issue is the changed settings for Xcode 12; commit 00d5ede should fix the problem. (It will be included in the next rotd.) |
dirkz (reporter) 2020-10-15 03:22 |
Hi Julien, Hi Zoltan, rotd-2020-10-14 builds from source successfully now. Thank you for fixing this. |
zs (developer) 2020-10-16 07:16 |
Fix committed 2020 oct 13. |
Issue History | |||
Date Modified | Username | Field | Change |
---|---|---|---|
2020-10-14 20:21 | dirkz | New Issue | |
2020-10-14 21:07 | juliensf | Note Added: 0001113 | |
2020-10-14 21:31 | juliensf | Note Added: 0001114 | |
2020-10-14 22:45 | dirkz | File Added: config.log | |
2020-10-14 22:45 | dirkz | Note Added: 0001115 | |
2020-10-14 22:55 | zs | Note Added: 0001116 | |
2020-10-14 22:56 | juliensf | Note Added: 0001117 | |
2020-10-15 03:22 | dirkz | Note Added: 0001118 | |
2020-10-16 07:16 | zs | Assigned To | => zs |
2020-10-16 07:16 | zs | Status | new => resolved |
2020-10-16 07:16 | zs | Resolution | open => fixed |
2020-10-16 07:16 | zs | Note Added: 0001122 |