#67723 closed defect (fixed)

libxc6: build fails for PPC

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

Description

Reason is unclear so far.

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

Ref from: #67715

Change History (6)

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

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

I've taken ownership of libxc5/6, so you can assign directly. As for the issue, are you attempting to build with +tests?

And can you please assign the full main.log so I can take a look?

Version 0, edited 16 months ago by mascguy (Christopher Nielsen) (next)

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

p.s. It looks like it's the tests that are failing to build. And while the cmake-based build supports a formal option to disable building those, I'm not seeing a similar flag for the autotools-based build.

Still digging though...

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

In df9953cdeeca8cc6aa0b7a8d5a2e2d58c590bdb2/macports-ports (master):

libxc{5,6}: patch to disable testsuite
See: #67723

comment:4 in reply to:  3 Changed 16 months ago by barracuda156

Replying to Christopher Nielsen <mascguy@…>:

In df9953cdeeca8cc6aa0b7a8d5a2e2d58c590bdb2/macports-ports (master):

libxc{5,6}: patch to disable testsuite
See: #67723

Thank you! I will test that soon.

UPD. Yes, now it builds fine.

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

comment:5 Changed 16 months ago by kencu (Ken)

I am puzzled how this made it onto the link line:

/opt/local/lib/libxc.a

when that file should not exist during the build, and it should be linking in the one in the build tree, you would think.

I don't know for sure at the moment, but it would seem those missing symbols should be found in libxc.a.

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

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.