Compiling erlang with cygwin64 and msvc 2019?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling erlang with cygwin64 and msvc 2019?

Michael Stellar-2
Hello,

   I am trying to compile latest maint-22 branch from the github with cygwin64 and msvc 2019, on compilation it always stopped at : 
make[3]: Entering directory '/home/echelon/src/otp/lib/public_key/src'
 ERLC   ../ebin/public_key.beam
 ERLC   ../ebin/pubkey_pem.beam
 ERLC   ../ebin/pubkey_ssh.beam
 ERLC   ../ebin/pubkey_pbe.beam
 ERLC   ../ebin/pubkey_cert.beam
 ERLC   ../ebin/pubkey_cert_records.beam
 ERLC   ../ebin/pubkey_crl.beam
 VSN    ../ebin/public_key.app
 VSN    ../ebin/public_key.appup
make[3]: Leaving directory '/home/echelon/src/otp/lib/public_key/src'
make[3]: Entering directory '/home/echelon/src/otp/lib/public_key/doc/src'
make[3]: Nothing to be done for 'opt'.
make[3]: Leaving directory '/home/echelon/src/otp/lib/public_key/doc/src'
=== Leaving application public_key
make[2]: Leaving directory '/home/echelon/src/otp/lib/public_key'
make[2]: Entering directory '/home/echelon/src/otp/lib/ssl'
=== Entering application ssl
make[3]: Entering directory '/home/echelon/src/otp/lib/ssl/src'
 GEN    /home/echelon/src/otp/lib/ssl/src/deps/ssl.d
 ERLC   ../ebin/ssl_crl_cache_api.beam
 ERLC   ../ebin/ssl_session_cache_api.beam
make[3]: *** No rule to make target 'c:/cygwin64../../../BOOTST~1/lib/kernel/include/logger.hrl', needed by '../ebin/dtls_connection.beam'.  Stop.
make[3]: Leaving directory '/home/echelon/src/otp/lib/ssl/src'
make[2]: *** [/home/echelon/src/otp/make/otp_subdir.mk:29: opt] Error 2
make[2]: Leaving directory '/home/echelon/src/otp/lib/ssl'
make[1]: *** [/home/echelon/src/otp/make/otp_subdir.mk:29: opt] Error 2
make[1]: Leaving directory '/home/echelon/src/otp/lib'
make: *** [Makefile:490: libs] Error 2

I have modified my .bash_profile, this setup is managed to compile the maint-21 branch cleanly, but getting error when compiling maint-22.

Can anybody help me?.

Thanks,

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Compiling erlang with cygwin64 and msvc 2019?

Michael Stellar-2
Found out the fix, in ..\src\otp\lib\ssl\src\Makefile file, replace line 156 the :
| sed "s@$(ERL_TOP)@../../..@g" \ 
with 
| sed "s@../../..@g" \

This is remove cygwin absolute path in the ssl.d dependencies file.

Should i make a pull request?, i am not sure on why we need absolute path in the ssl.d file.

On Sat, Jun 1, 2019 at 6:14 PM Siliwangi Softworks <[hidden email]> wrote:
Hello,

   I am trying to compile latest maint-22 branch from the github with cygwin64 and msvc 2019, on compilation it always stopped at : 
make[3]: Entering directory '/home/echelon/src/otp/lib/public_key/src'
 ERLC   ../ebin/public_key.beam
 ERLC   ../ebin/pubkey_pem.beam
 ERLC   ../ebin/pubkey_ssh.beam
 ERLC   ../ebin/pubkey_pbe.beam
 ERLC   ../ebin/pubkey_cert.beam
 ERLC   ../ebin/pubkey_cert_records.beam
 ERLC   ../ebin/pubkey_crl.beam
 VSN    ../ebin/public_key.app
 VSN    ../ebin/public_key.appup
make[3]: Leaving directory '/home/echelon/src/otp/lib/public_key/src'
make[3]: Entering directory '/home/echelon/src/otp/lib/public_key/doc/src'
make[3]: Nothing to be done for 'opt'.
make[3]: Leaving directory '/home/echelon/src/otp/lib/public_key/doc/src'
=== Leaving application public_key
make[2]: Leaving directory '/home/echelon/src/otp/lib/public_key'
make[2]: Entering directory '/home/echelon/src/otp/lib/ssl'
=== Entering application ssl
make[3]: Entering directory '/home/echelon/src/otp/lib/ssl/src'
 GEN    /home/echelon/src/otp/lib/ssl/src/deps/ssl.d
 ERLC   ../ebin/ssl_crl_cache_api.beam
 ERLC   ../ebin/ssl_session_cache_api.beam
make[3]: *** No rule to make target 'c:/cygwin64../../../BOOTST~1/lib/kernel/include/logger.hrl', needed by '../ebin/dtls_connection.beam'.  Stop.
make[3]: Leaving directory '/home/echelon/src/otp/lib/ssl/src'
make[2]: *** [/home/echelon/src/otp/make/otp_subdir.mk:29: opt] Error 2
make[2]: Leaving directory '/home/echelon/src/otp/lib/ssl'
make[1]: *** [/home/echelon/src/otp/make/otp_subdir.mk:29: opt] Error 2
make[1]: Leaving directory '/home/echelon/src/otp/lib'
make: *** [Makefile:490: libs] Error 2

I have modified my .bash_profile, this setup is managed to compile the maint-21 branch cleanly, but getting error when compiling maint-22.

Can anybody help me?.

Thanks,

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions