Opened 22 months ago

Closed 16 months ago

Last modified 16 months ago

#66704 closed defect (fixed)

scribus @1.4.8: error: no viable overloaded '='

Reported by: leeeoooooo Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: snowleopard Cc:
Port: scribus

Description

Scribus fails to build on my 32-bit-only CoreDuo MacBook1,1 (Mac OS X 10.6.8) The compiler reports several warnings about non-standard code, but finally errors out complaining "error: no viable overloaded '='" Please see attached log.

Attachments (1)

scribus-main.log (889.0 KB) - added by leeeoooooo 22 months ago.
Scribus build log "error: no viable overloaded '='"

Download all attachments as: .zip

Change History (13)

Changed 22 months ago by leeeoooooo

Attachment: scribus-main.log added

Scribus build log "error: no viable overloaded '='"

comment:1 Changed 22 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: snowleopard i386 added; Scribus CoreDuo MacBook1 1 removed
Port: scribus added; Scribus removed
Summary: Scribus fails to build on 32-bit-only CoreDuo MacBook1,1 - "error: no viable overloaded '='"scribus @1.4.8: error: no viable overloaded '='

There is a newer development version of scribus available in the scribus-devel port; you could try installing that instead.

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

but according to build server logs it looks like scribus-devel does not build on any OS version.

Neither port has a maintainer. If you can come up with solutions for any of these issues please submit pull requests.

comment:3 Changed 22 months ago by leeeoooooo

Scribus-devel (besides the warning that it is known to fail) says it requires Qt 5.14 or newer. I only find Qt 5 up to .13 available in the repository.

They say Scribus is available as a HomeBrew cask but I really don't want to have to go THAT route.

comment:4 Changed 22 months ago by kencu (Ken)

the current MacPorts qt5 port for up-to-date systems is

% port info qt5
qt5 @5.15.8 

so you are good there, on newish systems at least.

On 10.6.8 you only can have qt5.3 on MacPorts, so you are out-of-luck there.

Homebrew casks only run on the absolute newest systems, so that will never run on 10.6.8.

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

A list of causes of "No Viable Overload" and possible fixes:

https://www.positioniseverything.net/no-viable-overloaded/

Last edited 22 months ago by kencu (Ken) (previous) (diff)

comment:6 Changed 22 months ago by leeeoooooo

qt5 5.15 runs fine under Slackware on the other side of the dual-boot on this MacBook1,1 so this sounds like a limitation of MacPorts.

comment:7 Changed 22 months ago by leeeoooooo

… or maybe a limitation of Darwin 10.8 I’m running Slackware-current on the other side of my dual boot.

comment:8 Changed 22 months ago by kencu (Ken)

qt5 for darwin uses current Apple SDK features, so the qt5 version released can only build on systems of about the same vintage. Apple drops hardware regularly, so your SDK is about 2009 vintage. So you get a 2009 qt5 :(

qt5 for linux uses gtk or wayland which is updated and current on your linux installation.

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

Replying to leeeoooooo:

error: no viable overloaded '='

Replying to ryandesign:

but according to build server logs it looks like scribus-devel does not build on any OS version.

I've fixed scribus-devel for all systems it'll work on (macOS 10.13 and later, due to the Qt 5.14 requirement) and scribus on all systems except Snow Leopard where our build servers confirm the no viable overloaded '=' error using clang-11. I can also confirm the error on macOS 12 if I force the use of clang-11. Normally the build uses a newer clang on 10.7 and later and doesn't encounter this error, so it may be a bug in clang-11 and maybe we can work around it.

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

Keywords: i386 removed
Owner: set to ryandesign
Status: newaccepted

Here is the upstream bug report:

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

They fixed it in 2021 by commenting out that constructor because I guess they weren't using it:

https://github.com/scribusproject/scribus/commit/34dee8142844a7ee70ddff95253d0299896bcc16

Last edited 16 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

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

Resolution: fixed
Status: acceptedclosed

In 401909b0792bf4f2b0b65f30d9ac17fd610b2068/macports-ports (master):

scribus: Fix build with clang 11

Closes: #66704

Note: See TracTickets for help on using tickets.