Hello I am trying to compile port: llvm15 but i keep getting the following errors:
This issue is both on 12.4 and 13.1 with all the latest kernel patches. And cmake version 3.25.1. I have 4GB ram, UFS filesystem, 4GB swap partition and another 4gb swap file. What is strange is that it always compiles successfully until the following file is reached:
It never fails before this file. All other .cpp files before reaching this file are compiled successfully.
many thanks,
nedry
Code:
Feb 25 05:25:26 12-4-devel kernel: swap_pager_getswapspace(32): failed
Feb 25 05:25:27 12-4-devel syslogd: last message repeated 3 times
Feb 25 05:25:27 12-4-devel kernel: swap_pager_getswapspace(20): failed
Feb 25 05:25:27 12-4-devel kernel: swap_pager_getswapspace(32): failed
Feb 25 05:25:27 12-4-devel kernel: swap_pager_getswapspace(20): failed
Feb 25 05:25:27 12-4-devel kernel: swap_pager_getswapspace(18): failed
Feb 25 05:25:27 12-4-devel kernel: swap_pager_getswapspace(9): failed
Feb 25 05:25:27 12-4-devel kernel: swap_pager_getswapspace(6): failed
Feb 25 05:25:28 12-4-devel kernel: pid 48725 (c++), jid 0, uid 0, was killed: out of swap space
This issue is both on 12.4 and 13.1 with all the latest kernel patches. And cmake version 3.25.1. I have 4GB ram, UFS filesystem, 4GB swap partition and another 4gb swap file. What is strange is that it always compiles successfully until the following file is reached:
Code:
[ 96% 8836/9148] /usr/bin/c++ -DFLANG_LITTLE_ENDIAN=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/ports/devel/llvm15/work/.build/tools/flang/lib/Lower -I/usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/flang/lib/Lower -I/usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/flang/include -I/usr/ports/devel/llvm15/work/.build/tools/flang/include -I/usr/ports/devel/llvm15/work/.build/include -I/usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/llvm/include -isystem /usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/llvm/../mlir/include -isystem /usr/ports/devel/llvm15/work/.build/tools/mlir/include -isystem /usr/ports/devel/llvm15/work/.build/tools/clang/include -isystem /usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/llvm/../clang/include -O2 -pipe -DNDEBUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DNDEBUG -isystem /usr/local/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-string-conversion -Wno-unused-command-line-argument -Wstring-conversion -Wcovered-switch-default -Wno-nested-anon-types -O2 -pipe -DNDEBUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DNDEBUG -isystem /usr/local/include -DNDEBUG -fno-exceptions -std=c++17 -MD -MT tools/flang/lib/Lower/CMakeFiles/obj.FortranLower.dir/ConvertExpr.cpp.o -MF tools/flang/lib/Lower/CMakeFiles/obj.FortranLower.dir/ConvertExpr.cpp.o.d -o tools/flang/lib/Lower/CMakeFiles/obj.FortranLower.dir/ConvertExpr.cpp.o -c /usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/flang/lib/Lower/ConvertExpr.cpp
FAILED: tools/flang/lib/Lower/CMakeFiles/obj.FortranLower.dir/ConvertExpr.cpp.o
/usr/bin/c++ -DFLANG_LITTLE_ENDIAN=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/ports/devel/llvm15/work/.build/tools/flang/lib/Lower -I/usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/flang/lib/Lower -I/usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/flang/include -I/usr/ports/devel/llvm15/work/.build/tools/flang/include -I/usr/ports/devel/llvm15/work/.build/include -I/usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/llvm/include -isystem /usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/llvm/../mlir/include -isystem /usr/ports/devel/llvm15/work/.build/tools/mlir/include -isystem /usr/ports/devel/llvm15/work/.build/tools/clang/include -isystem /usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/llvm/../clang/include -O2 -pipe -DNDEBUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DNDEBUG -isystem /usr/local/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-string-conversion -Wno-unused-command-line-argument -Wstring-conversion -Wcovered-switch-default -Wno-nested-anon-types -O2 -pipe -DNDEBUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DNDEBUG -isystem /usr/local/include -DNDEBUG -fno-exceptions -std=c++17 -MD -MT tools/flang/lib/Lower/CMakeFiles/obj.FortranLower.dir/ConvertExpr.cpp.o -MF tools/flang/lib/Lower/CMakeFiles/obj.FortranLower.dir/ConvertExpr.cpp.o.d -o tools/flang/lib/Lower/CMakeFiles/obj.FortranLower.dir/ConvertExpr.cpp.o -c /usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/flang/lib/Lower/ConvertExpr.cpp
ninja: build stopped: subcommand failed.
It never fails before this file. All other .cpp files before reaching this file are compiled successfully.
many thanks,
nedry