Opened 5 years ago

Closed 3 years ago

Last modified 3 years ago

#59701 closed defect (fixed)

feh @3.2.1+universal: clang: error: cannot use 'dependencies' output with multiple -arch options

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: kurthindenburg (Kurt Hindenburg)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: feh

Description

feh fails to build with the +universal variant:

clang: error: cannot use 'dependencies' output with multiple -arch options

Attachments (2)

main.log.gz (6.4 KB) - added by johnrosshunt 3 years ago.
Portfile (2.4 KB) - added by johnrosshunt 3 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 5 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

not actually sure what that means but I'll give it a look

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

If I understand correctly, many projects use "dependency tracking" so that incremental builds during development are faster. If you need to recompile a file, you only want to recompile that file and any of its dependencies that have changed, and not those that haven't; that's dependency tracking. Dependency tracking doesn't work with multiple -arch flags, for whatever reason. MacPorts automatically adds the flag --disable-dependency-tracking when building universal, but this flag is only known to autotools, and feh doesn't use autotools, so we need some other way of telling it not to use dependency tracking when building universal. In fact, it would be fine to disable dependency tracking for all builds, not just universal builds, since MacPorts is generally doing a full non-incremental build anyway.

Last edited 3 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 3 years ago by johnrosshunt

Attachment: main.log.gz added

Changed 3 years ago by johnrosshunt

Attachment: Portfile added

comment:3 Changed 3 years ago by johnrosshunt

I have a proposed fix for this. See attached files.

comment:4 Changed 3 years ago by kurthindenburg (Kurt Hindenburg)

Ok thanks - the current version and the latest 3.8 both don't build here on 12.1. Your logs are from 10.7.5. I'll try to get it to build but no guarantee. If you're familar with github you might try putting in a merge request.

comment:5 Changed 3 years ago by kurthindenburg (Kurt Hindenburg)

Owner: set to kurthindenburg
Resolution: fixed
Status: newclosed

In e7356b06de044d31cf55250785bbeb058a3865a4/macports-ports (master):

feh: update to 3.8; fix +universal

Use patch provided by johnrosshunt(@gmail.com) in https://github.com/macports/macports-ports/pull/59701. I can only
test on 12.1 system; both -universal and + universal work.

closes #59701
closes #62776

Note: See TracTickets for help on using tickets.