GithubHelp home page GithubHelp logo

f0cii / moxt-cpp Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 156 KB

moxt-cpp is a core part of the moxt quantitative trading library, serving as its foundational C++ implementation for the Mojo-based trading system.

License: MIT License

Shell 0.02% C++ 86.68% Lua 12.97% Dockerfile 0.33%

moxt-cpp's People

Contributors

f0cii avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

moxt-cpp's Issues

使用Docker容器编译失败

jasper@jasper:~/Documents/Programming/Mojo/MojoProject/moxt-cpp$ sudo docker build -t moxt-cpp -f moxt-cpp.Dockerfile .
[+] Building 710.8s (12/12) FINISHED                                                                                 docker:default
 => [internal] load build definition from moxt-cpp.Dockerfile                                                                  0.0s
 => => transferring dockerfile: 1.38kB                                                                                         0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                                3.8s
 => [internal] load .dockerignore                                                                                              0.0s
 => => transferring context: 2B                                                                                                0.0s
 => [1/9] FROM docker.io/library/ubuntu:22.04@sha256:e6173d4dc55e76b87c4af8db8821b1feae4146dd47341e4d431118c7dd060a74          6.3s
 => => resolve docker.io/library/ubuntu:22.04@sha256:e6173d4dc55e76b87c4af8db8821b1feae4146dd47341e4d431118c7dd060a74          0.0s
 => => sha256:e6173d4dc55e76b87c4af8db8821b1feae4146dd47341e4d431118c7dd060a74 1.13kB / 1.13kB                                 0.0s
 => => sha256:cb2af41f42b9c9bc9bcdc7cf1735e3c4b3d95b2137be86fd940373471a34c8b0 424B / 424B                                     0.0s
 => => sha256:e34e831650c1bb0be9b6f61c6755749cb8ea2053ba91c6cda27fded9e089811f 2.30kB / 2.30kB                                 0.0s
 => => sha256:29202e855b2021a2d7f92800619ed5f5e8ac402e267cfbb3d29a791feb13c1ee 29.55MB / 29.55MB                               4.6s
 => => extracting sha256:29202e855b2021a2d7f92800619ed5f5e8ac402e267cfbb3d29a791feb13c1ee                                      1.5s
 => [2/9] RUN apt-get update &&     apt-get install -y     build-essential     cmake     wget                                320.8s
 => [3/9] RUN apt-get install -y software-properties-common &&     add-apt-repository ppa:ubuntu-toolchain-r/test -y &&       40.8s
 => [4/9] RUN apt-get install -y p7zip-full                                                                                    5.2s
 => [5/9] RUN wget https://xmake.io/shget.text -O - | bash                                                                   169.9s
 => [6/9] RUN echo 'source /root/.xmake/profile' >> ~/.bashrc                                                                  0.4s
 => [7/9] RUN git clone https://github.com/f0cii/moxt-cpp.git /root/moxt-cpp                                                   3.6s
 => [8/9] RUN apt-get install -y pkg-config e2fslibs-dev zlib1g-dev libssl-dev libcurl4-openssl-dev libaio-dev                17.8s
 => ERROR [9/9] RUN /bin/bash -c "source /root/.xmake/profile && cd /root/moxt-cpp && xmake f -y --root && xmake --root"     142.1s
------
 > [9/9] RUN /bin/bash -c "source /root/.xmake/profile && cd /root/moxt-cpp && xmake f -y --root && xmake --root":
0.667 checking for platform ... linux
0.668 checking for architecture ... x86_64
10.81 updating repositories .. ok
15.13   => download https://github.com/gabime/spdlog/archive/refs/tags/v1.13.0.zip .. ok
15.36   => download https://github.com/fmtlib/fmt/releases/download/10.2.1/fmt-10.2.1.zip .. ok
15.89   => download https://github.com/simdjson/simdjson/archive/refs/tags/v3.6.3.tar.gz .. ok
17.08   => download https://github.com/fastfloat/fast_float/archive/refs/tags/v5.2.0.tar.gz .. ok
19.24   => install fast_float_local v5.2.0 .. ok
19.39   => install fmt 10.2.1 .. ok
22.92   => download https://github.com/odygrd/quill/archive/refs/tags/v3.5.1.tar.gz .. ok
29.76   => install spdlog v1.13.0 .. ok
31.17   => clone https://github.com/numenresearch/fmtlog.git @default .. ok
35.03   => download https://github.com/martinus/nanobench/archive/refs/tags/v4.3.11.tar.gz .. ok
36.25   => install nanobench v4.3.11 .. ok
40.91   => download https://github.com/cameron314/concurrentqueue/archive/refs/tags/v1.0.4.tar.gz .. ok
43.84   => install simdjson-local v3.6.3 .. ok
44.58   => install concurrentqueue v1.0.4 .. ok
47.22   => clone https://github.com/mcmikecreations/nanoid_cpp.git @default .. ok
49.61   => download https://github.com/madler/zlib/archive/v1.3.tar.gz .. ok
57.19   => install nanoid-cpp-local @default .. ok
58.26   => install zlib v1.3 .. ok
60.46   => clone https://github.com/MengRao/tscns.git 2022.07.18 .. ok
61.62   => install fmtlog-local @default .. ok
63.20   => install tscns 2022.07.18 .. ok
65.79   => download https://github.com/openssl/openssl/archive/refs/tags/OpenSSL_1_1_1w.zip .. ok
65.98   => download https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz .. ok
67.45   => download https://github.com/abseil/abseil-cpp/archive/20230802.1.tar.gz .. ok
80.90   => install bzip2 1.0.8 .. ok
112.5   => install quill-local 3.5.1 .. ok
115.2   => download https://pagure.io/libaio/archive/libaio-0.3.113/libaio-libaio-0.3.113.tar.gz .. ok
117.3   => download https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.gz .. ok
119.3   => install libaio 0.3.113 .. ok
123.9   => clone https://github.com/alibaba/PhotonLibOS.git @default .. ok
141.8   => install photonlibos @default .. failed
141.8
141.8 [  1%] Building CXX object third_party/CMakeFiles/easy_weak.dir/easy_weak/easy_weak.cpp.o
141.8 [  3%] Building CXX object third_party/CMakeFiles/fstack_weak.dir/fstack_weak/fstack_weak.cpp.o
141.8 [  4%] Building CXX object CMakeFiles/photon_obj.dir/common/alog.cpp.o
141.8 [  6%] Linking CXX static library ../output/libeasy_weak.a
141.8 [  7%] Linking CXX static library ../output/libfstack_weak.a
141.8 [  7%] Built target easy_weak
141.8 [  9%] Building CXX object CMakeFiles/photon_obj.dir/common/checksum/crc32c.cpp.o
141.8 [  9%] Built target fstack_weak
141.8 [ 11%] Building CXX object CMakeFiles/photon_obj.dir/common/estring.cpp.o
141.8 [ 12%] Building CXX object CMakeFiles/photon_obj.dir/common/event-loop.cpp.o
141.8 [ 14%] Building CXX object CMakeFiles/photon_obj.dir/common/executor/executor.cpp.o
141.8 [ 15%] Building CXX object CMakeFiles/photon_obj.dir/common/expirecontainer.cpp.o
141.8 /root/.xmake/cache/packages/2401/p/photonlibos/@default/source/photonlibos/common/alog.cpp: In member function 'virtual void BaseLogOutput::write(int, const char*, const char*)':
141.8 /root/.xmake/cache/packages/2401/p/photonlibos/@default/source/photonlibos/common/alog.cpp:47:16: error: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Werror=unused-result]
141.8    47 |         ::write(log_file_fd, begin, end - begin);
141.8       |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141.8 /root/.xmake/cache/packages/2401/p/photonlibos/@default/source/photonlibos/common/alog.cpp: In member function 'virtual void LogOutputFile::write(int, const char*, const char*)':
141.8 if you want to get more verbose errors, please see:
141.8   -> /root/.xmake/cache/packages/2401/p/photonlibos/@default/installdir.failed/logs/install.txt
141.8   => install boost 1.84.0 .. failed
141.8
141.8 Building B2 engine..
141.8 ###
141.8 ###
141.8 ### Using 'gcc' toolset.
141.8 ###
141.8 ###
141.8 g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
141.8 Copyright (C) 2021 Free Software Foundation, Inc.
141.8 This is free software; see the source for copying conditions.  There is NO
141.8 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
141.8 ###
141.8 ###
141.8 > g++ -x c++ -std=c++11 -O2 -s -DNDEBUG builtins.cpp class.cpp command.cpp compile.cpp constants.cpp cwd.cpp debug.cpp debugger.cpp execcmd.cpp execnt.cpp execunix.cpp filesys.cpp filent.cpp fileunix.cpp frames.cpp function.cpp glob.cpp hash.cpp hcache.cpp hdrmacro.cpp headers.cpp jam_strings.cpp jam.cpp jamgram.cpp lists.cpp make.cpp make1.cpp md5.cpp mem.cpp modules.cpp native.cpp object.cpp option.cpp output.cpp parse.cpp pathnt.cpp pathsys.cpp pathunix.cpp regexp.cpp rules.cpp scan.cpp search.cpp startup.cpp subst.cpp sysinfo.cpp timestamp.cpp variable.cpp w32_getreg.cpp modules/order.cpp modules/path.cpp modules/property-set.cpp modules/regex.cpp modules/sequence.cpp modules/set.cpp -o b2
141.8 if you want to get more verbose errors, please see:
141.8   -> /root/.xmake/cache/packages/2401/b/boost/1.84.0/installdir.failed/logs/install.txt
141.8   => install abseil 20230802.1 .. failed
141.8
141.8 [  0%] Building CXX object absl/base/CMakeFiles/log_severity.dir/log_severity.cc.o
141.8 [  0%] Building CXX object absl/base/CMakeFiles/strerror.dir/internal/strerror.cc.o
141.8 [  0%] Building CXX object absl/base/CMakeFiles/spinlock_wait.dir/internal/spinlock_wait.cc.o
141.8 [  1%] Linking CXX static library libabsl_spinlock_wait.a
141.8 [  1%] Built target spinlock_wait
141.8 [  2%] Building CXX object absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/time_zone_fixed.cc.o
141.8 [  3%] Linking CXX static library libabsl_strerror.a
141.8 [  4%] Linking CXX static library libabsl_log_severity.a
141.8 [  4%] Built target strerror
141.8 [  5%] Building CXX object absl/numeric/CMakeFiles/int128.dir/int128.cc.o
141.8 [  5%] Built target log_severity
141.8 [  6%] Building CXX object absl/profiling/CMakeFiles/exponential_biased.dir/internal/exponential_biased.cc.o
141.8 [  6%] Building CXX object absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/time_zone_format.cc.o
141.8 [  6%] Linking CXX static library libabsl_exponential_biased.a
141.8 [  6%] Built target exponential_biased
141.8 [  7%] Building CXX object absl/time/CMakeFiles/civil_time.dir/internal/cctz/src/civil_time_detail.cc.o
141.8 [  7%] Linking CXX static library libabsl_int128.a
141.8 if you want to get more verbose errors, please see:
141.8   -> /root/.xmake/cache/packages/2401/a/abseil/20230802.1/installdir.failed/logs/install.txt
141.8   => install openssl 1.1.1-w .. failed
141.8
141.8 /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
141.8     "-oMakefile" include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
141.8 /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
141.8     "-oMakefile" include/crypto/dso_conf.h.in > include/crypto/dso_conf.h
141.8 /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
141.8     "-oMakefile" include/openssl/opensslconf.h.in > include/openssl/opensslconf.h
141.8 /usr/bin/make depend && /usr/bin/make _all
141.8 make[1]: Entering directory '/root/.xmake/cache/packages/2401/o/openssl/1.1.1-w/source'
141.8 make[1]: Leaving directory '/root/.xmake/cache/packages/2401/o/openssl/1.1.1-w/source'
141.8 make[1]: Entering directory '/root/.xmake/cache/packages/2401/o/openssl/1.1.1-w/source'
141.8 gcc  -I. -Iinclude -fPIC -pthread -m64 -Wa,--noexecstack -fPIC -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf\"" -DENGINESDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf/lib/engines-1.1\"" -DNDEBUG  -MMD -MF apps/app_rand.d.tmp -MT apps/app_rand.o -c -o apps/app_rand.o apps/app_rand.c
141.8 gcc  -I. -Iinclude -fPIC -pthread -m64 -Wa,--noexecstack -fPIC -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf\"" -DENGINESDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf/lib/engines-1.1\"" -DNDEBUG  -MMD -MF apps/apps.d.tmp -MT apps/apps.o -c -o apps/apps.o apps/apps.c
141.8 gcc  -I. -Iinclude -fPIC -pthread -m64 -Wa,--noexecstack -fPIC -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf\"" -DENGINESDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf/lib/engines-1.1\"" -DNDEBUG  -MMD -MF apps/bf_prefix.d.tmp -MT apps/bf_prefix.o -c -o apps/bf_prefix.o apps/bf_prefix.c
141.8 gcc  -I. -Iinclude -fPIC -pthread -m64 -Wa,--noexecstack -fPIC -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf\"" -DENGINESDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf/lib/engines-1.1\"" -DNDEBUG  -MMD -MF apps/opt.d.tmp -MT apps/opt.o -c -o apps/opt.o apps/opt.c
141.8 gcc  -I. -Iinclude -fPIC -pthread -m64 -Wa,--noexecstack -fPIC -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf\"" -DENGINESDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf/lib/engines-1.1\"" -DNDEBUG  -MMD -MF apps/s_cb.d.tmp -MT apps/s_cb.o -c -o apps/s_cb.o apps/s_cb.c
141.8 gcc  -I. -Iinclude -fPIC -pthread -m64 -Wa,--noexecstack -fPIC -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf\"" -DENGINESDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf/lib/engines-1.1\"" -DNDEBUG  -MMD -MF apps/s_socket.d.tmp -MT apps/s_socket.o -c -o apps/s_socket.o apps/s_socket.c
141.8 gcc  -I. -Iinclude -fPIC -pthread -m64 -Wa,--noexecstack -fPIC -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf\"" -DENGINESDIR="\"/root/.xmake/packages/o/openssl/1.1.1-w/6c51ab6278e2479b883dffafac69fdaf/lib/engines-1.1\"" -DNDEBUG  -MMD -MF crypto/aes/aes_cbc.d.tmp -MT crypto/aes/aes_cbc.o -c -o crypto/aes/aes_cbc.o crypto/aes/aes_cbc.c
141.8 if you want to get more verbose errors, please see:
141.8   -> /root/.xmake/cache/packages/2401/o/openssl/1.1.1-w/installdir.failed/logs/install.txt
141.8 error: install failed!
------
moxt-cpp.Dockerfile:40
--------------------
  38 |
  39 |     # 切换到 moxt-cpp 目录并执行 xmake 编译
  40 | >>> RUN /bin/bash -c "source $XMAKE_PROFILE_PATH && cd /root/moxt-cpp && xmake f -y --root && xmake --root"
  41 |
  42 |     # 设置容器启动命令
--------------------
ERROR: failed to solve: process "/bin/sh -c /bin/bash -c \"source $XMAKE_PROFILE_PATH && cd /root/moxt-cpp && xmake f -y --root && xmake --root\"" did not complete successfully: exit code: 255

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.