Opened 11 years ago
Closed 11 years ago
#42118 closed defect (fixed)
avarice @2.13_1: configure fails with non-GCC compilers
Reported by: | jud.leonard@… | Owned by: | larryv (Lawrence Velázquez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | ||
Port: | avarice |
Description (last modified by mf2k (Frank Schima))
sudo port install avarice ---> Computing dependencies for avarice ---> Fetching archive for avarice ---> Attempting to fetch avarice-2.13_1.darwin_13.x86_64.tbz2 from http://packages.macports.org/avarice ---> Attempting to fetch avarice-2.13_1.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/avarice ---> Attempting to fetch avarice-2.13_1.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/avarice ---> Fetching distfiles for avarice ---> Verifying checksums for avarice ---> Extracting avarice ---> Configuring avarice Error: Failed to configure avarice, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_avarice/avarice/work/avarice-2.13/config.log Error: org.macports.configure for port avarice returned: configure failure: command execution failed Please see the log file for port avarice for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_avarice/avarice/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port avarice failed
Attachments (2)
Change History (9)
Changed 11 years ago by jud.leonard@…
Attachment: | config.log added |
---|
Changed 11 years ago by jud.leonard@…
main.log from port install avarice
comment:1 Changed 11 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Resolution: | → invalid |
Status: | new → closed |
In the future, please use WikiFormatting.
The error is:
:info:configure configure: error: C++ compiler cannot create executables
That means that you have not correctly installed the Xcode command line tools.
comment:2 Changed 11 years ago by dwb@…
Resolution: | invalid |
---|---|
Status: | closed → reopened |
I'm seeing the same problem and I >have< correctly installed the command line tools.
Looking at config.log:
configure:2942: /usr/bin/clang++ -pipe -Os -arch x86_64 -I/opt/local/include -I\ /opt/local/avr/host/include -DPACKAGE=avarice -DPACKAGE_VERSION=2.13 -L/opt/loc\ al/lib -Wl,-headerpad_max_install_names -lz -L/opt/local/avr/host/lib -lbfd -li\ berty -arch x86_64 conftest.cpp >&5 conftest.cpp:4:9: warning: 'PACKAGE_VERSION' macro redefined #define PACKAGE_VERSION "2.13" ^ <command line>:2:9: note: previous definition is here #define PACKAGE_VERSION 2.13 ^ conftest.cpp:8:9: warning: 'PACKAGE' macro redefined #define PACKAGE "avarice" ^ <command line>:1:9: note: previous definition is here #define PACKAGE avarice ^ 2 warnings generated. ld: library not found for -liberty clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:2946: $? = 1 configure:2984: result: no configure: failed program was: | /* confdefs.h */
It seems like there's a missing dependency on liberty.
comment:3 Changed 11 years ago by dwb@…
Changing the following allows it to compile but feels like a really broken solution:
/depends_lib port:gettext port:libusb-compat port:zlib \ port:avr-binutils port:gcc48 configure.cc gcc-mp-4.8 configure.cxx g++-mp-4.8 configure.args --mandir=${prefix}/share/man \ --enable-target-programming configure.ldflags-append -lz \ -L${prefix}/avr/host/lib -lbfd \ -L/opt/local/lib/gcc48/x86_64 -liberty
I'm not sure why /opt/local/lib/gcc48/x86_64 isn't in the search path for gcc-mp-4.8, but it isn't. In any case forcing the gcc 4.8 doesn't seem like the right answer.
comment:4 Changed 11 years ago by larryv (Lawrence Velázquez)
Owner: | changed from macports-tickets@… to larryv@… |
---|---|
Status: | reopened → new |
Summary: | failed to configure avarice → avarice @2.13_1: configure fails with non-GCC compilers |
comment:6 Changed 11 years ago by eckart.schlottmann@…
The fix also worked for me.
Please note: The change needs to be done in the right Portfile (two are existing in my installation):
/opt/local/var/macports/sources/rsync.macports.org/release/ports/cross/avarice/Portfile
and
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/cross/avarice/Portfile
Get the correct file by asking the system:
sudo port file avarice
gives for me
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/cross/avarice/Portfile
which is good.
comment:7 Changed 11 years ago by larryv (Lawrence Velázquez)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in r117877 by installing libiberty with avr-binutils
.
config log for avarice