質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
make

make は、ビルド作業を自動化するツールです。さまざまなファイルの最終変更時刻を比較し、従属するファイルよりも「ターゲット」のファイルが古いことがわかったときユーザーが設定していた命令を実行する事が可能です。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

ビルド

ソースコードを単体で実行可能なソフトウェアへ変換する過程をビルド(build)と呼びます

Q&A

解決済

2回答

1769閲覧

ROOTのビルド作業中、makeが強制終了する

Takai-chi

総合スコア6

make

make は、ビルド作業を自動化するツールです。さまざまなファイルの最終変更時刻を比較し、従属するファイルよりも「ターゲット」のファイルが古いことがわかったときユーザーが設定していた命令を実行する事が可能です。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

ビルド

ソースコードを単体で実行可能なソフトウェアへ変換する過程をビルド(build)と呼びます

0グッド

0クリップ

投稿2019/11/21 12:30

編集2019/11/22 01:26

前提・実現したいこと

UbuntuにROOTをインストールしようとしています。
Building ROOTの手順に従い、makeを実行するところまでできましたが、何度やっても100%完了しません。
prerequiesitesに記されているパッケージはオプションも含めてインストール済みです。

発生している問題・エラーメッセージ

xxxxx@xxxxx-virtualbox:~/root-6.18.04/obj$ make -j4 Scanning dependencies of target TBB Scanning dependencies of target VDT Scanning dependencies of target AFTERIMAGE Scanning dependencies of target LZMA ~中略~ [ 45%] Copying /home/xxxxx/root-6.18.04/tutorials/tmva/TMVAClassificationCategory.C c++: internal compiler error: 強制終了 (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions. interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/clangSema.dir/build.make:62: recipe for target 'interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/clangSema.dir/AnalysisBasedWarnings.cpp.o' failed make[2]: *** [interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/clangSema.dir/AnalysisBasedWarnings.cpp.o] Error 4 make[2]: *** ファイル 'interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/clangSema.dir/AnalysisBasedWarnings.cpp.o' を削除します make[2]: *** 未完了のジョブを待っています.... [ 45%] Copying /home/xxxxx/root-6.18.04/tutorials/tmva/TMVAClassificationCategoryApplication.C ~中略~ [ 46%] Copying /home/xxxxx/root-6.18.04/tutorials/tree/tv3.C CMakeFiles/Makefile2:9681: recipe for target 'interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/clangSema.dir/all' failed make[1]: *** [interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/clangSema.dir/all] Error 2 make[1]: *** 未完了のジョブを待っています.... [ 46%] Copying /home/xxxxx/root-6.18.04/tutorials/tree/tvdemo.C ~中略~ [ 59%] Built target move_artifacts Makefile:151: recipe for target 'all' failed make: *** [all] Error 2 xxxxx@xxxxx-virtualbox:~/root-6.18.04/obj$

試したこと

ググった結果、メモリ不足を疑い、コマンド free の出力は以下のようでした。

xxxxx@xxxxx-virtualbox:~/root-6.18.04/obj$ free -h total used free shared buff/cache available Mem: 1.9G 658M 230M 43M 1.0G 1.0G Swap: 472M 445M 27M

補足情報(FW/ツールのバージョンなど)

Ubuntu18.04.1
gcc7.4.0
ROOT6.18.04

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

自己解決

memory不足が原因だったようです。
SWAP領域を拡張すると、解決しました。

xxxxx@xxxxx-virtualbox:~$ free -h total used free shared buff/cache available Mem: 2.0G 786M 187M 18M 1.0G 1.0G Swap: 1.5G 0B 1.5G
xxxxx@xxxxx-virtualbox:~/root-6.18.04/obj$ make [ 0%] Built target AFTERIMAGE ~中略~ [100%] Built target hist2workspace xxxxx@xxxxx-virtualbox:~/root-6.18.04/obj$

投稿2019/11/28 03:48

Takai-chi

総合スコア6

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

make じゃなくて cmake の間違いでは?

こんな感じのディレクトリ配置で

~/ +- root-6.18.04/ +- root/

この操作で動きました。

shell

1cd root/ 2cmake ../root-6.18.04/ 3cmake --build . -- -j4 4source bin/thisroot.sh 5root 6

投稿2019/11/22 12:09

take88

総合スコア1379

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問