<p></p>
<p>Just trying to build the OSVM in my WSL again, which had already worked well in the past.<br>
I have followed the instructions from <code>building/linux64x64/HowToBuild</code>: cleared my git working copy, installed all mentioned apt packages, cd'ed into <code>building/linux64x64/squeak.cog.spur/build</code>, and executed <code>./mvm -f</code>.</p>
<p>However, the build process fails reproducibly with the following output:</p>
<pre><code>/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/mkNamedPrims.sh /mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/building/linux64x64/squeak.cog.spur/build/plugins.int >/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/building/linux64x64/squeak.cog.spur/build/sqNamedPrims.h
clang -Wall  -g -O2 -DNDEBUG -DDEBUGVM=0 -msse2 -DCOGMTVM=0 -pthread -DLSB_FIRST=1 -m64 -Wno-missing-braces -Wno-unknown-pragmas -Wno-unused-value -Wno-unused-label -Wno-unused-function -Wno-unused-variable  -DHAVE_CONFIG_H  -DSQUEAK_BUILTIN_PLUGIN -I/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/building/linux64x64/squeak.cog.spur/build -I/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/building/linux64x64/squeak.cog.spur/build -I/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/platforms/unix/vm -I/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/platforms/Cross/vm -I/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/src/spur64.cog -I/usr/local/include -I/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/platforms/Cross/vm -I/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/platforms/unix/vm -I/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/src/spur64.cog -I/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/platforms/Cross/plugins/FilePlugin -I/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/platforms/unix/plugins/B3DAcceleratorPlugin -m64 -Wno-missing-braces -Wno-unknown-pragmas -Wno-unused-value -Wno-unused-label -Wno-unused-function -Wno-unused-variable   -c -o sqNamedPrims.o /mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/platforms/Cross/vm/sqNamedPrims.c
In file included from /mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/platforms/Cross/vm/sqNamedPrims.c:23:
/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/building/linux64x64/squeak.cog.spur/build/sqNamedPrims.h:75:28: error: expected ';' after top level declarator
VMProfileLinuxSupportPlugin
                           ^
                           ;
/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/building/linux64x64/squeak.cog.spur/build/sqNamedPrims.h:153:1: error: expected '}'
_exports,
^
/mnt/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/building/linux64x64/squeak.cog.spur/build/sqNamedPrims.h:78:29: note: to match this '{'
sqExport *pluginExports[] = {
                            ^
2 errors generated.
make[1]: *** [Makefile:239: sqNamedPrims.o] Error 1
make: *** [Makefile:413: vm/vm.a] Error 2
</code></pre>
<p>A look into <code>building/linux64x64/squeak.cog.spur/build/sqNamedPrims.h</code> reveals: As far as I can tell, there is a superfluous - bad - linebreak in the mid of the identifier <code>VMProfileLinuxSupportPlugin_exports</code> (line 60ff.):</p>
<pre><code>extern sqExport 
StarSqueakPlugin_exports[];
extern sqExport 
SurfacePlugin_exports[];
extern sqExport 
VMProfileLinuxSupportPlugin
_exports[];

sqExport *pluginExports[] = {
        vm_exports,
        os_exports,
</code></pre>
<p>But I have no idea how and why???</p>
<p>By the way, earlier in the build process I see the following message:</p>
<pre><code>checking the name lister (/usr/bin/nm -B) interface... (cached) BSD nm
error: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'?
      [-Werror,-Wunknown-warning-option]
</code></pre>
<p>Could there be something wrong with my compiler version? How would I check this?</p>
<p>I've rechecked this three times with the same result ... I have literally no idea how this can happen. However, the last build on GitHub Actions for this configuration passed, and the compilation also succeeds in Gitpod, so (un)fortunately, this seems to be a "fails-on-my-machine" bug. Is there anyone who could help? Please? :-)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/594">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW5Z2CH4GWWO47JFQODUAZNOBANCNFSM5DS7QO5A">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AIJPEWYDAORZDS7NTNYZ4H3UAZNOBA5CNFSM5DS7QO5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OYGDS3A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/594",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/594",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>