• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling error on Ubuntu 14.04

w19787

New Member
Joined
Sep 30, 2016
Messages
6
Reaction score
0
Dear,

i encounter following issue when complie ota client on Ubuntu 14.04. Any suggestion? thanks.

[ 0%] Building CXX object CMakeFiles/otclient.dir/src/framework/luafunctions.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make[2]: *** [CMakeFiles/otclient.dir/src/framework/luafunctions.cpp.o] Error 4
make[1]: *** [CMakeFiles/otclient.dir/all] Error 2
make: *** [all] Error 2


w19787@ubuntu:~/work/otclient/build$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
 
in makeError.log file, it seems to be "c++: error: unrecognized command line option '-stdlib=libc++'". how to solve the problem?

Performing C++ SOURCE FILE Test COMPILER_KNOWS_STDLIB failed with the following output:
Change Dir: /home/w19787/work/otclient/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3113322068/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3113322068.dir/build.make CMakeFiles/cmTryCompileExec3113322068.dir/build
make[1]: Entering directory `/home/w19787/work/otclient/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/w19787/work/otclient/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3113322068.dir/src.cxx.o
/usr/bin/c++ -std=c++11 -DCOMPILER_KNOWS_STDLIB -stdlib=libc++ -o CMakeFiles/cmTryCompileExec3113322068.dir/src.cxx.o -c /home/w19787/work/otclient/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option '-stdlib=libc++'
make[1]: Leaving directory `/home/w19787/work/otclient/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec3113322068.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec3113322068/fast] Error 2

Source file was:
int main() { return 0;}
 
Just quick update. this thread can be closed.

with the turn off the compile flag ot use libstdc++, there is no more cmake error.

for the c++ internal error for luafunctions.cpp. it works after i increase the Ubuntu vm memory size to 2GB.

now i have otaclient compiled on 14.04.
 

Similar threads

Back
Top