[Craft] [Bug 480007] New: craft kcalc fails to build. CMake directory pointers are wrong. May be related

Richard Francis bugzilla_noreply at kde.org
Thu Jan 18 18:03:52 GMT 2024


https://bugs.kde.org/show_bug.cgi?id=480007

            Bug ID: 480007
           Summary: craft kcalc fails to build. CMake directory pointers
                    are wrong. May be related
    Classification: Developer tools
           Product: Craft
           Version: unspecified
          Platform: Compiled Sources
                OS: macOS
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Core
          Assignee: vonreth at kde.org
          Reporter: richard at gerspatial.com
                CC: kde-windows at kde.org
  Target Milestone: ---

Created attachment 165016
  --> https://bugs.kde.org/attachment.cgi?id=165016&action=edit
CMake output log

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug
symbols.
See
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
I installed a fresh version of craft on macOS 14.1.1 (Sonoma) using the recipe
at https://community.kde.org/Get_Involved/development/Mac. I chose Qt6 and
arm64 as options (I'm running on Apple Silicon - a MacBook Pro with Apple M1
Max processor). I have a standard install of Xcode 15.2, and added the command
line tools following the above-mentioned recipe.

The first test is to build kcalc. This fails as it does not build the
executable. 

A possible connection is with the lines in CMakeOutput.log (attached):
ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/local/include"
ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/Library/Frameworks"

These do not point to the right place. The actual directory structure is
(starting at SDKs)
SDKs/MacOSX14.2.sdk/usr/include
SDKs/MacOSX14.2.sdk/System/Library/Frameworks

and in each case the MacOSX14.2.sdk is an alias to MacOSX.sdk

STEPS TO REPRODUCE
1. Install craft on an Apple Silicon machine running macOS14.1.1 following
https://community.kde.org/Get_Involved/development/Mac

2. using the default zsh shell, enter the craft environment with: source
~/CraftRoot/craft/craftenv.sh
3. enter craft kcalc

OBSERVED RESULT
failure to build

EXPECTED RESULT
built app, according to the recipe mentioned

SOFTWARE/OS VERSIONS
Windows: 
macOS: 14.1.1 (Sonoma)
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 6

ADDITIONAL INFORMATION
I seem to only be able to attach one file, so I've attached CMakeOutput.log.
There is also CMakeError.log, which I will copy here:
-----------------------
Compiling the C compiler identification source file "CMakeCCompilerId.c"
failed.
Compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang 
Build flags: -fdiagnostics-color=always
Id flags:  

The output was:
1
ld: library 'System' not found
clang: ;1;31merror: [0m[1mlinker command failed with exit code 1 (use -v to
see invocation)[0m


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp"
failed.
Compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ 
Build flags: 
Id flags:  

The output was:
1
ld: library 'c++' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
-----------------------

Yet at the start of the attached CMakeOutput.log, these lines do not show an
error.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Kde-windows mailing list