Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#66381 closed defect (fixed)

libepoxy @1.5.10 stopped building on PPC Tiger, Mac OS X 10.4.11

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: tiger ppc Cc:
Port: libepoxy

Description

In the last two weeks I started to upgrade my ports from Python 3.9 to Python 3.10:

libepoxy @1.5.9_2+python38 (active) requested_variants='+python38' platform='darwin 8' archs='ppc' date='2022-01-23T11:34:00+0100'
libepoxy @1.5.9_2+python39 requested_variants='' platform='darwin 8' archs='ppc' date='2022-05-14T22:59:07+0200'
libepoxy @1.5.10_0+python39 (active) requested_variants='+python39' platform='darwin 8' archs='ppc' date='2022-05-15T21:52:11+0200'
libepoxy @1.5.10_0 (active) requested_variants='' platform='darwin 8' archs='ppc' date='2022-11-27T00:04:33+0100'
--
meson @0.55.3_1 (active) requested_variants='' platform='darwin 8' archs='noarch' date='2020-10-22T16:38:21+0200'
meson @0.58.2_0 (active) requested_variants='' platform='darwin 8' archs='noarch' date='2022-01-15T17:53:45+0100'
meson @0.58.2_0 (active) requested_variants='' platform='darwin 8' archs='noarch' date='2022-05-14T13:27:31+0200'
meson @0.58.2_0 (active) requested_variants='' platform='darwin 8' archs='noarch' date='2022-11-27T09:45:01+0100'

Today I tried to fix mesons wrong handling of nm arguments or handling of wrong nm arguments (the use of llvm-nm would be an alternative):

--- mesonbuild/scripts/symbolextractor.py~	1970-01-01 01:00:00.000000000 +0100
+++ mesonbuild/scripts/symbolextractor.py	2022-12-01 18:32:05.000000000 +0100
@@ -146,8 +146,7 @@
             break
     result = [arr[match + 2], arr[match + 5]] # Libreoffice stores all 5 lines but the others seem irrelevant.
     # Get a list of all symbols exported
-    output = call_tool('nm', ['--extern-only', '--defined-only',
-                              '--format=posix', libfilename])
+    output = call_tool('nm', ['-a', '-U', '-P', libfilename])
     if not output:
         dummy_syms(outfilename)
         return

Since I recorded some time ago that meson has a problem with nm when building libepoxy I first tried to build this port again to see whether the fault persists with Python 3.10. But the build stops during configuration phase:

Checking for function "dlvsym" with dependency -ldl: NO 
Run-time dependency appleframeworks found: NO (tried framework)

test/meson.build:164:2: ERROR: Dependency "appleframeworks" not found, tried framework

A full log can be found at /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libepoxy/libepoxy/work/build/meson-logs/meson-log.txt

This log file has at the end:

Run-time dependency appleframeworks found: NO (tried framework)

test/meson.build:164:2: ERROR: Dependency "appleframeworks" not found, tried framework

The test in test\meson.build is:

  162	# Apple
  163	if host_machine.system().contains('darwin')
  164	  opengl_dep = dependency('appleframeworks', modules: ['OpenGL', 'Carbon'], required: true)
  165	
  166	  cgl_tests = [
  167	    [ 'cgl_core', [ 'cgl_core.c' ] ],
  168	    [ 'cgl_epoxy_api', [ 'cgl_epoxy_api.c' ] ],
  169	  ]
  170	
  171	  foreach t: cgl_tests
  172	    test_name = t[0]
  173	    test_sources = t[1]
  174	
  175	    test(test_name,
  176	      executable(
  177	        test_name, test_sources,
  178	        c_args: test_cflags,
  179	        include_directories: libepoxy_inc,
  180	        dependencies: [ libepoxy_dep, opengl_dep ],
  181	      ),
  182	    )
  183	  endforeach
  184	endif

Is the cause of failure due to building libepoxy without Python support?

Attachments (2)

main.log (204.8 KB) - added by ballapete (Peter "Pete" Dyballa) 17 months ago.
Main.log from PPC Tiger, Mac OS X 10.4.11
meson-log.txt (47.9 KB) - added by ballapete (Peter "Pete" Dyballa) 17 months ago.
The mentioned meson-log.txt

Download all attachments as: .zip

Change History (6)

Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger, Mac OS X 10.4.11

Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

Attachment: meson-log.txt added

The mentioned meson-log.txt

comment:1 Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

These Apple Mac OS X Frameworks are installed:

AGL:
  Version:	2.5.6
  Zuletzt geändert:	27.04.13 22:14
  Informationen:	OpenGL Carbon compatibility dylib for Mac OS X
  Ort:	/System/Library/Frameworks/AGL.framework
Carbon:
  Version:	10.4
  Zuletzt geändert:	27.04.13 22:12
  Ort:	/System/Library/Frameworks/Carbon.framework
GLUT:
  Version:	3.3.8
  Zuletzt geändert:	27.04.13 22:12
  Informationen:	3.3.8, Copyright (c) 2001-2005 Apple Computer Inc., All Rights Reserved
  Ort:	/System/Library/Frameworks/GLUT.framework
OpenGL:
  Version:	1.4.7
  Zuletzt geändert:	27.04.13 22:14
  Informationen:	OpenGL 1.4.7.14.0
  Ort:	/System/Library/Frameworks/OpenGL.framework

and they have some content:

pete 281 /\ gdu -sh /System/Library/Frameworks/{AGL,Carbon,GLUT,OpenGL}.framework/Versions
336K	/System/Library/Frameworks/AGL.framework/Versions
127M	/System/Library/Frameworks/Carbon.framework/Versions
868K	/System/Library/Frameworks/GLUT.framework/Versions
8,6M	/System/Library/Frameworks/OpenGL.framework/Versions

and mesa is installed as well:

  mesa @22.1.7_0 (active) requested_variants='' platform='darwin 8' archs='ppc' date='2022-11-28T12:37:46+0100'

comment:2 Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

-rw-r--r--   1 root  x11  2177 15 Mai  2022 /opt/local/var/macports/sources/nue.de.rsync.macports.org/macports/release/tarballs/ports/graphics/libepoxy/Portfile

comment:3 Changed 17 months ago by kencu (Ken)

Resolution: fixed
Status: newclosed

comment:4 Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

It built again now, so the ticket can be closed.

Note: See TracTickets for help on using tickets.