Opened 10 years ago

Closed 10 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)

config.log (8.6 KB) - added by jud.leonard@… 10 years ago.
config log for avarice
main.log (16.5 KB) - added by jud.leonard@… 10 years ago.
main.log from port install avarice

Download all attachments as: .zip

Change History (9)

Changed 10 years ago by jud.leonard@…

Attachment: config.log added

config log for avarice

Changed 10 years ago by jud.leonard@…

Attachment: main.log added

main.log from port install avarice

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Description: modified (diff)
Resolution: invalid
Status: newclosed

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 10 years ago by dwb@…

Resolution: invalid
Status: closedreopened

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 10 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 10 years ago by larryv (Lawrence Velázquez)

Owner: changed from macports-tickets@… to larryv@…
Status: reopenednew
Summary: failed to configure avariceavarice @2.13_1: configure fails with non-GCC compilers

comment:5 Changed 10 years ago by cubemike99@…

Dwb, your fix worked for me. Thanks!

comment:6 Changed 10 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 10 years ago by larryv (Lawrence Velázquez)

Resolution: fixed
Status: newclosed

Fixed in r117877 by installing libiberty with avr-binutils.

Note: See TracTickets for help on using tickets.