Opened 11 years ago

Closed 10 years ago

#39724 closed defect (fixed)

jack: unable to build universal variant

Reported by: dgonyier (Dwaine Gonyier) Owned by: eu@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: jack

Description

OS X 10.6.8, xcode 4.02

I've attached /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_jack/jack/main.log

Attachments (2)

main.log (9.5 KB) - added by dgonyier (Dwaine Gonyier) 11 years ago.
main.log
main.2.log (27.3 KB) - added by narrenschip1@… 11 years ago.
built on Mac OS 10.6, XCode 3.2.6, gcc42

Download all attachments as: .zip

Change History (10)

Changed 11 years ago by dgonyier (Dwaine Gonyier)

Attachment: main.log added

main.log

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

Cc: martinvazquez.net:eu removed
Owner: changed from macports-tickets@… to eu@…
Summary: unable to build universal variant for jackjack: unable to build universal variant

Please clean and try again and attach the new log.

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

Xcode 4 on Snow Leopard is not well tested in MacPorts, because it's not freely available. See if using a different compiler helps.

comment:3 Changed 11 years ago by kgibson@…

I also have an error on Mac 10.5 on installation of Jack which I thought might have something to do with the mactypes.patch file. From my main.log ":info:build ../config/os/macosx/pThreadUtilities.h:69:21: error: MacTypes.h: No such file or directory". Mactypes file is there but is not found during the build.

Update --- I removed mactypes.patch from the portfile and Jack appears to have compiled with two errors that I believe are not related to Jack.

Last edited 11 years ago by kgibson@… (previous) (diff)

Changed 11 years ago by narrenschip1@…

Attachment: main.2.log added

built on Mac OS 10.6, XCode 3.2.6, gcc42

comment:4 Changed 11 years ago by narrenschip1@…

similar problems on Mac OS X 10.6, XCode 3.2.6: :info:build ../config/os/macosx/pThreadUtilities.h:69:21: error: MacTypes.h: No such file or directory

I tried with the default gcc, gcc42 and mp-gcc46 (port select --set gcc)

comment:5 in reply to:  4 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to narrenschip1@…:

I tried with the default gcc, gcc42 and mp-gcc46 (port select --set gcc)

MacPorts does not use the gcc select setting unless configure.compiler is set to “macports-gcc”, which it really should never be because it makes things very hard to debug. To debug using different compilers, you need to override configure.compiler on the command line.

% sudo port install jack +universal configure.compiler=gcc-4.2
% sudo port install jack +universal configure.compiler=macports-gcc-4.6

comment:6 Changed 11 years ago by Raptor007 (Raptor007)

I'm using Snow Leopard with Xcode 4.0.2, ran into the same problem when making all my ports universal:

sudo port -p upgrade --enforce-variants active +universal

At first, I solved the build error by just commenting out #include <MacTypes.h> in config/os/macosx/pThreadUtilities.h. It doesn't seem to need it, and I thought I didn't even have that file.

It later occurred to me that I forgot to check for MacTypes.h under /System. I actually do have it here:

/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacTypes.h

So I think kgibson's method (removing mactypes.patch from Portfile) is a better answer, as it will leave #include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h> which should find the file properly.

Last edited 11 years ago by Raptor007 (Raptor007) (previous) (diff)

comment:7 in reply to:  6 Changed 11 years ago by StanSanderson

Replying to blair@…:
I'm also using Snow Leopard, and was advised to rename mactypes.patch from the port file, then touch it to provide a "dummy" placeholder. Jack installed with no errors following this. (comment:3 by kgibson applies) I was also advised that subsequent of Portfiles using port selfupdate or port sync will require a manual replacement of the mactypes.patch with the empty (touched) placeholder.

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

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

Cc: jeremyhu@… added
Resolution: fixed
Status: newclosed

Jeremy fixed this in r110491.

Note: See TracTickets for help on using tickets.