Opened 11 years ago

Closed 11 years ago

#43065 closed defect (fixed)

akonadi fails to build with Xcode 5.1 due to unrecognized -fno-check-new clang argument

Reported by: sk-public@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: NicosPavlov, openmaintainer@…
Port: akonadi

Description

Building on Xcode 5.1 (clang version 503.0.38) fails due to the '-fno-check-new' option, which clang doesn't recognize:

:info:build Building CXX object shared/CMakeFiles/akonadi_shared.dir/akapplication.cpp.o
:info:build cd /Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build/shared && /usr/bin/clang++   -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_KEYWORDS -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -pipe -Os -arch x86_64  -std=c++0x -Wnon-virtual-dtor -Wundef -Wcast-align -Wchar-subscripts -Wall -Wextra -Wpointer-arith -Wformat-security -fno-check-new -fno-common -DNDEBUG -arch x86_64 -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build/shared -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/akonadi-1.11.0/shared -isystem /Users/digikam-build/include -isystem /Users/digikam-build/include/QtGui -isystem /Users/digikam-build/include/QtCore -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/akonadi-1.11.0 -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build -I/Users/digikam-build/include/QtDesigner -I/Users/digikam-build/include/QtDeclarative -I/Users/digikam-build/include/QtScriptTools -I/Users/digikam-build/include/QtDBus -I/Users/digikam-build/include/QtXml -I/Users/digikam-build/include/QtSql -I/Users/digikam-build/include/QtOpenGL -I/Users/digikam-build/include/QtMultimedia -I/Users/digikam-build/include/QtNetwork -I/Users/digikam-build/include/phonon -I/Users/digikam-build/include/QtXmlPatterns -I/Users/digikam-build/include/QtWebKit -I/Users/digikam-build/include/QtHelp -I/Users/digikam-build/include/QtUiTools -I/Users/digikam-build/include/QtTest -I/Users/digikam-build/include/QtScript -I/Users/digikam-build/include/QtSvg -I/Users/digikam-build/include/Qt3Support -I/Users/digikam-build/share/qt4/mkspecs/default    -o CMakeFiles/akonadi_shared.dir/akapplication.cpp.o -c /Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/akonadi-1.11.0/shared/akapplication.cpp
:info:build Building CXX object shared/CMakeFiles/akonadi_shared.dir/akdbus.cpp.o
:info:build cd /Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build/shared && /usr/bin/clang++   -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_KEYWORDS -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -pipe -Os -arch x86_64  -std=c++0x -Wnon-virtual-dtor -Wundef -Wcast-align -Wchar-subscripts -Wall -Wextra -Wpointer-arith -Wformat-security -fno-check-new -fno-common -DNDEBUG -arch x86_64 -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build/shared -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/akonadi-1.11.0/shared -isystem /Users/digikam-build/include -isystem /Users/digikam-build/include/QtGui -isystem /Users/digikam-build/include/QtCore -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/akonadi-1.11.0 -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build -I/Users/digikam-build/include/QtDesigner -I/Users/digikam-build/include/QtDeclarative -I/Users/digikam-build/include/QtScriptTools -I/Users/digikam-build/include/QtDBus -I/Users/digikam-build/include/QtXml -I/Users/digikam-build/include/QtSql -I/Users/digikam-build/include/QtOpenGL -I/Users/digikam-build/include/QtMultimedia -I/Users/digikam-build/include/QtNetwork -I/Users/digikam-build/include/phonon -I/Users/digikam-build/include/QtXmlPatterns -I/Users/digikam-build/include/QtWebKit -I/Users/digikam-build/include/QtHelp -I/Users/digikam-build/include/QtUiTools -I/Users/digikam-build/include/QtTest -I/Users/digikam-build/include/QtScript -I/Users/digikam-build/include/QtSvg -I/Users/digikam-build/include/Qt3Support -I/Users/digikam-build/share/qt4/mkspecs/default    -o CMakeFiles/akonadi_shared.dir/akdbus.cpp.o -c /Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/akonadi-1.11.0/shared/akdbus.cpp
:info:build Building CXX object shared/CMakeFiles/akonadi_shared.dir/akdebug.cpp.o
:info:build cd /Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build/shared && /usr/bin/clang++   -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_KEYWORDS -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -pipe -Os -arch x86_64  -std=c++0x -Wnon-virtual-dtor -Wundef -Wcast-align -Wchar-subscripts -Wall -Wextra -Wpointer-arith -Wformat-security -fno-check-new -fno-common -DNDEBUG -arch x86_64 -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build/shared -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/akonadi-1.11.0/shared -isystem /Users/digikam-build/include -isystem /Users/digikam-build/include/QtGui -isystem /Users/digikam-build/include/QtCore -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/akonadi-1.11.0 -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build -I/Users/digikam-build/include/QtDesigner -I/Users/digikam-build/include/QtDeclarative -I/Users/digikam-build/include/QtScriptTools -I/Users/digikam-build/include/QtDBus -I/Users/digikam-build/include/QtXml -I/Users/digikam-build/include/QtSql -I/Users/digikam-build/include/QtOpenGL -I/Users/digikam-build/include/QtMultimedia -I/Users/digikam-build/include/QtNetwork -I/Users/digikam-build/include/phonon -I/Users/digikam-build/include/QtXmlPatterns -I/Users/digikam-build/include/QtWebKit -I/Users/digikam-build/include/QtHelp -I/Users/digikam-build/include/QtUiTools -I/Users/digikam-build/include/QtTest -I/Users/digikam-build/include/QtScript -I/Users/digikam-build/include/QtSvg -I/Users/digikam-build/include/Qt3Support -I/Users/digikam-build/share/qt4/mkspecs/default    -o CMakeFiles/akonadi_shared.dir/akdebug.cpp.o -c /Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/akonadi-1.11.0/shared/akdebug.cpp
:info:build Building CXX object shared/CMakeFiles/akonadi_shared.dir/akstandarddirs.cpp.o
:info:build cd /Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build/shared && /usr/bin/clang++   -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_KEYWORDS -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -pipe -Os -arch x86_64  -std=c++0x -Wnon-virtual-dtor -Wundef -Wcast-align -Wchar-subscripts -Wall -Wextra -Wpointer-arith -Wformat-security -fno-check-new -fno-common -DNDEBUG -arch x86_64 -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build/shared -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/akonadi-1.11.0/shared -isystem /Users/digikam-build/include -isystem /Users/digikam-build/include/QtGui -isystem /Users/digikam-build/include/QtCore -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/akonadi-1.11.0 -I/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build -I/Users/digikam-build/include/QtDesigner -I/Users/digikam-build/include/QtDeclarative -I/Users/digikam-build/include/QtScriptTools -I/Users/digikam-build/include/QtDBus -I/Users/digikam-build/include/QtXml -I/Users/digikam-build/include/QtSql -I/Users/digikam-build/include/QtOpenGL -I/Users/digikam-build/include/QtMultimedia -I/Users/digikam-build/include/QtNetwork -I/Users/digikam-build/include/phonon -I/Users/digikam-build/include/QtXmlPatterns -I/Users/digikam-build/include/QtWebKit -I/Users/digikam-build/include/QtHelp -I/Users/digikam-build/include/QtUiTools -I/Users/digikam-build/include/QtTest -I/Users/digikam-build/include/QtScript -I/Users/digikam-build/include/QtSvg -I/Users/digikam-build/include/Qt3Support -I/Users/digikam-build/share/qt4/mkspecs/default    -o CMakeFiles/akonadi_shared.dir/akstandarddirs.cpp.o -c /Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/akonadi-1.11.0/shared/akstandarddirs.cpp
:info:build clang: error: unknown argument: '-fno-check-new' [-Wunused-command-line-argument-hard-error-in-future]
:info:build clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
:info:build clang: error: unknown argument: '-fno-check-new' [-Wunused-command-line-argument-hard-error-in-future]
:info:build clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
:info:build make[2]: *** [shared/CMakeFiles/akonadi_shared.dir/akapplication.cpp.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build make[2]: *** [shared/CMakeFiles/akonadi_shared.dir/akcrash.cpp.o] Error 1
:info:build clang: error: unknown argument: '-fno-check-new' [-Wunused-command-line-argument-hard-error-in-future]
:info:build clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
:info:build clang: error: unknown argument: '-fno-check-new' [-Wunused-command-line-argument-hard-error-in-future]
:info:build clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
:info:build clang: error: unknown argument: '-fno-check-new' [-Wunused-command-line-argument-hard-error-in-future]
:info:build clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
:info:build make[2]: *** [shared/CMakeFiles/akonadi_shared.dir/akdbus.cpp.o] Error 1
:info:build make[2]: *** [shared/CMakeFiles/akonadi_shared.dir/akstandarddirs.cpp.o] Error 1
:info:build make[2]: *** [shared/CMakeFiles/akonadi_shared.dir/akdebug.cpp.o] Error 1
:info:build make[2]: Leaving directory `/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build'
:info:build make[1]: *** [shared/CMakeFiles/akonadi_shared.dir/all] Error 2
:info:build make[1]: Leaving directory `/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build'
:info:build Command failed:  cd "/Users/digikam-build/var/macports/build/_Users_digikam-build_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/work/build" && /usr/bin/make -j5 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port akonadi returned: command execution failed
:debug:build Error code: CHILDSTATUS 96251 2

Attachments (1)

akonadi-main.log (137.1 KB) - added by sk-public@… 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by sk-public@…

Attachment: akonadi-main.log added

comment:1 Changed 11 years ago by sk-public@…

It appears that the -fno-check-new compiler option was deleted from the akonadi source by revision 938e9231 on 12-22-2013 (according to https://projects.kde.org/projects/kdesupport/akonadi/repository/revisions/master/changes/CMakeLists.txt). So my guess is that updating the akonadi version to 1.11.80 or 1.12 should address the issue.

comment:2 Changed 11 years ago by NicosPavlov

Resolution: fixed
Status: newclosed

Thanks for the report. As you mentioned, upgrading to version 1.12 solved the issue, as committed in r118252.

Note: See TracTickets for help on using tickets.