Re: [OpenSmalltalk/opensmalltalk-vm] work on win64 dependences (WIP) (57e68ce)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] work on win64 dependences (WIP) (57e68ce)

David T Lewis
 

Compile with gcc, then link with clang? Does it work?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@nicolas-cellier-aka-nice on 57e68ce: Compile with gcc, then link with clang? Does it work?"}],"action":{"name":"View Commit","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/57e68cef046c7309261d81d8ad1c45577562f16b#commitcomment-28373879"}}}</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] work on win64 dependences (WIP) (57e68ce)

David T Lewis
 

To answer to myself, yes it can, though not always
https://stackoverflow.com/questions/20875924/can-clang-compile-code-with-gcc-compiled-a-libs


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@nicolas-cellier-aka-nice on 57e68ce: To answer to myself, yes it can, though not always\r\nhttps://stackoverflow.com/questions/20875924/can-clang-compile-code-with-gcc-compiled-a-libs"}],"action":{"name":"View Commit","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/57e68cef046c7309261d81d8ad1c45577562f16b#commitcomment-28391448"}}}</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] work on win64 dependences (WIP) (57e68ce)

David T Lewis
In reply to this post by David T Lewis
 

The removal of the two lines above prevents the libssh2 to configure correctly, and then to compile.
As exhibited on appveyor build
https://ci.appveyor.com/project/OpenSmalltalk/vm/build/1.0.1243/job/sdks31y9f0bbiq46?fullLog=true
as triggered by PullRequest #242
configure fails to find non blocking sockets:

checking non-blocking sockets style... nada
configure: WARNING: non-block sockets disabled

then fails to compile

session.c: In function 'get_socket_nonblocking':
session.c:361:5: error: unknown type name 'socklen_t'
socklen_t option_len = sizeof(option_value);
^~~~~~~~~

If I restore those two lines, then configure works much better:

checking non-blocking sockets style... ioctlsocket

and compilation seems to go far beyond, but fails with this stage

CCLD libssh2.la
/usr/lib/gcc/x86_64-w64-mingw32/6.4.0/../../../../x86_64-w64-mingw32/bin/ld: cannot find -link

I don't know any libink, could it be a link problem?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@nicolas-cellier-aka-nice on 57e68ce: The removal of the two lines above prevents the libssh2 to configure correctly, and then to compile.\r\nAs exhibited on appveyor build\r\nhttps://ci.appveyor.com/project/OpenSmalltalk/vm/build/1.0.1243/job/sdks31y9f0bbiq46?fullLog=true\r\nas triggered by PullRequest #242 \r\nconfigure fails to find non blocking sockets:\r\n\r\n\u003e checking non-blocking sockets style... nada\r\n\u003e configure: WARNING: non-block sockets disabled\r\n\r\nthen fails to compile\r\n\r\n\u003e session.c: In function 'get_socket_nonblocking':\r\n\u003e session.c:361:5: error: unknown type name 'socklen_t'\r\n\u003e socklen_t option_len = sizeof(option_value);\r\n\u003e ^~~~~~~~~\r\n\r\nIf I restore those two lines, then configure works much better:\r\n\r\n\u003e checking non-blocking sockets style... ioctlsocket\r\n\r\nand compilation seems to go far beyond, but fails with this stage\r\n\r\n\u003e CCLD libssh2.la\r\n\u003e /usr/lib/gcc/x86_64-w64-mingw32/6.4.0/../../../../x86_64-w64-mingw32/bin/ld: cannot find -link\r\n\r\nI don't know any libink, could it be a link problem?\r\n"}],"action":{"name":"View Commit","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/57e68cef046c7309261d81d8ad1c45577562f16b#commitcomment-28470503"}}}</script>