[MacPorts] #33687: avarice @2.11 - install causes error: C++ compiler cannot create executables
#33687: avarice @2.11 - install causes error: C++ compiler cannot create executables ------------------------------------+--------------------------------------- Reporter: 4eppelin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: avarice install failed | Port: avarice @2.11 (cross) ------------------------------------+--------------------------------------- Snow Leopard, XCode 3.2.6, gcc 4.2.1 (Apple Inc.);[[BR]] installed dependencies:[[BR]] zlib@1.2.6_0+universal avr-binutils@2.22 libusb-compat@0.1.3 gettext@0.18.1.1_2[[BR]] During install avarice catch error: {{{ :info:configure checking whether the C++ compiler works... no :info:configure configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avarice/avarice/work/avarice-2.11': :info:configure configure: error: C++ compiler cannot create executables :info:configure See `config.log' for more details }}} Can't find config.log. Command "port work avarice" tells: {{{ shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory error getting working directory name: no such file or directory while executing "pwd" invoked from within "set current_portdir [pwd]" (file "/opt/local/bin/port" line 4703) }}} Before try of installation exec this: {{{ sudo port selfupdate sudo port update outdated sudo port clean avarice }}} -- Ticket URL: <https://trac.macports.org/ticket/33687> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33687: avarice @2.11 - install causes error: C++ compiler cannot create executables --------------------------------+------------------------------------------- Reporter: 4eppelin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: avarice --------------------------------+------------------------------------------- Changes (by ryandesign@…): * keywords: avarice install failed => * port: avarice @2.11 (cross) => avarice Comment: Replying to [ticket:33687 4eppelin@…]:
{{{ :info:configure configure: error: C++ compiler cannot create executables :info:configure See `config.log' for more details }}} This typically means [wiki:FAQ#missingxcode Xcode is not installed correctly].
Can't find config.log.
It is in the directory identified by the command "port work avarice".
Command "port work avarice" tells:
{{{ shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory error getting working directory name: no such file or directory while executing "pwd" invoked from within "set current_portdir [pwd]" (file "/opt/local/bin/port" line 4703) }}} This means the directory your shell was in when you ran the "port work" command does not exist anymore. "cd" to a directory that does exist, then try "port work avarice" again. -- Ticket URL: <https://trac.macports.org/ticket/33687#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33687: avarice @2.11 - install causes error: C++ compiler cannot create executables --------------------------------+------------------------------------------- Reporter: 4eppelin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: avarice --------------------------------+------------------------------------------- Comment(by 4eppelin@…): Thank you! I solved the problem. Avarice require libbfd.a from binutils for installation. Installing binutils solves the problem. But there are some moments. Details: {{{ $ cd `port work avarice` $ sudo ./configure }}} Output: {{{ ... configure: error: You need to install libbfd.a from binutils. }}} {{{ $sudo port install binutils }}} Output: {{{ ... <installation done> Having binutils installed will cause some other ports to fail to build. Consider uninstalling binutils. }}} {{{ $ sudo port install avarice <installation done> }}} I decide to remove binutils package but leave libbfd.a: {{{ $ cp opt/local/lib/libbfd.a ~/temp $ sudo port uninstall binutils $ sudo mv ~/temp/libbfd.a /opt/local/lib/ }}} Thanks for attention! -- Ticket URL: <https://trac.macports.org/ticket/33687#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33687: avarice @2.11 - install causes error: C++ compiler cannot create executables ---------------------------------+------------------------------------------ Reporter: 4eppelin@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: invalid | Keywords: Port: avarice | ---------------------------------+------------------------------------------ Changes (by ryandesign@…): * cc: ryandesign@… (added) * status: new => closed * resolution: => invalid Comment: Replying to [comment:3 4eppelin@…]:
Thank you! I solved the problem. Avarice require libbfd.a from binutils for installation. Installing binutils solves the problem. But there are some moments. Details: {{{ $ cd `port work avarice` $ sudo ./configure }}}
You're not supposed to manually run the configure script. Doing so is not the same as when MacPorts runs it for you.
Output: {{{ ... configure: error: You need to install libbfd.a from binutils. }}} {{{ $sudo port install binutils }}}
avarice already declares a dependency on avr-binutils; I think that's the binutils it's talking about. avarice installs fine for me. I recommend you remove the libbfd.a you added above. -- Ticket URL: <https://trac.macports.org/ticket/33687#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts