I launched 2 cheap VPS (1core 2gb ram) in parallel to save some time.
Below I will present what I did, I will try to present step by step ..
Start ~ 15:00
############################
#ubuntu 18.4 update to 20.1#
############################
-gcc-10.3.0 - fail 2 Errors 16:49
-gcc-9.1.0 - start 16:50 21:30 fail
-gcc-9.2.0 - still compile when write this post.
###########################
# ubuntu 18.4 #
###########################
-gcc-10.3.0 - fail 2 Errors
===========
-gcc-9.2.0 // work
===========
https://ftp.gwdg.de/pub/misc/gcc/releases/gcc-9.2.0/
Installing Requirements
Code: Select all
sudo apt install build-essential libncurses-dev bison flex libssl-dev libelf-dev gcc-multilib
./contrib/download_prerequisites
find /usr/ -name crti*
Then Output should be as:
/usr/lib/x86_64-linux-gnu/crti.o
Code: Select all
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
cd gcc-9.2.0
./configure
make -j $(nproc)
sudo make install
sudo update-alternatives --install /usr/bin/gcc gcc /usr/local/bin/gcc 50
==============
cmake 3.22.1
==============
Code: Select all
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates gnupg software-properties-common wget[code]
After that is finished
[code]wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
Next add the updated repository by typing in the following
Code: Select all
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
sudo apt-get update
Finally
And it should be updated to the latest version. - work
==============
Ninja 1.8.2
==============
Code: Select all
sudo wget https://github.com/ninja-build/ninja/archive/refs/heads/master.zip
cmake -Bbuild-cmake
cmake --build build-cmake
============================================
clang version 9.0.0 (tags/RELEASE_900/final)
============================================
---------------------------------------------
Code: Select all
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release //work
---------------------------------------------
-- Build files have been written to: /home/polserver-master/bin-build
----------------------------------------
cmake --build . --config Release -- -j 2 //dont work
----------------------------------------
CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at CMakeLists.txt:31 (CMAKE_POLICY):
The OLD behavior for policy CMP0054 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:32 (CMAKE_POLICY):
The OLD behavior for policy CMP0045 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:33 (CMAKE_POLICY):
The OLD behavior for policy CMP0042 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:38 (CMAKE_POLICY):
The OLD behavior for policy CMP0059 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:39 (CMAKE_POLICY):
The OLD behavior for policy CMP0054 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
CMakeLists.txt:43 (find_package)
=================
when use
=================
####################################
## polserver - 100.1.0
## Never Gonna Give You Up
####################################
## CMake Version 3.22.1
## Generator Ninja
## Output Dir: /home/polserver-master/bin
Build type: Release
Compiler: GNU 9.2.0
Detected architecture is 64 bit
Platform is Little Endian
Compiling on processor x86_64
CMake Warning at cmake/init.cmake:260 (message):
Git not found unable to store revision
Call Stack (most recent call first):
CMakeLists.txt:129 (git_revision_target)
* antlr
* boost
- will build in /home/polserver-master/lib/boost_1_74_0 toolset=gcc
- will not extract
* escriptgrammarlib
* format
* kaitai
* curl
* tinyxml
* clib
* bscript
* plib
* pol
* ecompile
* runecl
* uoconvert
* uotool
* poltool
* (doc)
* (support)
activating test target
Git or clang-format not found for target 'clang_format'
adding test targets
test_escript
test_pol
test_pol_fixture
test_pol_only
unittest_pol
./build_linux.sh: 6: ./build_linux.sh: --: not found
#### Using 2 parallel compile jobs ###
make: *** No targets specified and no makefile found. Stop.
==============
when i download
polserver100.0.0-LINUX-Ubuntu18-2021-02-28.zip
from page and try to start ./pol
./pol: error while loading shared libraries: libmysqlclient.so.21: cannot open shared object file: No such file or directory
binary is from ubuntu 20, i have 18 on one vps. second vps still compile with ubuntu 20.x