[MacPorts] #60418: qt4-creator-mac @2.8.1_3 fails building on 10.5.8 PPC

MacPorts noreply at macports.org
Thu Apr 30 23:22:28 UTC 2020


#60418: qt4-creator-mac @2.8.1_3 fails building on 10.5.8 PPC
------------------------+-----------------------------
 Reporter:  udbraumann  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.2
 Keywords:  leopard     |       Port:  qt4-creator-mac
------------------------+-----------------------------
 While upgrading `qt4-creator-mac` from `2.8.1_2` to `2.8.1_3` compiling
 ends up in severe trouble concerning the apparently bundled `botan`:


 {{{
 ...
 :info:build /usr/bin/g++-4.2 -c -pipe -mmacosx-version-min=10.5 -fPIC
 -ansi -fpermissive -finline-functions -Wno-long-long -O2 -arch ppc
 -fvisibility=hidden -Wall -W -fPIC -DQSSH_LIBRARY
 -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII
 -DQT_NO_CAST_FROM_ASCII -DBOTAN_DLL= -DBOTAN_TARGET_OS_HAS_GETTIMEOFDAY
 -DBOTAN_HAS_ALLOC_MMAP -DBOTAN_HAS_ENTROPY_SRC_DEV_RANDOM
 -DBOTAN_HAS_ENTROPY_SRC_EGD -DBOTAN_HAS_ENTROPY_SRC_FTW
 -DBOTAN_HAS_ENTROPY_SRC_UNIX -DBOTAN_HAS_MUTEX_PTHREAD
 -DBOTAN_HAS_PIPE_UNIXFD_IO -DBOTAN_TARGET_OS_IS_DARWIN
 -DBOTAN_BUILD_COMPILER_IS_GCC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB
 -DQT_CORE_LIB -DQT_SHARED -I/opt/local/libexec/qt4/share/mkspecs/macx-g++
 -I. -I.moc/release-shared
 -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers
 -I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
 -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers
 -I../../../src -I../../libs
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_qt4
 -creator-mac/qt4-creator-mac/work/qt-creator-2.8.1-src/tools
 -I../../plugins -I../3rdparty
 -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers
 -I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
 -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers
 -I/opt/local/libexec/qt4/include -I.uic
 -F/opt/local/libexec/qt4/Library/Frameworks -F/opt/local/libexec/qt4/lib
 -o .obj/release-shared/botan.o ../3rdparty/botan/botan.cpp
 :info:build ../3rdparty/botan/botan.cpp:46252:4: warning: #warning "No
 method of calling CPUID for this compiler"
 :info:build ../3rdparty/botan/botan.cpp:46667: warning: unused parameter
 ‘ptr’
 :info:build ../3rdparty/botan/botan.cpp:46667: warning: unused parameter
 ‘bytes’
 :info:build ../3rdparty/botan/botan.cpp:46681: warning: unused parameter
 ‘ptr’
 :info:build ../3rdparty/botan/botan.cpp:46681: warning: unused parameter
 ‘bytes’
 :info:build {standard input}:2489:Invalid mnemonic 'bswapl'
 :info:build {standard input}:2490:Invalid mnemonic 'bswapl'
 ...
 }}}
 and hundreds of such lines von `Invalid mnemonic 'bswapl'` follow, but
 suddenly some errors are reported:

 {{{
 ...
 :info:build {standard input}:13835:Invalid mnemonic 'bswapl'
 :info:build ../3rdparty/botan/botan.cpp: In function ‘void
 Botan::bigint_linmul2(Botan::word*, size_t, Botan::word)’:
 :info:build ../3rdparty/botan/botan.cpp:2469: error: unknown register name
 ‘%edx’ in ‘asm’
 :info:build ../3rdparty/botan/botan.cpp:2469: error: unknown register name
 ‘%eax’ in ‘asm’
 :info:build ../3rdparty/botan/botan.cpp: In function ‘void
 Botan::bigint_linmul3(Botan::word*, const Botan::word*, size_t,
 Botan::word)’:
 :info:build ../3rdparty/botan/botan.cpp:2482: error: unknown register name
 ‘%edx’ in ‘asm’
 :info:build ../3rdparty/botan/botan.cpp:2482: error: unknown register name
 ‘%eax’ in ‘asm’
 :info:build ../3rdparty/botan/botan.cpp: In function ‘void
 Botan::bigint_simple_sqr(Botan::word*, const Botan::word*, size_t)’:
 :info:build ../3rdparty/botan/botan.cpp:2495: error: unknown register name
 ‘%edx’ in ‘asm’
 :info:build ../3rdparty/botan/botan.cpp:2495: error: unknown register name
 ‘%eax’ in ‘asm’
 :info:build ../3rdparty/botan/botan.cpp: In function ‘void
 Botan::bigint_simple_mul(Botan::word*, const Botan::word*, size_t, const
 Botan::word*, size_t)’:
 :info:build ../3rdparty/botan/botan.cpp:2495: error: unknown register name
 ‘%edx’ in ‘asm’
 :info:build ../3rdparty/botan/botan.cpp:2495: error: unknown register name
 ‘%eax’ in ‘asm’
 :info:build ../3rdparty/botan/botan.cpp: In function ‘void
 Botan::bigint_monty_redc(Botan::word*, size_t, const Botan::word*, size_t,
 Botan::word, Botan::word*)’:
 :info:build ../3rdparty/botan/botan.cpp:2495: error: unknown register name
 ‘%edx’ in ‘asm’
 :info:build ../3rdparty/botan/botan.cpp:2495: error: unknown register name
 ‘%eax’ in ‘asm’
 :info:build {standard input}:28767:Invalid mnemonic 'rorl'
 :info:build {standard input}:28768:Invalid mnemonic 'movl'
 ...
 }}}
 and lots more assembler related complaints caused by
 `../3rdparty/botan/botan.cpp` are printed.

 I am guessing this is due to some confusion on x86 assembler code which is
 not understood by ppc? What can I do?

-- 
Ticket URL: <https://trac.macports.org/ticket/60418>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list