Opened 11 years ago

Closed 11 years ago

#41358 closed defect (fixed)

qt4-mac +universal variant build error on Mavericks

Reported by: Serge3leo (Serguei E. Leontiev) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: raphael-st (Raphael Straub)
Port: qt4-mac

Description

This is a bug, like the #41314.

$ sudo port self update
$ sudo port build qt4-mac +universal

Log:

:info:build /usr/bin/clang++ -L/opt/local/lib -Wl,-headerpad_max_install_names -
arch x86_64 -arch i386 -arch -arch -Wl,-syslibroot,/Applications/Xcode.app/Conte
nts/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -Xarch_x86_64 -mmacosx-version-min=10.9 -Xarch_x86_64 -mmacosx-version-min=10.9 -Xarch_i386 -mmacosx-version-min=10.9 -o ../../../bin/moc release-shared/moc.o release-shared/preprocessor.o release-shared/generator.o release-shared/parser.o release-shared/token.o release-shared/main.o    -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.8.5/src/tools/bootstrap -lbootstrap -framework CoreServices -lz -lz
:info:build clang: error: invalid arch name '-arch -arch'
:info:build make[1]: *** [../../../bin/moc] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.8.5/src/tools/moc'

Attachments (1)

main.log (676.5 KB) - added by Serge3leo (Serguei E. Leontiev) 11 years ago.

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by Serge3leo (Serguei E. Leontiev)

Attachment: main.log added

comment:1 Changed 11 years ago by Serge3leo (Serguei E. Leontiev)

Workaround, with `sudo port edit qt4-mac', change from:

# clear LD archflags since somehow they impact how qmake is created,
# which in turn messes up LDFLAGS in most created Makefiles.

configure.ld_archflags

# Use compiler.cpath and compiler.library_path for all -I and -L

to:

# clear LD archflags since somehow they impact how qmake is created,
# which in turn messes up LDFLAGS in most created Makefiles.

configure.ldflags 
configure.universal_ldflags 
configure.ld_archflags

# Use compiler.cpath and compiler.library_path for all -I and -L
Last edited 11 years ago by Serge3leo (Serguei E. Leontiev) (previous) (diff)

comment:2 Changed 11 years ago by michaelld (Michael Dickens)

I knew removing those flags would come back to bite me. I'll test a fix tomorrow morning (when I'm running 10.9 again). It's something to do with how QMake is being built, but I've never been able to figure out where or why this happens. It's easiest to do what you did and just void the flags in the environment.

comment:3 Changed 11 years ago by raphael-st (Raphael Straub)

We have the same problem with libQGLViewer, which uses the qmake portgroup, see #41359.

comment:4 Changed 11 years ago by raphael-st (Raphael Straub)

Cc: raphael@… added

Cc Me!

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

Cc: michaelld@… removed
Owner: changed from macports-tickets@… to michaelld@…

comment:6 Changed 11 years ago by michaelld (Michael Dickens)

Hopefully fixed in r113367. This change seems to work for me on 10.8 and 10.9, so hopefully it does others too :)

comment:7 Changed 11 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.