Skip to content

Instantly share code, notes, and snippets.

@rnichollx
Created August 31, 2022 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rnichollx/82a8c803bf94fae1a3440dfa59d2a949 to your computer and use it in GitHub Desktop.
Save rnichollx/82a8c803bf94fae1a3440dfa59d2a949 to your computer and use it in GitHub Desktop.
rnicholl@rpnx-lt-04 testos % rm -rf build && cmake -S . -B build -D CMAKE_TOOLCHAIN_FILE=`readlink -f ./toolchain/kernel.cmake` -DCMAKE_ASM_COMPILER=clang -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_COMPILER_WORKS=1 -DCMAKE_C_COMPILER_WORKS=1 && cmake --build build -v
-- The C compiler identification is Clang 14.0.6
-- The CXX compiler identification is Clang 14.0.6
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /opt/local/bin/clang-mp-14
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/local/bin/clang-mp-14 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/local/bin/clang++-mp-14 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/rnicholl/testos/build
/Applications/CMake.app/Contents/bin/cmake -S/Users/rnicholl/testos -B/Users/rnicholl/testos/build --check-build-system CMakeFiles/Makefile.cmake 0
/Applications/CMake.app/Contents/bin/cmake -E cmake_progress_start /Users/rnicholl/testos/build/CMakeFiles /Users/rnicholl/testos/build//CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f klibc/CMakeFiles/klibc.dir/build.make klibc/CMakeFiles/klibc.dir/depend
cd /Users/rnicholl/testos/build && /Applications/CMake.app/Contents/bin/cmake -E cmake_depends "Unix Makefiles" /Users/rnicholl/testos /Users/rnicholl/testos/klibc /Users/rnicholl/testos/build /Users/rnicholl/testos/build/klibc /Users/rnicholl/testos/build/klibc/CMakeFiles/klibc.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f klibc/CMakeFiles/klibc.dir/build.make klibc/CMakeFiles/klibc.dir/build
make[2]: Nothing to be done for `klibc/CMakeFiles/klibc.dir/build'.
[ 0%] Built target klibc
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/rpnx-kernel.dir/build.make CMakeFiles/rpnx-kernel.dir/depend
cd /Users/rnicholl/testos/build && /Applications/CMake.app/Contents/bin/cmake -E cmake_depends "Unix Makefiles" /Users/rnicholl/testos /Users/rnicholl/testos /Users/rnicholl/testos/build /Users/rnicholl/testos/build /Users/rnicholl/testos/build/CMakeFiles/rpnx-kernel.dir/DependInfo.cmake --color=
Dependee "/Users/rnicholl/testos/build/CMakeFiles/rpnx-kernel.dir/DependInfo.cmake" is newer than depender "/Users/rnicholl/testos/build/CMakeFiles/rpnx-kernel.dir/depend.internal".
Dependee "/Users/rnicholl/testos/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/rnicholl/testos/build/CMakeFiles/rpnx-kernel.dir/depend.internal".
Scanning dependencies of target rpnx-kernel
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/rpnx-kernel.dir/build.make CMakeFiles/rpnx-kernel.dir/build
[ 33%] Building ASM object CMakeFiles/rpnx-kernel.dir/boot.s.obj
/opt/local/bin/clang-mp-14 -I/Users/rnicholl/testos/klibc/include --target=arm64-v8-none -ffreestanding -nostdlib -static -static -o CMakeFiles/rpnx-kernel.dir/boot.s.obj -c /Users/rnicholl/testos/boot.s
clang: warning: argument unused during compilation: '-ffreestanding' [-Wunused-command-line-argument]
[ 66%] Building CXX object CMakeFiles/rpnx-kernel.dir/kernel.cpp.obj
/opt/local/bin/clang++-mp-14 -I/Users/rnicholl/testos/klibc/include --target=arm64-v8-none -ffreestanding -nostdinc -nostdlib -static -nostdlib++ -std=c++17 -MD -MT CMakeFiles/rpnx-kernel.dir/kernel.cpp.obj -MF CMakeFiles/rpnx-kernel.dir/kernel.cpp.obj.d -o CMakeFiles/rpnx-kernel.dir/kernel.cpp.obj -c /Users/rnicholl/testos/kernel.cpp
[100%] Linking CXX executable rpnx-kernel.elf
/Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/rpnx-kernel.dir/link.txt --verbose=1
/opt/local/bin/ld.lld-mp-14 -T /Users/rnicholl/testos/linker.ld -O2 -nostdlib "CMakeFiles/rpnx-kernel.dir/boot.s.obj" "CMakeFiles/rpnx-kernel.dir/kernel.cpp.obj" -o rpnx-kernel.elf
[100%] Built target rpnx-kernel
/Applications/CMake.app/Contents/bin/cmake -E cmake_progress_start /Users/rnicholl/testos/build/CMakeFiles 0
rnicholl@rpnx-lt-04 testos %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment