[MacPorts] #35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion -----------------------------------+---------------------------------------- Reporter: jvalduvieco@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: erlang mountain lion | Port: erlang -----------------------------------+---------------------------------------- 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. -- Ticket URL: <https://trac.macports.org/ticket/35875> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion -----------------------------------+---------------------------------------- Reporter: jvalduvieco@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: erlang mountain lion | Port: erlang -----------------------------------+---------------------------------------- Comment(by jvalduvieco@…): I also enabled parallel build and 64 bits support. -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion -----------------------------------+---------------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion haspatch | Port: erlang -----------------------------------+---------------------------------------- Changes (by ciserlohn@…): * keywords: erlang mountain lion => mountainlion haspatch * owner: macports-tickets@… => bfulgham@… Comment: In the future, please don't add arbitrary keywords (see [wiki:DraftKeywordGuidelines]) and cc the maintainer. -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion -----------------------------------+---------------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion haspatch | Port: erlang -----------------------------------+---------------------------------------- Comment(by mparchet@…): Hello, Can you fix this bug because I can't install filezilla since I install mountain lion. Best regards mparchet -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion -----------------------------------+---------------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion haspatch | Port: erlang -----------------------------------+---------------------------------------- Comment(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 [comment:5 mparchet@…]:
Hello,
Can you fix this bug because I can't install filezilla since I install mountain lion.
Best regards
mparchet
-- Ticket URL: <https://trac.macports.org/ticket/35875#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion -----------------------------------+---------------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion haspatch | Port: erlang -----------------------------------+---------------------------------------- Comment(by mparchet@…): Hello, I have quartz-wm x server installed but the build process faild. Can you help me please Best regards mparchet -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion -----------------------------------+---------------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion haspatch | Port: erlang -----------------------------------+---------------------------------------- Comment(by jvalduvieco@…): Hi, You are using wxwidgets. Please install as follows: port install erlang +wxgtk Joan -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion -----------------------------------+---------------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: mountainlion haspatch | Port: erlang -----------------------------------+---------------------------------------- Comment(by mparchet@…): Hello, Sorry it's don't works. Can you help me please = Best regards mparchet -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion ----------------------------+----------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: mountainlion haspatch Port: erlang | ----------------------------+----------------------------------- Changes (by ryandesign@…): * cc: egall@… (added) -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion ----------------------------+----------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: mountainlion haspatch Port: erlang wxgtk | ----------------------------+----------------------------------- Changes (by mojca@…): * version: 2.1.2 => * port: erlang => erlang wxgtk -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion ----------------------------+----------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: mountainlion haspatch Port: erlang wxgtk | ----------------------------+----------------------------------- Comment (by mojca@…): 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}}}. -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion ----------------------------+----------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: mountainlion haspatch Port: erlang wxgtk | ----------------------------+----------------------------------- Comment (by mojca@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion ----------------------------+----------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: mountainlion haspatch Port: erlang wxgtk | ----------------------------+----------------------------------- Changes (by mojca@…): * cc: zephyr_dodolee@… (added) * status: new => closed * resolution: => fixed Comment: The issue should be solved in r110237. Please reopen the ticket in case that it doesn't work. -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion ----------------------------+----------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: mountainlion haspatch Port: erlang wxgtk | ----------------------------+----------------------------------- Changes (by zephyr_dodolee@…): * status: closed => reopened * resolution: fixed => Comment: 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion ----------------------------+----------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: mountainlion haspatch Port: erlang wxgtk | ----------------------------+----------------------------------- Changes (by ciserlohn@…): * status: reopened => closed * resolution: => fixed Comment: Replying to [comment:16 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. -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion ----------------------------+----------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: mountainlion haspatch Port: erlang wxgtk | ----------------------------+----------------------------------- Comment (by mojca@…): Maybe the reported error is related to #32836? -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:18> MacPorts <http://www.macports.org/> Ports system for OS X
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion ----------------------------+----------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: mountainlion haspatch Port: erlang wxgtk | ----------------------------+----------------------------------- Comment (by ciserlohn@…): Replying to [comment:18 mojca@…]:
Maybe the reported error is related to #32836?
I think exactly this is the issue. @zephyr_dodolee: Please try the work around described [comment:4:ticket:32836 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>}}} -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:19> MacPorts <http://www.macports.org/> Ports system for OS X
#35875: erlang @R15B01 +wxwidgets - Add +wxgtk to build on Mountain Lion ----------------------------+----------------------------------- Reporter: jvalduvieco@… | Owner: bfulgham@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: mountainlion haspatch Port: erlang wxgtk | ----------------------------+----------------------------------- Comment (by zephyr_dodolee@…): The following command solves the problem: {{{ sudo port select gcc llvm-gcc42 }}} Thank you very much! -- Ticket URL: <https://trac.macports.org/ticket/35875#comment:20> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts