Opened 3 years ago

Closed 3 years ago

#63445 closed defect (fixed)

glib2 2.62.6 +universal +quartz: fails to merge .pc files

Reported by: joelkraehemann (Joël Krähemann) Owned by: Ken <21211439+kencu@…>
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: universal Cc: joelkraehemann (Joël Krähemann)
Port: glib2

Description

the x86_64 version does provide linker flag -lm in glib-2.0.pc. Whereas the arm64 does not provide it. This causes the install to fail.

Attachments (3)

glib2-shell-output.txt (1.6 KB) - added by joelkraehemann (Joël Krähemann) 3 years ago.
The command line output
glib2.diff (881 bytes) - added by joelkraehemann (Joël Krähemann) 3 years ago.
glib-2.0.pc diff
main.log (2.4 MB) - added by kencu (Ken) 3 years ago.
main log from failing universal build on bigsur for ryan

Change History (13)

Changed 3 years ago by joelkraehemann (Joël Krähemann)

Attachment: glib2-shell-output.txt added

The command line output

Changed 3 years ago by joelkraehemann (Joël Krähemann)

Attachment: glib2.diff added

glib-2.0.pc diff

comment:1 Changed 3 years ago by joelkraehemann (Joël Krähemann)

As a work-around to install it anyway. I have edited the build directories .pc files and removed all destroot directories.

sudo rm -rf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/destroot*

comment:2 Changed 3 years ago by kencu (Ken)

FYI what we will probably do is put something in the Portfile to strip out the extra (unnecessary) flag after the port is built, before it is destrooted (where the universal blending happens).

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

I'd rather first understand why the difference exists. Could you attach the main.log please?

comment:4 Changed 3 years ago by joelkraehemann (Joël Krähemann)

Sorry, main.log has gone because after adding -lm to glib-2.0.pc, install was successful.

comment:5 Changed 3 years ago by kencu (Ken)

Before spending too much time sorting out a proper fix for the mysterious -lm, probably good to recall that this glib2 is still two years out of date, and much has likely changed to the current version.

Perhaps this has already been fixed.

Changed 3 years ago by kencu (Ken)

Attachment: main.log added

main log from failing universal build on bigsur for ryan

comment:6 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

I was hoping to see some obvious references to libm or -lm in the configure phase output but I don't see that.

The problem doesn't exist when building universal for x86_64 and i386 on 10.13. -lm is present in the pc file for both architectures so there is no problem merging them.

Certainly we can try updating the port and see if that helps. As usual, I'd prefer to update glib2-devel first and not update glib2 until later.

comment:7 Changed 3 years ago by jf (Jeffrey 'jf' Lim)

any suggestions to fix a broken system? Should I go ahead to add that '-lm'... or should I wait for a fix? If you guys need any more info, I would be happy to provide it.

Last edited 3 years ago by jf (Jeffrey 'jf' Lim) (previous) (diff)

comment:8 Changed 3 years ago by jf (Jeffrey 'jf' Lim)

hopefully this helps somebody stuck with a broken system, but I decided on a whim to try to install glib2 without x11 support (because come on, are you really using x11?); so sudo port install glib2 -x11... and it worked! This doesn't mean, of course, that we don't try to resolve whatever the issue is that causes the install on arm64 to fail, but, for me, this helped me get past this to a working system.

comment:10 Changed 3 years ago by Ken <21211439+kencu@…>

Owner: set to Ken <21211439+kencu@…>
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.