[MacPorts] #39589: cgminer @3.2.2 - build failure
#39589: cgminer @3.2.2 - build failure -------------------------------+-------------------------------- Reporter: havier25099amph@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 2.2.0 Component: ports | Version: 2.1.3 Keywords: bitcoin | Port: cgminer @3.2.2 -------------------------------+-------------------------------- cgminer fails to build. Error is: ---> Computing dependencies for cgminer ---> Configuring cgminer Error: org.macports.configure for port cgminer returned: configure failure: command execution failed Please see the log file for port cgminer for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_finance_cgminer/cgminer/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port cgminer failed I have attached the full error log Environment: Darwin abner.sadie 12.4.0 Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64 i386 MacBookPro5,4 Darwin Xcode 4.6.2 Build version 4H1003 Thanks! -- Ticket URL: <https://trac.macports.org/ticket/39589> MacPorts <http://www.macports.org/> Ports system for OS X
#39589: cgminer @3.2.2 - build failure --------------------------------+------------------- Reporter: havier25099amph@… | Owner: ram@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: cgminer | --------------------------------+------------------- Changes (by ryandesign@…): * keywords: bitcoin => * owner: macports-tickets@… => ram@… * port: cgminer @3.2.2 => cgminer * milestone: MacPorts 2.2.0 => Old description:
cgminer fails to build.
Error is:
---> Computing dependencies for cgminer ---> Configuring cgminer Error: org.macports.configure for port cgminer returned: configure failure: command execution failed Please see the log file for port cgminer for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_finance_cgminer/cgminer/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port cgminer failed
I have attached the full error log
Environment:
Darwin abner.sadie 12.4.0 Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64 i386 MacBookPro5,4 Darwin
Xcode 4.6.2 Build version 4H1003
Thanks!
New description: cgminer fails to build. Error is: {{{ ---> Computing dependencies for cgminer ---> Configuring cgminer Error: org.macports.configure for port cgminer returned: configure failure: command execution failed Please see the log file for port cgminer for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_finance_cgminer/cgminer/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port cgminer failed }}} I have attached the full error log Environment: Darwin abner.sadie 12.4.0 Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64 i386 MacBookPro5,4 Darwin Xcode 4.6.2 Build version 4H1003 Thanks! -- Comment: The log says: {{{ :info:configure nawk: illegal jump type 339 :info:configure input record number 16, file :info:configure source line number 306 }}} We've seen this problem several times before with other ports. The problem is that you have the nawk port installed, and cgminer tries to find an awk implementation for its configuration, and decides to use nawk, but nawk is not compatible with what the configuration wants to do. If you temporarily deactivate the nawk port, then you should be able to build cgminer. You can re-activate nawk later if you want. {{{ sudo port clean cgminer sudo port -f deactivate nawk sudo port install cgminer sudo port activate nawk }}} In other ports we've used the conflicts_build portgroup to handle this conflict. Perhaps this could be added to this port as well. -- Ticket URL: <https://trac.macports.org/ticket/39589#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39589: cgminer @3.2.2 - build failure when nawk is active --------------------------------+------------------- Reporter: havier25099amph@… | Owner: ram@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: cgminer | --------------------------------+------------------- -- Ticket URL: <https://trac.macports.org/ticket/39589#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39589: cgminer @3.2.2 - build failure when nawk is active --------------------------------+---------------------- Reporter: havier25099amph@… | Owner: ram@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: cgminer | --------------------------------+---------------------- Changes (by ram@…): * status: new => assigned Comment: Interesting, I can't reproduce this when using `nawk`: {{{ checking build system type... x86_64-apple-darwin12.4.0 checking host system type... x86_64-apple-darwin12.4.0 checking target system type... x86_64-apple-darwin12.4.0 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p checking for gawk... no checking for mawk... no checking for nawk... nawk <snip> checking for pkg-config... /opt/local/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for LIBCURL... yes configure: creating ./config.status config.status: creating Makefile config.status: creating compat/Makefile config.status: creating compat/jansson/Makefile config.status: creating ccan/Makefile config.status: creating lib/Makefile config.status: creating config.h config.status: executing depfiles commands ------------------------------------------------------------------------ cgminer 3.2.2 ------------------------------------------------------------------------ Configuration Options Summary: curses.TUI...........: FOUND: -lncurses OpenCL...............: FOUND. GPU mining support enabled scrypt...............: Disabled ADL..................: SDK NOT found, GPU monitoring support DISABLED Avalon.ASICs.........: Disabled BFL.ASICs............: Disabled BitForce.FPGAs.......: Disabled Icarus.FPGAs.........: Disabled ModMiner.FPGAs.......: Disabled Ztex.FPGAs...........: Disabled Compilation............: make (or gmake) CPPFLAGS.............: -I/opt/local/include CFLAGS...............: -pipe -Os -arch x86_64 LDFLAGS..............: -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 LDADD................: -L/opt/local/lib -lcurl -ljansson -lpthread -framework OpenCL -lm Installation...........: make install (as root if needed, with 'su' or 'sudo') prefix...............: /opt/local }}} We both seem to be using the Mountain Lion with the latest Xcode, so this is a strange one... Can you confirm that deactivating `nawk` allows you to build? -- Ticket URL: <https://trac.macports.org/ticket/39589#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#39589: cgminer @3.2.2 - build failure when nawk is active --------------------------------+---------------------- Reporter: havier25099amph@… | Owner: ram@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: cgminer | --------------------------------+---------------------- Comment (by egall@…): Also if you install `gawk`, the `configure` script will pick that up first and use that instead of `nawk`. Also `gawk` is the best of the `awk`s so you should probably install it anyways. -- Ticket URL: <https://trac.macports.org/ticket/39589#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#39589: cgminer @3.2.2 - build failure when nawk is active --------------------------------+---------------------- Reporter: havier25099amph@… | Owner: ram@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: cgminer | --------------------------------+---------------------- Comment (by ram@…): Replying to [comment:4 egall@…]:
Also if you install `gawk`, the `configure` script will pick that up first and use that instead of `nawk`. Also `gawk` is the best of the `awk`s so you should probably install it anyways.
So another solution could be to add `gawk` to `depends_build` -- Ticket URL: <https://trac.macports.org/ticket/39589#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#39589: cgminer @3.2.2 - build failure when nawk is active --------------------------------+---------------------- Reporter: havier25099amph@… | Owner: ram@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: cgminer | --------------------------------+---------------------- Comment (by havier25099amph@…): I tried the gawk solution and it worked. Thanks, everyone! {{{ hostname:~ user$ sudo port install gawk Password: ---> Computing dependencies for gawk ---> Fetching archive for gawk ---> Attempting to fetch gawk-4.0.2_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/gawk ---> Attempting to fetch gawk-4.0.2_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/gawk ---> Installing gawk @4.0.2_0 ---> Activating gawk @4.0.2_0 ---> Cleaning gawk ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> No broken files found. hostname:~ user $ sudo port install cgminer ---> Computing dependencies for cgminer ---> Configuring cgminer ---> Building cgminer ---> Staging cgminer into destroot ---> Installing cgminer @3.2.2_0 ---> Activating cgminer @3.2.2_0 ---> Cleaning cgminer ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> No broken files found. }}} -- Ticket URL: <https://trac.macports.org/ticket/39589#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#39589: cgminer @3.2.2 - build failure when nawk is active --------------------------------+-------------------- Reporter: havier25099amph@… | Owner: ram@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: cgminer | --------------------------------+-------------------- Changes (by ram@…): * status: assigned => closed * resolution: => fixed Comment: r107488 -- Ticket URL: <https://trac.macports.org/ticket/39589#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts