Opened 2 years ago

Closed 10 months ago

#64290 closed defect (fixed)

scribus-devel @1.5.7.svn-20201209_2 build fails on Monterey on Intel

Reported by: acrostich (Panda Mery) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: monterey ventura Cc:
Port: scribus-devel

Description

I upgraded from Big Sur to Monterey so went through the migration process except I didn't use the script but reinstalled all my old requested ports. Scribus-devel failed. I tried again after a clean, same build failure. The error in the logs is:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_scribus-devel/scribus-devel/work/scribus-2dbeda3c6793075305b6adaf26f7be5d455a88ba/scribus/pluginmanager.cpp:94:31: error: assigning to 'void *' from 'QFunctionPointer' (aka 'void (*)()') converts between void pointer and function pointer
:info:build         if( plugin ) symAddr = qlib->resolve(sym);
:info:build                                ~~~~~~^~~~~~~~~~~~
:info:build 1 error generated.

Log attached.

Attachments (1)

main.log (2.7 MB) - added by acrostich (Panda Mery) 2 years ago.
scribus-devel_main.log

Change History (13)

Changed 2 years ago by acrostich (Panda Mery)

Attachment: main.log added

scribus-devel_main.log

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

Keywords: monterey added

I'll update the port to a newer version but even the latest version doesn't seem to have changed this code much so I suspect we'll end up having to report it to the developers for them to fix.

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

In 71ec30c3b8e09365add5ea5c2e3a7ad39fac86c1/macports-ports (master):

scribus-devel: Update to 1.5.8.svn-20211215

See: #64290

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

The new version built successfully on our automated builders running macOS 11 on arm64 and x86_64 and macOS 12 on arm64 so maybe there's a good chance it'll build on macOS 12 on x86_64 too. The other builders have a several-day backlog, and the macOS 12 x86_64 builder has a several-week backlog, so we won't know for some time if those builds succeed, but you can sudo port selfupdate and try to build the new version yourself.

comment:4 Changed 2 years ago by acrostich (Panda Mery)

This new version builds fine on Monterey on Intel. Thank you.

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

Owner: set to ryandesign
Status: newaccepted

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

Resolution: fixed
Status: acceptedclosed

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

Keywords: ventura added
Resolution: fixed
Status: closedreopened

Replying to ryandesign:

I suspect we'll end up having to report it to the developers for them to fix.

In the mean time, scribus-devel would not build anymore due to updates of the poppler port, so I updated scribus-devel to version 1.5.8 today. It built fine on our builders running macOS 10.14, 10.15, 11, and 12, but on macOS 13, we're seeing the same error reported in this ticket. I've now reported it to the developers.

comment:8 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed

In db37bd8f3a547f4d909d8cf3188f185db1bc984f/macports-ports (master):

scribus-devel: Fix build with pointer conversion

Closes: #64290

comment:9 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: closedreopened

That commit did fix the pointer conversion issue but it turns out that wasn't the real problem. The real problem was that the build was happening for -arch i386. This became more obvious once the pointer conversion problem was fixed:

ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
ld: warning: ignoring file /opt/local/lib/libcairo.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/libexec/qt5/lib/QtXml.framework/QtXml, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/libexec/qt5/lib/QtNetwork.framework/QtNetwork, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/libexec/qt5/lib/QtOpenGL.framework/QtOpenGL, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libz.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/libexec/qt5/lib/QtPrintSupport.framework/QtPrintSupport, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libfreetype.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libxml2.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libicudata.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libharfbuzz.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libz.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libicuuc.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libharfbuzz-subset.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libpng.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libjpeg.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libfontconfig.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libtiff.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libharfbuzz-icu.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/liblcms2.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libpodofo.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libz.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libxml2.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libfreetype.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libtiff.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libpng.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libjpeg.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/liblcms2.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/lib/libpodofo.dylib, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/libexec/qt5/lib/QtWidgets.framework/QtWidgets, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/libexec/qt5/lib/QtGui.framework/QtGui, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /opt/local/libexec/qt5/lib/QtCore.framework/QtCore, building for macOS-i386 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libcups.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libcups.tbd (3 slices)
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libcups.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libcups.tbd (3 slices)
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libc++.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libc++.tbd (3 slices)
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libSystem.tbd (3 slices)
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd (4 slices)
ld: dynamic executables or dylibs must link with libSystem.dylib for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It turns out the scribus build system has hundreds of lines of code for identifying and handling each version of macOS, and when it encounters an unknown version of macOS on x86_64, it falls back to building for i386, which of course makes no sense. I need to report this bug to the developers.

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

Replying to ryandesign:

I need to report this bug to the developers.

https://bugs.scribus.net/view.php?id=16975

comment:11 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

In bdb112fc3ff4dc3fd2b2e0a397547255914e6418/macports-ports (master):

scribus-devel: Fix build on newer macOS versions

See: #64290

comment:12 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed

In bd398dc7bd1d81a7149892503e4f6a49b1715ba4/macports-ports (master):

scribus: Fix build on newer compilers and macOS versions

Closes: #64290
Closes: #67705

Note: See TracTickets for help on using tickets.