Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#35875 closed enhancement (fixed)

erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion

Reported by: jvalduvieco@… Owned by: bfulgham@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: mountainlion haspatch Cc: jvalduvieco@…, mparchet@…, cooljeanius (Eric Gallager), mojca (Mojca Miklavec), zephyr_dodolee@…
Port: erlang wxgtk

Description

As wxwigdets 2.8 does not build on Mountain Lion and erlang needs wxwidgets 2.8 to use observer and other tools I've created a variant called wxgtk wich depends on wxgtk-opengl to be able to use observer. Xquartz is also required to be installed but I've not added as a dependency leaving to the user the choice between a local X server is used or a remote one. I am attaching wxgtk-opengl with this issue as this port is only needed by this enhancement.

Attachments (4)

erlang-portfile.patch (1.5 KB) - added by jvalduvieco@… 12 years ago.
Modifications to portfile
patch-lib_wx_configure_wx64_compat (930 bytes) - added by jvalduvieco@… 12 years ago.
wxgtk-newport.patch (6.4 KB) - added by jvalduvieco@… 12 years ago.
main.log (405.7 KB) - added by mparchet@… 12 years ago.

Download all attachments as: .zip

Change History (24)

Changed 12 years ago by jvalduvieco@…

Attachment: erlang-portfile.patch added

Modifications to portfile

Changed 12 years ago by jvalduvieco@…

Changed 12 years ago by jvalduvieco@…

Attachment: wxgtk-newport.patch added

comment:1 Changed 12 years ago by jvalduvieco@…

I also enabled parallel build and 64 bits support.

comment:2 Changed 12 years ago by jvalduvieco@…

Cc: jvalduvieco@… added

Cc Me!

comment:3 Changed 12 years ago by ci42

Keywords: mountainlion haspatch added; erlang mountain lion removed
Owner: changed from macports-tickets@… to bfulgham@…

In the future, please don't add arbitrary keywords (see DraftKeywordGuidelines) and cc the maintainer.

comment:4 Changed 12 years ago by mparchet@…

Cc: mparchet@… added

Cc Me!

comment:5 Changed 12 years ago by mparchet@…

Hello,

Can you fix this bug because I can't install filezilla since I install mountain lion.

Best regards

mparchet

comment:6 in reply to:  5 Changed 12 years ago by jvalduvieco@…

This bug has nothing to do with filezilla. wxWidgets 2.8 won't work with ML as it has deprecated some APIs. I have used wxGTK which compiles on ML and has the same API as wxwidgets 2.8 to enable erlang graphic tools. wxGTK requieres an X server to be installed on the system or use a remote X server.

Replying to mparchet@…:

Hello,

Can you fix this bug because I can't install filezilla since I install mountain lion.

Best regards

mparchet

comment:7 Changed 12 years ago by mparchet@…

Hello,

I have quartz-wm x server installed but the build process faild.

Can you help me please

Best regards

mparchet

comment:8 Changed 12 years ago by jvalduvieco@…

Hi, You are using wxwidgets. Please install as follows: port install erlang +wxgtk

Joan

Changed 12 years ago by mparchet@…

Attachment: main.log added

comment:9 Changed 12 years ago by mparchet@…

Hello,

Sorry it's don't works.

Can you help me please =

Best regards

mparchet

comment:10 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: egall@… added

comment:11 Changed 11 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added

Cc Me!

comment:12 Changed 11 years ago by mojca (Mojca Miklavec)

Port: wxgtk added
Version: 2.1.2

comment:13 Changed 11 years ago by mojca (Mojca Miklavec)

Request for submitter of this patch: can you please check if browser:users/mojca/wxports/graphics/wxWidgets-2.8 satisfies your needs to compile erlang on 10.8? You need to configure erlang to find the right wx-config.

comment:14 Changed 11 years ago by mojca (Mojca Miklavec)

The erlang port in the above mentioned repository seems to work with wxGTK 2.8 for me. Or at leas it compiles. I have no idea how to check whether wxWidgets actually work with erlang. Feedback welcome. The patch wasn't required any more since it's already included upstream.

comment:15 Changed 11 years ago by mojca (Mojca Miklavec)

Cc: zephyr_dodolee@… added
Resolution: fixed
Status: newclosed

The issue should be solved in r110237. Please reopen the ticket in case that it doesn't work.

comment:16 Changed 11 years ago by zephyr_dodolee@…

Resolution: fixed
Status: closedreopened

I get the following error while building with variant "+wxwidgets":

:info:build /usr/bin/llvm-gcc-4.2  -Ipcre -Werror=return-type  -m64 -pipe -Os -arch x86_64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_erlang/erlang/work/erlang-R16B01/erts/x86_64-apple-darwin12.4.0  -I/opt/local/include -D_XOPEN_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS   -Ix86_64-apple-darwin12.4.0/opt/smp -Ibeam -Isys/unix -Isys/common -Ix86_64-apple-darwin12.4.0 -Izlib  -Ipcre -Ihipe -I../include -I../include/x86_64-apple-darwin12.4.0 -I../include/internal -I../include/internal/x86_64-apple-darwin12.4.0 -c beam/erl_ptab.c -o obj/x86_64-apple-darwin12.4.0/opt/smp/erl_ptab.o
:info:build /opt/local/bin/gcc  -Ipcre -Werror=return-type  -m64 -pipe -Os -arch x86_64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_erlang/erlang/work/erlang-R16B01/erts/x86_64-apple-darwin12.4.0  -I/opt/local/include -D_XOPEN_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS   -Ix86_64-apple-darwin12.4.0/opt/smp -Ibeam -Isys/unix -Isys/common -Ix86_64-apple-darwin12.4.0 -Izlib  -Ipcre -Ihipe -I../include -I../include/x86_64-apple-darwin12.4.0 -I../include/internal -I../include/internal/x86_64-apple-darwin12.4.0 -c beam/beam_emu.c -o obj/x86_64-apple-darwin12.4.0/opt/smp/beam_emu.o
:info:build cc1: error: unrecognized command line option "-arch"
:info:build make[3]: *** [obj/x86_64-apple-darwin12.4.0/opt/smp/beam_emu.o] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_erlang/erlang/work/erlang-R16B01/erts/emulator'
:info:build make[2]: *** [opt] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_erlang/erlang/work/erlang-R16B01/erts/emulator'
:info:build make[1]: *** [smp] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_erlang/erlang/work/erlang-R16B01/erts'
:info:build make: *** [emulator] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_erlang/erlang/work/erlang-R16B01'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_erlang/erlang/work/erlang-R16B01" && /usr/bin/make -w all 
:info:build Exit code: 2
:error:build org.macports.build for port erlang returned: command execution failed
:debug:build Error code: CHILDSTATUS 42467 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for erlang: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port erlang for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_erlang/erlang/main.log

comment:17 in reply to:  16 Changed 11 years ago by ci42

Resolution: fixed
Status: reopenedclosed

Replying to zephyr_dodolee@…:

I get the following error while building with variant "+wxwidgets":

:info:build /usr/bin/llvm-gcc-4.2  -Ipcre -Werror=return-type  -m64 -pipe -Os -arch x86_64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_erlang/erlang/work/erlang-R16B01/erts/x86_64-apple-darwin12.4.0  -I/opt/local/include -D_XOPEN_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS   -Ix86_64-apple-darwin12.4.0/opt/smp -Ibeam -Isys/unix -Isys/common -Ix86_64-apple-darwin12.4.0 -Izlib  -Ipcre -Ihipe -I../include -I../include/x86_64-apple-darwin12.4.0 -I../include/internal -I../include/internal/x86_64-apple-darwin12.4.0 -c beam/erl_ptab.c -o obj/x86_64-apple-darwin12.4.0/opt/smp/erl_ptab.o
:info:build /opt/local/bin/gcc  -Ipcre -Werror=return-type  -m64 -pipe -Os -arch x86_64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_erlang/erlang/work/erlang-R16B01/erts/x86_64-apple-darwin12.4.0  -I/opt/local/include -D_XOPEN_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS   -Ix86_64-apple-darwin12.4.0/opt/smp -Ibeam -Isys/unix -Isys/common -Ix86_64-apple-darwin12.4.0 -Izlib  -Ipcre -Ihipe -I../include -I../include/x86_64-apple-darwin12.4.0 -I../include/internal -I../include/internal/x86_64-apple-darwin12.4.0 -c beam/beam_emu.c -o obj/x86_64-apple-darwin12.4.0/opt/smp/beam_emu.o
:info:build cc1: error: unrecognized command line option "-arch"

As you can see from your log snippet /opt/local/bin/gcc is used to compile beam/beam_emu.c, but gcc doesn't understand the -arch flag. This is quite strange. The line above shows that /usr/bin/llvm-gcc-4.2 is used to compile beam/erl_ptab.c. Both are C files and should be compiled with the same compiler (llvm-gcc-4.2), which they do on my machine.

Anyhow, this is not related to the wxwidgets variant. Please try a clean attempt. If it fails, file a new ticket and attach the full log file.

comment:18 Changed 11 years ago by mojca (Mojca Miklavec)

Maybe the reported error is related to #32836?

comment:19 in reply to:  18 Changed 11 years ago by ci42

Replying to mojca@…:

Maybe the reported error is related to #32836?

I think exactly this is the issue.

@zephyr_dodolee:

Please try the work around described here.

Or temporary deactivate the gcc provided by macports, install erlang and activate gcc again:

$ sudo port -f deactivate <gccXX>
$ sudo port install erlang
$ sudo port activate <gccXX>

Use

$ port provides /opt/local/bin/gcc

to find out <gccXX>

comment:20 Changed 11 years ago by zephyr_dodolee@…

The following command solves the problem:

sudo port select gcc llvm-gcc42

Thank you very much!

Note: See TracTickets for help on using tickets.