Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#59364 closed defect (fixed)

qt56-qtbase no longer builds on Lion

Reported by: lemzwerg (Werner Lemberg) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: lion Cc:
Port: qt56

Description

[macports-ports c2832840a1d5babcb37a05d32d21396a3b3102bd]

The configuring step fails. The first error is

:info:configure /opt/local/var/macports/build/_opt_macports_macports-ports_aqua_qt56/qt56-qtbase/work/qtbase-opensource-src-5.6.3/include/QtCore/5.6.3/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:460:10: error: redefinition of '__bsrd' as different kind of symbol
:info:configure unsigned _bit_scan_reverse(unsigned val)
:info:configure          ^
:info:configure /opt/local/libexec/llvm-9.0/lib/clang/9.0.0/include/ia32intrin.h:73:30: note: expanded from macro '_bit_scan_reverse'
:info:configure #define _bit_scan_reverse(A) __bsrd((A))
:info:configure                              ^
:info:configure /opt/local/libexec/llvm-9.0/lib/clang/9.0.0/include/ia32intrin.h:47:1: note: previous definition is here
:info:configure __bsrd(int __A) {
:info:configure ^

Log file is attached.

Attachments (2)

main.log (149.1 KB) - added by lemzwerg (Werner Lemberg) 5 years ago.
Log file of failed qt56-qtbase build
main.2.log (194.7 KB) - added by lemzwerg (Werner Lemberg) 5 years ago.
log file for qt56-qtbase (macports-ports commit 1ef2e882d33333e629ca489414b7d9d4c2e5f435)

Download all attachments as: .zip

Change History (8)

Changed 5 years ago by lemzwerg (Werner Lemberg)

Attachment: main.log added

Log file of failed qt56-qtbase build

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Owner: set to MarcusCalhoun-Lopez
Status: newassigned

comment:2 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

In a499a38fd9cdfdc9cdf06622bcad2c73c4e5112b/macports-ports (master):

qt5*-qtbase: don't duplicate Clang provided library

Qt assumes that Intel's Intrinsics are not provided by Clang.
This assumption is incorrect for recent versions of Clang.
See

https://github.com/llvm/llvm-project/commit/e54093fcc0a651df14040a61fc8efdd338389afa

Fixes #59364

comment:3 Changed 5 years ago by lemzwerg (Werner Lemberg)

[1ef2e882d33333e629ca489414b7d9d4c2e5f435]

Thanks for the fix, however, there still seem to be problems:

:info:configure /opt/local/var/macports/build/_opt_macports_macports-ports_aqua_qt56/qt56-qtbase/work/qtbase-opensource-src-5.6.3/include/QtCore/5.6.3/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:460:10: error: redefinition of '__bsrd' as different kind of symbol
:info:configure unsigned _bit_scan_reverse(unsigned val)
:info:configure          ^
:info:configure /opt/local/libexec/llvm-9.0/lib/clang/9.0.0/include/ia32intrin.h:73:30: note: expanded from macro '_bit_scan_reverse'
:info:configure #define _bit_scan_reverse(A) __bsrd((A))
:info:configure                              ^
:info:configure /opt/local/libexec/llvm-9.0/lib/clang/9.0.0/include/ia32intrin.h:47:1: note: previous definition is here
:info:configure __bsrd(int __A) {
:info:configure ^

New log file attached.

Changed 5 years ago by lemzwerg (Werner Lemberg)

Attachment: main.2.log added

log file for qt56-qtbase (macports-ports commit 1ef2e882d33333e629ca489414b7d9d4c2e5f435)

comment:4 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

I can no longer reproduce this problem.

Looking through your log file, however, makes me think there is a different problem.
ICU was recently updated, and that seems to be affecting your build.
My suggestion is to run:

  • sudo port selfupdate
  • sudo port upgrade outdated
  • sudo port clean qt56-qtbase
  • sudo port install qt56-qtbase

If the problem persists, please post the new log.

comment:5 Changed 5 years ago by lemzwerg (Werner Lemberg)

It now worked. Thanks!

comment:6 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

See #62051: the fix used was not sufficient for Xcode 11.4 (which is based on LLVM clang 9.0) and later.

Note: See TracTickets for help on using tickets.