Unable to compile 21.2.2 because of “wx”

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

Unable to compile 21.2.2 because of “wx”

Frank Muller
Hello everyone

I’m trying to compile 21.2.2 on Ubuntu 16.04 using kerl but without wx.

But the process failed on “dbg_wx_filedialog_win.beam” (see kerl’s below).

Question: why it keeps trying to compile dbg_wx_XXX.erl modules after I clearly specified —without-wx? I don’t need anything related to wx. How I can fix this please?

___________________________________

[...]
*********************************************************************
**********************  APPLICATIONS DISABLED  **********************
*********************************************************************

odbc           : odbc disabled by user.
odbc           : User gave --without-odbc option
wx             : User gave --without-wx option

*********************************************************************
*********************************************************************
**********************  APPLICATIONS INFORMATION  *******************
*********************************************************************

wx             : Can not link the wx driver, wx will NOT be useable

*********************************************************************
*********************************************************************
**********************  DOCUMENTATION INFORMATION  ******************
*********************************************************************

documentation  :
                 xsltproc is missing.
                 fop is missing.
                 xmllint is missing.
                 The documentation can not be built.

*********************************************************************
[...]
/home/frank/.kerl/builds/21.2.2/otp_src_git/make/x86_64-unknown-linux-gnu/otp.mk:131: recipe for
target '../ebin/dbg_wx_filedialog_win.beam' failed
make[3]: *** [../ebin/dbg_wx_filedialog_win.beam] Error 1
make[3]: Leaving directory '/home/frank/.kerl/builds/21.2.2/otp_src_git/lib/debugger/src'
/home/frank/.kerl/builds/21.2.2/otp_src_git/make/otp_subdir.mk:29: recipe for target 'opt' failed
make[2]: *** [opt] Error 2
make[2]: Leaving directory '/home/frank/.kerl/builds/21.2.2/otp_src_git/lib/debugger'
/home/frank/.kerl/builds/21.2.2/otp_src_git/make/otp_subdir.mk:29: recipe for target 'opt' failed
make[1]: *** [opt] Error 2
make[1]: Leaving directory '/home/frank/.kerl/builds/21.2.2/otp_src_git/lib'
Makefile:488: recipe for target 'libs' failed
make: *** [libs] Error 2

___________________________________

My Ubuntu-16.04 config:

$ uname -a
Linux 3.14.32-xxxx-grs-ipv6-64 #9 SMP Thu Oct 20 14:53:52 CEST 2016 x86_64 x86_64 x86_64 GNU/Linux

$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~16.04~ppa1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

$ kerl version
1.3.4

Happy new year !!!

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

Re: Unable to compile 21.2.2 because of “wx”

Frank Muller
And I got the very same error on CentOS7 (—without-wx):

_______________________________________________________________
[...]
=== Entering application debugger
gmake[3]: Entering directory `/home/frank/.kerl/builds/21.2.2/otp_src_git/lib/debugger/src'
 ERLC   ../ebin/debugger.beam
 ERLC   ../ebin/i.beam
 ERLC   ../ebin/int.beam
 ERLC   ../ebin/dbg_debugged.beam
 ERLC   ../ebin/dbg_icmd.beam
 ERLC   ../ebin/dbg_idb.beam
 ERLC   ../ebin/dbg_ieval.beam
 ERLC   ../ebin/dbg_iload.beam
 ERLC   ../ebin/dbg_iserver.beam
 ERLC   ../ebin/dbg_istk.beam
 ERLC   ../ebin/dbg_wx_break.beam
 ERLC   ../ebin/dbg_wx_break_win.beam
 ERLC   ../ebin/dbg_wx_code.beam
 ERLC   ../ebin/dbg_wx_filedialog_win.beam
compile: warnings being treated as errors
dbg_wx_filedialog_win.erl:22: behaviour wx_object undefined
gmake[3]: *** [../ebin/dbg_wx_filedialog_win.beam] Error 1
gmake[3]: Leaving directory `/home/frank/.kerl/builds/21.2.2/otp_src_git/lib/debugger/src'
gmake[2]: *** [opt] Error 2
gmake[2]: Leaving directory `/home/frank/.kerl/builds/21.2.2/otp_src_git/lib/debugger'
gmake[1]: *** [opt] Error 2
gmake[1]: Leaving directory `/home/frank/.kerl/builds/21.2.2/otp_src_git/lib'
gmake: *** [libs] Error 2
_______________________________________________________________

My CentOS7’s config:

$ uname -a
Linux xxxx-std-ipv6-64 #1 SMP Mon Oct 23 11:35:59 CEST 2017 x86_64 x86_64 x86_64 GNU/Linux

$ gcc --version
gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ kerl version
1.8.5

Best
/Frank

<[hidden email]> wrote :
Hello everyone

I’m trying to compile 21.2.2 on Ubuntu 16.04 using kerl but without wx.

But the process failed on “dbg_wx_filedialog_win.beam” (see kerl’s below).

Question: why it keeps trying to compile dbg_wx_XXX.erl modules after I clearly specified —without-wx? I don’t need anything related to wx. How I can fix this please?

___________________________________

[...]
*********************************************************************
**********************  APPLICATIONS DISABLED  **********************
*********************************************************************

odbc           : odbc disabled by user.
odbc           : User gave --without-odbc option
wx             : User gave --without-wx option

*********************************************************************
*********************************************************************
**********************  APPLICATIONS INFORMATION  *******************
*********************************************************************

wx             : Can not link the wx driver, wx will NOT be useable

*********************************************************************
*********************************************************************
**********************  DOCUMENTATION INFORMATION  ******************
*********************************************************************

documentation  :
                 xsltproc is missing.
                 fop is missing.
                 xmllint is missing.
                 The documentation can not be built.

*********************************************************************
[...]
/home/frank/.kerl/builds/21.2.2/otp_src_git/make/x86_64-unknown-linux-gnu/otp.mk:131: recipe for
target '../ebin/dbg_wx_filedialog_win.beam' failed
make[3]: *** [../ebin/dbg_wx_filedialog_win.beam] Error 1
make[3]: Leaving directory '/home/frank/.kerl/builds/21.2.2/otp_src_git/lib/debugger/src'
/home/frank/.kerl/builds/21.2.2/otp_src_git/make/otp_subdir.mk:29: recipe for target 'opt' failed
make[2]: *** [opt] Error 2
make[2]: Leaving directory '/home/frank/.kerl/builds/21.2.2/otp_src_git/lib/debugger'
/home/frank/.kerl/builds/21.2.2/otp_src_git/make/otp_subdir.mk:29: recipe for target 'opt' failed
make[1]: *** [opt] Error 2
make[1]: Leaving directory '/home/frank/.kerl/builds/21.2.2/otp_src_git/lib'
Makefile:488: recipe for target 'libs' failed
make: *** [libs] Error 2

___________________________________

My Ubuntu-16.04 config:

$ uname -a
Linux 3.14.32-xxxx-grs-ipv6-64 #9 SMP Thu Oct 20 14:53:52 CEST 2016 x86_64 x86_64 x86_64 GNU/Linux

$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~16.04~ppa1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

$ kerl version
1.3.4

Happy new year !!!

Best
/Frank

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

Re: Unable to compile 21.2.2 because of “wx”

Mikael Pettersson-5
On Sat, Dec 29, 2018 at 6:29 PM Frank Muller <[hidden email]> wrote:

>
> And I got the very same error on CentOS7 (—without-wx):
>
> _______________________________________________________________
> [...]
> === Entering application debugger
> gmake[3]: Entering directory `/home/frank/.kerl/builds/21.2.2/otp_src_git/lib/debugger/src'
>  ERLC   ../ebin/debugger.beam
>  ERLC   ../ebin/i.beam
>  ERLC   ../ebin/int.beam
>  ERLC   ../ebin/dbg_debugged.beam
>  ERLC   ../ebin/dbg_icmd.beam
>  ERLC   ../ebin/dbg_idb.beam
>  ERLC   ../ebin/dbg_ieval.beam
>  ERLC   ../ebin/dbg_iload.beam
>  ERLC   ../ebin/dbg_iserver.beam
>  ERLC   ../ebin/dbg_istk.beam
>  ERLC   ../ebin/dbg_wx_break.beam
>  ERLC   ../ebin/dbg_wx_break_win.beam
>  ERLC   ../ebin/dbg_wx_code.beam
>  ERLC   ../ebin/dbg_wx_filedialog_win.beam
> compile: warnings being treated as errors
> dbg_wx_filedialog_win.erl:22: behaviour wx_object undefined
> gmake[3]: *** [../ebin/dbg_wx_filedialog_win.beam] Error 1
> gmake[3]: Leaving directory `/home/frank/.kerl/builds/21.2.2/otp_src_git/lib/debugger/src'
> gmake[2]: *** [opt] Error 2
> gmake[2]: Leaving directory `/home/frank/.kerl/builds/21.2.2/otp_src_git/lib/debugger'
> gmake[1]: *** [opt] Error 2
> gmake[1]: Leaving directory `/home/frank/.kerl/builds/21.2.2/otp_src_git/lib'
> gmake: *** [libs] Error 2

I can reproduce this error on Fedora 28 (not using kerl).  Adding
--without-debugger doesn't help, but omitting --without-wx does.  And
to be clear, I also does not have wxWidgets so I also get the "wx will
not be usable" warning.
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Unable to compile 21.2.2 because of “wx”

Frank Muller
Hi Mikael

By simply omitting —without-wx, I was able to successfully compile it on both Ubuntu and CentOS7.

I also noticed that this option only works when you don’t build Erlang from “git”.

Thanks again !!!

/Frank

On Sat, Dec 29, 2018 at 6:29 PM Frank Muller <[hidden email]> wrote:
>
> And I got the very same error on CentOS7 (—without-wx):
>
> _______________________________________________________________
> [...]
> === Entering application debugger
> gmake[3]: Entering directory `/home/frank/.kerl/builds/21.2.2/otp_src_git/lib/debugger/src'
>  ERLC   ../ebin/debugger.beam
>  ERLC   ../ebin/i.beam
>  ERLC   ../ebin/int.beam
>  ERLC   ../ebin/dbg_debugged.beam
>  ERLC   ../ebin/dbg_icmd.beam
>  ERLC   ../ebin/dbg_idb.beam
>  ERLC   ../ebin/dbg_ieval.beam
>  ERLC   ../ebin/dbg_iload.beam
>  ERLC   ../ebin/dbg_iserver.beam
>  ERLC   ../ebin/dbg_istk.beam
>  ERLC   ../ebin/dbg_wx_break.beam
>  ERLC   ../ebin/dbg_wx_break_win.beam
>  ERLC   ../ebin/dbg_wx_code.beam
>  ERLC   ../ebin/dbg_wx_filedialog_win.beam
> compile: warnings being treated as errors
> dbg_wx_filedialog_win.erl:22: behaviour wx_object undefined
> gmake[3]: *** [../ebin/dbg_wx_filedialog_win.beam] Error 1
> gmake[3]: Leaving directory `/home/frank/.kerl/builds/21.2.2/otp_src_git/lib/debugger/src'
> gmake[2]: *** [opt] Error 2
> gmake[2]: Leaving directory `/home/frank/.kerl/builds/21.2.2/otp_src_git/lib/debugger'
> gmake[1]: *** [opt] Error 2
> gmake[1]: Leaving directory `/home/frank/.kerl/builds/21.2.2/otp_src_git/lib'
> gmake: *** [libs] Error 2

I can reproduce this error on Fedora 28 (not using kerl).  Adding
--without-debugger doesn't help, but omitting --without-wx does.  And
to be clear, I also does not have wxWidgets so I also get the "wx will
not be usable" warning.

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