[Openmcl-devel] CCL rebuild fails for current (and old) master on OSX 10.14

Toomas Altosaar toomas.altosaar at fi.abb.com
Tue Dec 17 08:49:59 PST 2019


Not sure if this is of help but the shortening could be due to this:

(logand 4294967291 #xFF) ==> 251

On 17. Dec 2019, at 17.50, Bruce O'Neel <bruce.oneel at pckswarms.ch> wrote:


CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Hi,

There are two different problems with the assembler.

The first is the the messages of the form "4294967291 shortened to 251"

The second is the  suffix or operands invalid for `movq'


The first one is some stupid signed/unsigned problem with the expression parser which you can see with the following snippet.


as -Q -g -arch x86_64 bus1.s


bus1.s:39:4294967291 shortened to 251



where bus1.s is below and all the movq statements should be the same.


/* assemble with as -Q -g -arch x86_64 bus.s */


/* fails with assembler included with Xcode 11 -- Xcode 11.1.2 at least */


/* works on Xcode 10.3 or earler */


        node_size = 8

        dnode_size = 16

        num_subtag_bits = 8

        subtag_shift = num_subtag_bits

        ntagbits = 4

        fulltag_misc = 13

        misc_bias = fulltag_misc

        fulltag_nodeheader_0 = 5

        subtag_catch_frame = (fulltag_nodeheader_0 | (2 << ntagbits))

misc_header_offset = -fulltag_misc

misc_header_offset_neg = fulltag_misc

misc_data_offset = misc_header_offset+node_size /* first word of data    */

misc_subtag_offset = misc_header_offset       /* low byte of header   */







        .text

        .align 2

        .p2align 3


        .globl junk

junk:

        /* movq %rax,misc_data_offset(%rsi) */

/* should all be the same */

        movq %rax,-5(%rsi)

        movq %rax,-13+8(%rsi)

        movq %rax,-13+node_size(%rsi)

        movq %rax,-fulltag_misc+node_size(%rsi)

        movq %rax,misc_header_offset_neg+node_size(%rsi)

        movq %rax,-misc_header_offset_neg+node_size(%rsi)

/* fails */

        movq %rax,misc_header_offset+node_size(%rsi)

        ret


cheers

bruce

16 December 2019 19:44 "R. Matthew Emerson" <rme at acm.org> wrote:
Xcode 11 tools can't build CCL.  Something in the assembler changed.

See the comment at the bottom of https://github.com/Clozure/ccl/issues/226<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FClozure%2Fccl%2Fissues%2F226&data=02%7C01%7C%7Cb2f39fbede364a65a38908d78308cac8%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C0%7C637121946124209579&sdata=l5SvOQqNK%2BDBcuB3fH6OFxsxt4SnDyEbo8fU3MhbTw4%3D&reserved=0>

As a workaround, install an earlier Xcode (like 10.2), select it with xcode-select -s /Applications/Xcode-10.2, and then it should work to rebuild the lisp kernel.





On Dec 16, 2019, at 2:59 AM, Tim Bradshaw <tfb at tfeb.org<mailto:tfb at tfeb.org>> wrote:

I'm trying to rebuild CCL using the current master branch from github (58d4d91c), based on the v1.12-dev.5 snapshot.

I do this by running the snapshot image (with no init files), and then

 (ccl:rebuild-ccl :full t :allow-constant-redefinition t :allow-other-keys t)

This makes good noises until it tries to rebuild the kernel, when I get a lot of bad-looking things below.

This is OSX 10.14 (not 10.15!), with the most recent Xcode (at least, the most recent for 10.14), and current patches as far as I know.

I am reasonably sure that this is a change in OSX not CCL: the previous commit I built (well: the previous commit I had pulled from GH, and I am pretty sure I would have built it) was b5233ad, and if I check this out it no longer builds with exactly the same symptoms.  So it is probably a change to Xcode, but I have no idea what it might be.

--tim

Noise as it fails:

;Building lisp-kernel ...

Error: Error(s) during kernel compilation.
      gm4 -DDARWIN -DX86 -DX8664 -DTCR_IN_GPR -I../ ../x86-spjump64.s | as -arch x86_64 -g -Q -o x86-spjump64.o
      gm4 -DDARWIN -DX86 -DX8664 -DTCR_IN_GPR -I../ ../x86-spentry64.s | as -arch x86_64 -g -Q -o x86-spentry64.o
      gm4 -DDARWIN -DX86 -DX8664 -DTCR_IN_GPR -I../ ../x86-subprims64.s | as -arch x86_64 -g -Q -o x86-subprims64.o
      gm4 -DDARWIN -DX86 -DX8664 -DTCR_IN_GPR -I../ ../imports.s | as -arch x86_64 -g -Q -o imports.o
      cc -include ../platform-darwinx8664.h -c ../pmcl-kernel.c -arch x86_64 -DDARWIN -DX86 -DX8664 -DTCR_IN_GPR -DVC_REVISION="v1.12-dev.0-164-g58d4d91c" -DUSE_DTRACE \
       -g -O -Wno-format  \
       -I. -mmacosx-version-min=10.9 -o pmcl-kernel.o
      ../x86-spjump64.s:unknown:rs_org invalid, dot past value by -17616 bytes
      ../x86-spentry64.s:55:4294967283 shortened to 243
      ../x86-spentry64.s:60:4294967291 shortened to 251
      ../x86-spentry64.s:77:4294967283 shortened to 243
      ../x86-spentry64.s:78:4294967291 shortened to 251
      ../x86-spentry64.s:115:4294967283 shortened to 243
      ../x86-spentry64.s:116:4294967291 shortened to 251
      ../x86-spentry64.s:117:4294967299 shortened to 3
      ../x86-spentry64.s:120:4294967283 shortened to 243
      ../x86-spentry64.s:121:4294967291 shortened to 251
      ../x86-spentry64.s:122:4294967299 shortened to 3
      ../x86-spentry64.s:157:4294967283 shortened to 243
      ../x86-spentry64.s:158:4294967291 shortened to 251
      ../x86-spentry64.s:159:4294967299 shortened to 3
      ../x86-spentry64.s:162:4294967283 shortened to 243
      ../x86-spentry64.s:165:4294967283 shortened to 243
      ../x86-spentry64.s:166:4294967291 shortened to 251
      ../x86-spentry64.s:167:4294967299 shortened to 3
      ../x86-spentry64.s:178:4294967283 shortened to 243
      ../x86-spentry64.s:183:4294967283 shortened to 243
      cc -include ../platform-darwinx8664.h -c ../gc-common.c -arch x86_64 -DDARWIN -DX86 -DX8664 -DTCR_IN_GPR -DVC_REVISION="v1.12-dev.0-164-g58d4d91c" -DUSE_DTRACE \
       -g -O -Wno-format  \
       -I. -mmacosx-version-min=10.9 -o gc-common.o
      ../x86-spentry64.s:479:4294967291 shortened to 251
      ../x86-spentry64.s:484:4294967291 shortened to 251
      ../x86-spentry64.s:487:4294967291 shortened to 251
      ../x86-spentry64.s:490:4294967291 shortened to 251
      ../x86-spentry64.s:492:4294967283 shortened to 243
      ../x86-spentry64.s:493:4294967291 shortened to 251
      ../x86-spentry64.s:498:4294967283 shortened to 243
      ../x86-spentry64.s:502:4294967291 shortened to 251
      ../x86-spentry64.s:504:4294967283 shortened to 243
      ../x86-spentry64.s:505:4294967291 shortened to 251
      ../x86-spentry64.s:508:4294967291 shortened to 251
      ../x86-spentry64.s:512:4294967291 shortened to 251
      ../x86-spentry64.s:517:4294967291 shortened to 251
      ../x86-spentry64.s:523:4294967291 shortened to 251
      ../x86-spentry64.s:529:4294967291 shortened to 251
      ../x86-spentry64.s:537:4294967291 shortened to 251
      ../x86-spentry64.s:543:4294967291 shortened to 251
      ../x86-spentry64.s:549:4294967291 shortened to 251
      ../x86-spentry64.s:556:4294967291 shortened to 251
      ../x86-spentry64.s:563:4294967291 shortened to 251
      ../x86-spentry64.s:569:4294967291 shortened to 251
      ../x86-spentry64.s:574:4294967291 shortened to 251
      ../x86-spentry64.s:594:4294967283 shortened to 243
      ../x86-spentry64.s:614:4294967283 shortened to 243
      ../x86-spentry64.s:633:4294967283 shortened to 243
      ../x86-spentry64.s:638:4294967283 shortened to 243
      ../x86-spentry64.s:929:4294967291 shortened to 251
      ../x86-spentry64.s:943:4294967283 shortened to 243
      ../x86-spentry64.s:946:4294967283 shortened to 243
      ../x86-spentry64.s:951:4294967291 shortened to 251
      ../x86-spentry64.s:955:4294967291 shortened to 251
      ../x86-spentry64.s:956:4294967299 shortened to 3
      ../x86-spentry64.s:958:4294967291 shortened to 251
      ../x86-spentry64.s:965:4294967291 shortened to 251
      ../x86-spentry64.s:976:4294967283 shortened to 243
      ../x86-spentry64.s:979:4294967283 shortened to 243
      ../x86-spentry64.s:981:4294967291 shortened to 251
      ../x86-spentry64.s:983:4294967291 shortened to 251
      ../x86-spentry64.s:995:4294967283 shortened to 243
      ../x86-spentry64.s:998:4294967291 shortened to 251
      ../x86-spentry64.s:999:4294967291 shortened to 251
      ../x86-spentry64.s:1002:4294967283 shortened to 243
      ../x86-spentry64.s:1009:4294967283 shortened to 243
      ../x86-spentry64.s:1012:4294967291 shortened to 251
      ../x86-spentry64.s:1013:4294967291 shortened to 251
      ../x86-spentry64.s:1026:4294967291 shortened to 251
      ../x86-spentry64.s:1035:4294967291 shortened to 251
      ../x86-spentry64.s:1044:4294967291 shortened to 251
      ../x86-spentry64.s:1053:4294967291 shortened to 251
      ../x86-spentry64.s:1056:4294967291 shortened to 251
      ../x86-spentry64.s:1064:4294967291 shortened to 251
      ../x86-spentry64.s:1077:4294967291 shortened to 251
      ../x86-spentry64.s:1086:4294967291 shortened to 251
      ../x86-spentry64.s:1095:4294967291 shortened to 251
      ../x86-spentry64.s:1108:4294967291 shortened to 251
      ../x86-spentry64.s:1116:4294967291 shortened to 251
      ../x86-spentry64.s:1184:suffix or operands invalid for `movq'
      ../x86-spentry64.s:1184:4294967291 shortened to 251
      ../x86-spentry64.s:1190:suffix or operands invalid for `movq'
      ../x86-spentry64.s:1190:4294967291 shortened to 251
      ../x86-spentry64.s:1205:suffix or operands invalid for `movq'
      ../x86-spentry64.s:1205:4294967291 shortened to 251
      ../x86-spentry64.s:1211:suffix or operands invalid for `movq'
      ../x86-spentry64.s:1211:4294967291 shortened to 251
      ../x86-spentry64.s:1221:4294967291 shortened to 251
      ../x86-spentry64.s:1334:4294967291 shortened to 251
      cc -include ../platform-darwinx8664.h -c ../x86-gc.c -arch x86_64 -DDARWIN -DX86 -DX8664 -DTCR_IN_GPR -DVC_REVISION="v1.12-dev.0-164-g58d4d91c" -DUSE_DTRACE \
       -g -O -Wno-format  \
       -I. -mmacosx-version-min=10.9 -o x86-gc.o
      cc -include ../platform-darwinx8664.h -c ../bits.c -arch x86_64 -DDARWIN -DX86 -DX8664 -DTCR_IN_GPR -DVC_REVISION="v1.12-dev.0-164-g58d4d91c" -DUSE_DTRACE \
       -g -O -Wno-format  \
       -I. -mmacosx-version-min=10.9 -o bits.o
      ../x86-spentry64.s:1465:4294967291 shortened to 251
      ../x86-spentry64.s:1657:4294967293 shortened to 253
      ../x86-spentry64.s:1670:4294967293 shortened to 253
      ../x86-spentry64.s:1689:4294967293 shortened to 253
      ../x86-spentry64.s:1710:4294967293 shortened to 253
      ../x86-spentry64.s:1730:4294967291 shortened to 251
      ../x86-spentry64.s:1803:4294967293 shortened to 253
      ../x86-spentry64.s:1843:4294967291 shortened to 251
      ../x86-spentry64.s:1847:4294967291 shortened to 251
      ../x86-spentry64.s:1885:4294967291 shortened to 251
      ../x86-spentry64.s:1889:4294967291 shortened to 251
      ../x86-spentry64.s:2093:4294967293 shortened to 253
      ../x86-spentry64.s:2099:4294967293 shortened to 253
      ../x86-spentry64.s:2100:4294967293 shortened to 253
      ../x86-spentry64.s:2114:4294967293 shortened to 253
      ../x86-spentry64.s:2135:4294967293 shortened to 253
      ../x86-spentry64.s:2137:4294967293 shortened to 253
      ../x86-spentry64.s:2265:4294967283 shortened to 243
      ../x86-spentry64.s:2268:4294967291 shortened to 251
      ../x86-spentry64.s:2331:4294967293 shortened to 253
      ../x86-spentry64.s:2349:4294967293 shortened to 253
      ../x86-spentry64.s:2367:4294967293 shortened to 253
      ../x86-spentry64.s:2410:4294967293 shortened to 253
      ../x86-spentry64.s:2420:4294967289 shortened to 249
      ../x86-spentry64.s:2421:4294967289 shortened to 249
      ../x86-spentry64.s:2422:4294967283 shortened to 243
      ../x86-spentry64.s:2469:4294967291 shortened to 251
      ../x86-spentry64.s:2529:4294967293 shortened to 253
      ../x86-spentry64.s:2543:4294967289 shortened to 249
      ../x86-spentry64.s:2544:4294967289 shortened to 249
      ../x86-spentry64.s:2546:4294967283 shortened to 243
      ../x86-spentry64.s:2585:4294967293 shortened to 253
      ../x86-spentry64.s:2633:4294967293 shortened to 253
      ../x86-spentry64.s:2841:4294967291 shortened to 251
      ../x86-spentry64.s:2871:4294967291 shortened to 251
      ../x86-spentry64.s:2906:4294967293 shortened to 253
      ../x86-spentry64.s:2915:4294967293 shortened to 253
      ../x86-spentry64.s:2939:4294967291 shortened to 251
      ../x86-spentry64.s:2995:4294967283 shortened to 243
      ../x86-spentry64.s:3034:4294967293 shortened to 253
      ../x86-spentry64.s:3051:4294967293 shortened to 253
      ../x86-spentry64.s:3067:4294967293 shortened to 253
      ../x86-spentry64.s:3102:4294967293 shortened to 253
      ../x86-spentry64.s:3106:4294967293 shortened to 253
      ../x86-spentry64.s:3133:4294967283 shortened to 243
      ../x86-spentry64.s:3141:4294967293 shortened to 253
      ../x86-spentry64.s:3143:4294967293 shortened to 253
      ../x86-spentry64.s:3147:4294967291 shortened to 251
      ../x86-spentry64.s:3218:4294967293 shortened to 253
      ../x86-spentry64.s:3249:4294967283 shortened to 243
      ../x86-spentry64.s:3252:4294967283 shortened to 243
      ../x86-spentry64.s:3254:4294967287 shortened to 247
      ../x86-spentry64.s:3467:4294967283 shortened to 243
      ../x86-spentry64.s:3470:4294967283 shortened to 243
      ../x86-spentry64.s:3475:4294967291 shortened to 251
      ../x86-spentry64.s:3479:4294967291 shortened to 251
      ../x86-spentry64.s:3480:4294967299 shortened to 3
      ../x86-spentry64.s:3495:4294967283 shortened to 243
      ../x86-spentry64.s:3498:4294967283 shortened to 243
      ../x86-spentry64.s:3500:4294967291 shortened to 251
      ../x86-spentry64.s:3520:4294967283 shortened to 243
      ../x86-spentry64.s:3521:4294967291 shortened to 251
      ../x86-spentry64.s:3525:4294967283 shortened to 243
      ../x86-spentry64.s:3526:4294967291 shortened to 251
      ../x86-spentry64.s:3740:4294967291 shortened to 251
      ../x86-spentry64.s:3755:4294967299 shortened to 3
      ../x86-spentry64.s:3776:4294967307 shortened to 11
      ../x86-spentry64.s:3780:4294967315 shortened to 19
      ../x86-spentry64.s:3791:4294967323 shortened to 27
      ../x86-spentry64.s:3803:4294967331 shortened to 35
      ../x86-spentry64.s:3815:4294967339 shortened to 43
      ../x86-spentry64.s:3827:4294967347 shortened to 51
      ../x86-spentry64.s:3839:4294967355 shortened to 59
      cc -include ../platform-darwinx8664.h -c ../x86-exceptions.c -arch x86_64 -DDARWIN -DX86 -DX8664 -DTCR_IN_GPR -DVC_REVISION="v1.12-dev.0-164-g58d4d91c" -DUSE_DTRACE \
       -g -O -Wno-format  \
       -I. -mmacosx-version-min=10.9 -o x86-exceptions.o
      ../x86-spentry64.s:3851:4294967363 shortened to 67
      ../x86-spentry64.s:3865:4294967283 shortened to 243
      ../x86-spentry64.s:3866:4294967283 shortened to 243
      ../x86-spentry64.s:3873:4294967291 shortened to 251
      ../x86-spentry64.s:3874:4294967291 shortened to 251
      ../x86-spentry64.s:3887:4294967291 shortened to 251
      ../x86-spentry64.s:3888:4294967291 shortened to 251
      ../x86-spentry64.s:3901:4294967283 shortened to 243
      ../x86-spentry64.s:3902:4294967283 shortened to 243
      ../x86-spentry64.s:3906:4294967291 shortened to 251
      ../x86-spentry64.s:3907:4294967291 shortened to 251
      ../x86-spentry64.s:3918:4294967291 shortened to 251
      ../x86-spentry64.s:3919:4294967291 shortened to 251
      ../x86-spentry64.s:3921:4294967295 shortened to 255
      ../x86-spentry64.s:3922:4294967295 shortened to 255
      ../x86-spentry64.s:3945:4294967283 shortened to 243
      ../x86-spentry64.s:3955:4294967283 shortened to 243
      ../x86-spentry64.s:3958:4294967291 shortened to 251
      ../x86-spentry64.s:3971:4294967293 shortened to 253
      ../x86-spentry64.s:3976:4294967293 shortened to 253
      ../x86-spentry64.s:3980:4294967379 shortened to 83
      ../x86-spentry64.s:3993:4294967283 shortened to 243
      ../x86-spentry64.s:4006:4294967387 shortened to 91
      ../x86-spentry64.s:4017:4294967293 shortened to 253
      ../x86-spentry64.s:4044:4294967293 shortened to 253
      ../x86-spentry64.s:4074:4294967411 shortened to 115
      ../x86-spentry64.s:4085:4294967419 shortened to 123
      ../x86-spentry64.s:4097:4294967427 shortened to 131
      ../x86-spentry64.s:4107:4294967443 shortened to 147
      ../x86-spentry64.s:4118:4294967451 shortened to 155
      ../x86-spentry64.s:4123:4294967283 shortened to 243
      ../x86-spentry64.s:4130:4294967467 shortened to 171
      ../x86-spentry64.s:4177:4294967435 shortened to 139
      ../x86-spentry64.s:4181:4294967283 shortened to 243
      ../x86-spentry64.s:4188:4294967459 shortened to 163
      ../x86-spentry64.s:4221:4294967291 shortened to 251
      ../x86-spentry64.s:4349:4294967283 shortened to 243
      ../x86-spentry64.s:4350:4294967291 shortened to 251
      ../x86-spentry64.s:4432:4294967291 shortened to 251
      ../x86-spentry64.s:4449:4294967291 shortened to 251
      ../x86-spentry64.s:4543:4294967283 shortened to 243
      ../x86-spentry64.s:4544:4294967291 shortened to 251
      ../x86-spentry64.s:4927:4294967283 shortened to 243
      ../x86-spentry64.s:4930:4294967291 shortened to 251
      ../x86-spentry64.s:4943:4294967283 shortened to 243
      ../x86-spentry64.s:4965:4294967283 shortened to 243
      ../x86-spentry64.s:4968:4294967291 shortened to 251
      ../x86-spentry64.s:4988:4294967283 shortened to 243
      ../x86-spentry64.s:5010:4294967283 shortened to 243
      ../x86-spentry64.s:5013:4294967291 shortened to 251
      ../x86-spentry64.s:5026:4294967283 shortened to 243
      ../x86-spentry64.s:5048:4294967283 shortened to 243
      ../x86-spentry64.s:5051:4294967291 shortened to 251
      ../x86-spentry64.s:5071:4294967283 shortened to 243
      ../x86-spentry64.s:5099:4294967283 shortened to 243
      ../x86-spentry64.s:5137:4294967291 shortened to 251
      ../x86-spentry64.s:5171:4294967291 shortened to 251
      ../x86-spentry64.s:5184:4294967291 shortened to 251
      ../x86-spentry64.s:5195:4294967291 shortened to 251
      ../x86-spentry64.s:5202:4294967291 shortened to 251
      ../x86-spentry64.s:5207:4294967323 shortened to 27
      ../x86-spentry64.s:5215:4294967283 shortened to 243
      ../x86-spentry64.s:5218:4294967275 shortened to 235
      ../x86-spentry64.s:5220:4294967267 shortened to 227
      ../x86-spentry64.s:5223:4294967323 shortened to 27
      ../x86-spentry64.s:5229:4294967283 shortened to 243
      ../x86-spentry64.s:5231:4294967275 shortened to 235
      ../x86-spentry64.s:5234:4294967283 shortened to 243
      make: *** [x86-spentry64.o] Error 1
      make: *** Waiting for unfinished jobs....

While executing: REBUILD-CCL, in process listener(1).
Type :GO to continue, :POP to abort, :R for a list of available restarts.
If continued: Skip evaluation of (progn (ccl:rebuild-ccl :full t :allow-constant-redefinition t :allow-other-keys t) (quit))
Type :? for other options.
1 >



_______________________________________________
Openmcl-devel mailing list
Openmcl-devel at clozure.com<mailto:Openmcl-devel at clozure.com>
https://lists.clozure.com/mailman/listinfo/openmcl-devel
<>

_______________________________________________
Openmcl-devel mailing list
Openmcl-devel at clozure.com
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.clozure.com%2Fmailman%2Flistinfo%2Fopenmcl-devel&data=02%7C01%7C%7Cb2f39fbede364a65a38908d78308cac8%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C0%7C637121946124239559&sdata=kBSXRbkUPOKwPY318epDMg%2F1IdKEAuAF1SbnIf0AD0c%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20191217/04db0819/attachment.htm>


More information about the Openmcl-devel mailing list