###前提・実現したいこと
CentOS7に「openal-soft-1.16.0-3.el7.src.rpm」をインストールしようとしています。
"linux32 rpmrebuild -e openal-soft-1.16.0-3.el7.src.rpm"とコマンドを打つと下記エラーが発生します。
このエラーを解消したいです。
###エラーメッセージ
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/libstdc++.so when searching for -lstdc++ /bin/ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status gmake[1]: *** [cmTryCompileExec3354063737] Error 1 gmake[1]: Leaving directory `/usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeTmp' gmake: *** [cmTryCompileExec3354063737/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:5 (PROJECT) -- Configuring incomplete, errors occurred! See also "/usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeOutput.log". See also "/usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeError.log". エラー: /var/tmp/rpm-tmp.wUwREU の不正な終了ステータス (%build) RPM ビルドのエラー: /var/tmp/rpm-tmp.wUwREU の不正な終了ステータス (%build)
「/usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeError.log」を見たのですが、
勉強不足のため理解できませんでした。。。
###「CMakeError.log」の内容
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /bin/c++ Build flags: -O2;-g;-pipe;-Wall;-Wp,-D_FORTIFY_SOURCE=2;-fexceptions;-fstack-protector-strong;--param=ssp-buffer-size=4;-grecord-gcc-switches;;;-m32;- march=x86-64;-mtune=generic;-mfpmath=sse;-fasynchronous-unwind-tables Id flags: The output was: 1 /bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/libstdc++.so when searching for -lstdc++ /bin/ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status Determining if the CXX compiler works failed with the following output: Change Dir: /usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeTmp Run Build Command:/bin/gmake "cmTryCompileExec1812208980/fast" /bin/gmake -f CMakeFiles/cmTryCompileExec1812208980.dir/build.make CMakeFiles/cmTryCompileExec1812208980.dir/build gmake[1]: Entering directory `/usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec1812208980.dir/testCXXCompiler.cxx.o /bin/c++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables -o CMakeFiles/cmTryCompileExec1812208980.dir/testCXXCompiler.cxx.o -c /usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeTmp/testCXXCompiler.cxx Linking CXX executable cmTryCompileExec1812208980 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1812208980.dir/link.txt --verbose=1 /bin/c++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables -Wl,-z,relro CMakeFiles/cmTryCompileExec1812208980.dir/testCXXCompiler.cxx.o -o cmTryCompileExec1812208980 -rdynamic /bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/libstdc++.so when searching for -lstdc++ /bin/ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status gmake[1]: *** [cmTryCompileExec1812208980] Error 1 gmake[1]: Leaving directory `/usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeTmp' gmake: *** [cmTryCompileExec1812208980/fast] Error 2
御教授お願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/05/11 14:49