Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#67715 closed defect (fixed)

libxc{5,6}: xc-info is linked incorrectly

Reported by: ftroisi Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: barracuda156
Port: libxc5 libxc6

Description

Hello,

I have a Mac Mini (Apple Silicon M1), running Ventura 13.4.1. I tried to install the port libxc5, but it fails. It tries to build it three times and then stops. Before trying to install libxc5, I installed the following ports with their dependencies (in this order): gcc12, openmpi-gcc12 +fortran, autoconf, automaker, libtool.

I attach the result of the command port -d -y rev-upgrade.

Could you please look into this? Best ftroisi

Attachments (2)

libxc5 (4.6 KB) - added by ftroisi 16 months ago.
main.log (441.8 KB) - added by ftroisi 16 months ago.

Download all attachments as: .zip

Change History (14)

Changed 16 months ago by ftroisi

Attachment: libxc5 added

comment:1 Changed 16 months ago by jmroot (Joshua Root)

Cc: mascguy barracuda156 added
Keywords: libxc Ventura arm removed
Port: libxc6 added
Summary: Port libxc5 and libxc6 does not build on MacOS Ventura 13.4.1 (ARM)libxc{5,6}: xc-info is linked incorrectly

The broken linking of xc-info is certainly present in the current binaries, so that needs to be fixed. Please attach the main.log from the failed build attempt, in case it shows other issues that also need to be addressed.

comment:2 in reply to:  1 Changed 16 months ago by mascguy (Christopher Nielsen)

Cc: mascguy removed
Owner: set to mascguy
Status: newassigned

comment:3 Changed 16 months ago by ftroisi

I tried executing sudo port install -v -d libxc5 to generate the main.log (as you suggest here https://guide.macports.org/chunked/using.html#using.port.install). However, when I execute port logfile libxc5, it says "Error: the logfile for port libxc5 not found"

Any suggestions on how to locate it?

Last edited 16 months ago by ftroisi (previous) (diff)

comment:4 Changed 16 months ago by jmroot (Joshua Root)

Sounds like it didn't actually fail to install then, it was just rev-upgrade that failed afterwards because it found the broken linking even after rebuilding.

comment:5 Changed 16 months ago by jmroot (Joshua Root)

For future reference though, the -k option will cause logs (and indeed the whole work directory) to be kept even after a successful installation, and if you want to re-run a build when the port is already installed, the easiest way to do so is to run sudo port destroot <portname>.

comment:6 Changed 16 months ago by ftroisi

thanks a lot for tip! Yes the installation is actually fine, it fails at the activation stage:

---> Computing dependencies for libxc5
---> Installing libxc5 @5.2.3_1
---> Activating libxc5 @5.2.3_1
---> Scanning binaries for linking errors
---> Found 1 broken file, matching files to ports

I also attach the main.log generated via the -k flag

Changed 16 months ago by ftroisi

Attachment: main.log added

comment:7 Changed 16 months ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 1314e8ae4dccb871ab4c9a29fffbfd9cdc761f68/macports-ports (master):

libxc{5,6}: use autotools, to fix rpath issue

  • Use major ver for bin suffix
  • Also create bin symlinks

Fixes: #67715

comment:8 Changed 16 months ago by mascguy (Christopher Nielsen)

Francesco, the issue is now fixed. Wait at least three hours, then run sudo port selfupdate, followed by sudo port -N upgrade outdated.

And please let us know whether all if well after updating!

comment:9 Changed 16 months ago by ftroisi

Thanks a lot f0r fixing this, everything looks fine for both libxc5 and libxc6

Last edited 16 months ago by ftroisi (previous) (diff)

comment:10 Changed 16 months ago by barracuda156

What do I do wrong?

libtool: link: /opt/local/bin/gcc-mp-12 -pipe -Os -arch ppc -Wl,-headerpad_max_install_names -Wl,-rpath -Wl,/opt/local/lib/libgcc -arch ppc -o xc-consistency xc_consistency-xc-consistency.o  -L/opt/local/lib -L../src/ /opt/local/lib/libxc.a -lm
Undefined symbols:
  "_libxc_free", referenced from:
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _free_memory in xc_regression-xc-regression.o
      _drop_laplacian in xc_regression-xc-regression.o
      _drop_laplacian in xc_regression-xc-regression.o
      _drop_laplacian in xc_regression-xc-regression.o
      _drop_laplacian in xc_regression-xc-regression.o
      _drop_laplacian in xc_regression-xc-regression.o
      _drop_laplacian in xc_regression-xc-regression.o
Undefined symbols:
  "_xc_mgga_vars_free_all", referenced from:
      _main in xc_get_data-xc-get_data.o
  "_xc_mgga_vars_allocate_all", referenced from:
      _main in xc_get_data-xc-get_data.o
  "_xc_mgga_evaluate_functional", referenced from:
      _main in xc_get_data-xc-get_data.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make[3]: *** [xc-regression] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [xc-get_data] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_libxc6/libxc6/work/libxc-6.2.2/testsuite'
make[2]: *** [all-recursive] Error 1

This did not happen before – earlier the port built through completion, but then port scan complained and wanted to rebuild. Now it just fails.

comment:11 in reply to:  10 Changed 16 months ago by mascguy (Christopher Nielsen)

Replying to barracuda156:

What do I do wrong?

Sergey, that's a different issue, and PPC-specific. So please open another ticket.

comment:12 in reply to:  9 Changed 16 months ago by mascguy (Christopher Nielsen)

Replying to ftroisi:

Thanks a lot for fixing this, everything looks fine for both libxc5 and libxc6

Great, glad it's working for you Francesco!

Note: See TracTickets for help on using tickets.