[MacPorts] #26475: ruby19 failed to build
#26475: ruby19 failed to build --------------------------------------+------------------------------------- Reporter: christoperyeoh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ruby19 --------------------------------------+------------------------------------- :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ruby19/work/ruby-1.9.2-p0" && /usr/bin/make -j2 all " returned error 2 :error:build Target org.macports.build returned: shell command failed :debug:build Backtrace: shell command failed while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for ruby19): org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Log for ruby19 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ruby19/main.log -- Ticket URL: <http://trac.macports.org/ticket/26475> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26475: ruby19 failed to build --------------------------------------+------------------------------------- Reporter: christoperyeoh@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ruby19 --------------------------------------+------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => kimuraw@… Old description:
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ruby19/work/ruby-1.9.2-p0" && /usr/bin/make -j2 all " returned error 2 :error:build Target org.macports.build returned: shell command failed :debug:build Backtrace: shell command failed while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for ruby19): org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Log for ruby19 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ruby19/main.log
New description: {{{ :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ruby19/work/ruby-1.9.2-p0" && /usr/bin/make -j2 all " returned error 2 :error:build Target org.macports.build returned: shell command failed :debug:build Backtrace: shell command failed while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for ruby19): org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Log for ruby19 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ruby19/main.log }}} -- -- Ticket URL: <http://trac.macports.org/ticket/26475#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26475: ruby19 failed to build: 'username_completion_function' undeclared --------------------------------------+------------------------------------- Reporter: christoperyeoh@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ruby19 --------------------------------------+------------------------------------- Comment(by jmr@…): Looks like #21124. -- Ticket URL: <https://trac.macports.org/ticket/26475#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26475: ruby19 failed to build: 'username_completion_function' undeclared --------------------------------------+------------------------------------- Reporter: christoperyeoh@… | Owner: kimuraw@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ruby19 --------------------------------------+------------------------------------- Changes (by kimuraw@…): * status: new => assigned Comment: The error wes caused by an architecture mismatch between port:readline(i386?) and port:ruby19(x86_64?). christoperyeoh, please show me the results of the following commands. {{{ % port installed readline % file /opt/local/lib/libreadline.dylib }}} -- Ticket URL: <https://trac.macports.org/ticket/26475#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26475: ruby19 failed to build: 'username_completion_function' undeclared --------------------------------------+------------------------------------- Reporter: christoperyeoh@… | Owner: kimuraw@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ruby19 --------------------------------------+------------------------------------- Comment(by christoperyeoh@…): The results follow. So I guess I installed the 64-bit version of readline in correctly?
% port installed readline The following ports are currently installed: readline @6.1.002_0 (active)
% file /opt/local/lib/libreadline.dylib /opt/local/lib/libreadline.dylib: Mach-O 64-bit dynamically linked shared library x86_64
-- Ticket URL: <https://trac.macports.org/ticket/26475#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26475: ruby19 failed to build: 'username_completion_function' undeclared --------------------------------------+------------------------------------- Reporter: christoperyeoh@… | Owner: kimuraw@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ruby19 --------------------------------------+------------------------------------- Comment(by kimuraw@…): thanks. your port:readline is x86_64. I guess * ran extconf.rb of ext/readline against /usr/include/readline * build with /opt/local/include/readline That was strange. I cannot reproduce this problem on my Mac. Can you try the following operations on your Mac? (1) add an option "--with-readline-dir" to configure-args in ruby19 Portfile {{{ % sudo port edit ruby19 }}} {{{ Index: Portfile =================================================================== --- Portfile (revision 71052) +++ Portfile (working copy) @@ -38,6 +38,7 @@ port:libyaml configure.args --enable-shared \ + --with-readline-dir="${prefix}" \ --mandir="${prefix}/share/man" \ --enable-pthread \ --without-tk \ }}} (2) try to build ruby19 {{{ % sudo port clean ruby19 % sudo port build ruby19 }}} If build succeed, I add the option to ruby19 Portfile of macports.org. -- Ticket URL: <https://trac.macports.org/ticket/26475#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26475: ruby19 failed to build: 'username_completion_function' undeclared --------------------------------------+------------------------------------- Reporter: christoperyeoh@… | Owner: kimuraw@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ruby19 --------------------------------------+------------------------------------- Comment(by ryandesign@…): From your log, I see: {{{ :info:configure checking whether OS depend dynamic link works... In file included from /usr/local/include/fuse/fuse.h:26, :info:configure from <command-line>:0: :info:configure /usr/local/include/fuse/fuse_common.h:32:2: error: #error Please add -D_FILE_OFFSET_BITS=64 to your compile flags! :info:configure In file included from /usr/local/include/fuse/fuse.h:857, :info:configure from <command-line>:0: :info:configure /usr/local/include/fuse/fuse_compat.h:69:24: error: sys/statfs.h: No such file or directory :info:configure <built-in>:0: fatal error: when writing output to : Broken pipe }}} So you have files in /usr/local, which are interfering with the build. Please remove them. Having files in /usr/local while using MacPorts is not supported. -- Ticket URL: <https://trac.macports.org/ticket/26475#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26475: ruby19 failed to build: 'username_completion_function' undeclared --------------------------------------+------------------------------------- Reporter: christoperyeoh@… | Owner: kimuraw@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ruby19 --------------------------------------+------------------------------------- Comment(by kimuraw@…): I added a configure option to prefer macports' libraries in building ruby19 at r71867. I believe this change fixed your problem. Please try the latest port:ruby19. -- Ticket URL: <https://trac.macports.org/ticket/26475#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26475: ruby19 failed to build: 'username_completion_function' undeclared ---------------------------------------+------------------------------------ Reporter: christoperyeoh@… | Owner: kimuraw@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: fixed | Keywords: Port: ruby19 | ---------------------------------------+------------------------------------ Changes (by kimuraw@…): * status: assigned => closed * resolution: => fixed Comment: I close this ticket. If your problem is not solved, you can reopen this ticket. -- Ticket URL: <https://trac.macports.org/ticket/26475#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts