Opened 13 years ago
Closed 13 years ago
#33687 closed defect (invalid)
avarice @2.11 - install causes error: C++ compiler cannot create executables
Reported by: | 4eppelin@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | avarice |
Description
Snow Leopard, XCode 3.2.6, gcc 4.2.1 (Apple Inc.);
installed dependencies:
zlib@1.2.6_0+universal
avr-binutils@2.22
libusb-compat@0.1.3
gettext@0.18.1.1_2
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
Attachments (1)
Change History (5)
Changed 13 years ago by 4eppelin@…
comment:1 Changed 13 years ago by 4eppelin@…
Cc: | 4eppelin@… removed |
---|
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | avarice install failed removed |
---|---|
Port: | @2.11 (cross) removed |
Replying to 4eppelin@…:
:info:configure configure: error: C++ compiler cannot create executables :info:configure See `config.log' for more details
This typically means 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.
comment:3 follow-up: 4 Changed 13 years ago 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!
comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Replying to 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.
Cc Me!