Opened 5 months ago

Last modified 5 months ago

#68876 assigned defect

gmic-lib-3.3.2_0+x11.darwin_19.x86_64 - build error - build failure

Reported by: MeNdMont (MeNdMont) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: mascguy (Christopher Nielsen)
Port: gmic

Description

Log attached.

Current active gmic ports are

port -v installed gmic
The following ports are currently installed:
  gmic @3.2.4_0+x11 (active) requested_variants='+x11' platform='darwin 19' archs='x86_64' date='2023-04-30T11:30:56-0700'

First error in the log appears to be:

:info:build Undefined symbols for architecture x86_64:

final error message is

:error:build Failed to build gmic-lib: command execution failed
:debug:build Error code: CHILDSTATUS 84155 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"

Attachments (2)

gmic_fail_main.log (52.8 KB) - added by MeNdMont (MeNdMont) 5 months ago.
clean_gmic_ilmbase_manual_install.txt (130.9 KB) - added by MeNdMont (MeNdMont) 5 months ago.

Download all attachments as: .zip

Change History (15)

Changed 5 months ago by MeNdMont (MeNdMont)

Attachment: gmic_fail_main.log added

comment:1 Changed 5 months ago by Schamschula (Marius Schamschula)

The first thing I noticed is that the main.log file lists your machine architecture as i386 while your are attempting to install the x86_64 binary.

The second, possibly more important issue, is that you haven't run sudo port sync in a while, as the current version of gmic is 3.3.2. Likely other packages gmic depends on need to be updated.

https://ports.macports.org/port/gmic-lib/details/ shows gmic-lib to have a clean build on Big Sur (x86_64).

comment:2 Changed 5 months ago by MeNdMont (MeNdMont)

I believe that my machine is x86_64, based on the result of this query.

getconf LONG_BIT
64

Is this a configuration issue in Macports?

I sync the port tree and got the same result.

sudo port sync
--->  Updating the ports tree
iMac:~$ sudo port -v selfupdate
--->  Updating MacPorts base sources using rsync

Willkommen auf dem RSYNC-server auf ftp.fau.de.
Nicht all unsere Mirror sind per rsync verfuegbar.

Welcome to the RSYNC daemon on ftp.fau.de.
Not all of our mirrors are available through rsync.


receiving file list ... done
./

sent 66 bytes  received 98 bytes  46.86 bytes/sec
total size is 114272768  speedup is 696785.17
MacPorts base version 2.8.1 installed,
MacPorts base version 2.8.1 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/macports/release/tarballs/ports.tar

Willkommen auf dem RSYNC-server auf ftp.fau.de.
Nicht all unsere Mirror sind per rsync verfuegbar.

Welcome to the RSYNC daemon on ftp.fau.de.
Not all of our mirrors are available through rsync.


receiving file list ... done
./

sent 68 bytes  received 99 bytes  66.80 bytes/sec
total size is 123895808  speedup is 741891.07
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports

Total number of ports parsed:	0 
Ports successfully parsed:	0 
Ports failed:			0 
Up-to-date ports skipped:	37618

--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
iMac:~$ sudo port upgrade outdated
--->  Computing dependencies for gmic-lib
--->  Fetching archive for gmic-lib
--->  Attempting to fetch gmic-lib-3.3.2_0+x11.darwin_19.x86_64.tbz2 from https://packages.macports.org/gmic-lib
--->  Attempting to fetch gmic-lib-3.3.2_0+x11.darwin_19.x86_64.tbz2 from http://mirror.fcix.net/macports/packages/gmic-lib
--->  Attempting to fetch gmic-lib-3.3.2_0+x11.darwin_19.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/gmic-lib
--->  Building gmic-lib
Error: Failed to build gmic-lib: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gmic/gmic-lib/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

comment:3 Changed 5 months ago by Schamschula (Marius Schamschula)

At least your machine is building the correct version.

A quick search has found a missing dependency: ilmbase.

I've never seen this error, but trace mode no longer works on my build machine, and I have ilmbase installed.

comment:4 Changed 5 months ago by Marius Schamschula <mschamschula@…>

In 26232abb58882fdc95052dabd1c121b7d9dcc6e0/macports-ports (master):

gmic: add ilmbase dependency

See: #68876

Changed 5 months ago by MeNdMont (MeNdMont)

comment:5 in reply to:  3 Changed 5 months ago by MeNdMont (MeNdMont)

I manually installed ilmbase, cleaned gmic, and got what appears to be the same error. New log attached.

Replying to Schamschula:

At least your machine is building the correct version.

A quick search has found a missing dependency: ilmbase.

I've never seen this error, but trace mode no longer works on my build machine, and I have ilmbase installed.

Last edited 5 months ago by MeNdMont (MeNdMont) (previous) (diff)

comment:6 Changed 5 months ago by Schamschula (Marius Schamschula)

It's been a while since I looked at ilmbase and openexr. It seems the later has subsumed the former. Hence I added the wrong dependency.

You probably should to uninstall ilmbase.

comment:7 Changed 5 months ago by Schamschula (Marius Schamschula)

openexr was already in the dependency list. Si I'm at a loss what's going on here.

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

Cc: mascguy added; mps@… removed
Owner: set to Schamschula
Status: newassigned

comment:9 Changed 5 months ago by mascguy (Christopher Nielsen)

Can you run sudo port diagnose, and paste the output here?

comment:10 in reply to:  1 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to Schamschula:

The first thing I noticed is that the main.log file lists your machine architecture as i386 while your are attempting to install the x86_64 binary.

You misinterpret the log. At that point in the log, MacPorts is printing the value of ${os.arch}. The only values you will ever see for that option are arm, i386, and powerpc. They only indicate the general processor architecture, not the bitness.

comment:11 in reply to:  7 Changed 5 months ago by MeNdMont (MeNdMont)

It appears that something changed and now it builds.

port -v installed gmic
The following ports are currently installed:
  gmic @3.2.4_0+x11 requested_variants='+x11' platform='darwin 19' archs='x86_64' date='2023-04-30T11:30:56-0700'
  gmic @3.3.2_1+x11 (active) requested_variants='+x11' platform='darwin 19' archs='x86_64' date='2023-12-13T17:36:39-0800'

Replying to Schamschula:

openexr was already in the dependency list. Si I'm at a loss what's going on here.

comment:12 in reply to:  9 ; Changed 5 months ago by MeNdMont (MeNdMont)

gmic just built when I ran port upgrade outdated

sudo port diagnose
Warning: found dylibs in your /usr/local/lib directory. These are known to cause problems. We'd recommend you remove them.

Replying to mascguy:

Can you run sudo port diagnose, and paste the output here?

comment:13 in reply to:  12 Changed 5 months ago by mascguy (Christopher Nielsen)

Replying to MeNdMont:

sudo port diagnose
Warning: found dylibs in your /usr/local/lib directory. These are known to cause problems. We'd recommend you remove them.

Do you have HomeBrew installed?

Note: See TracTickets for help on using tickets.