ambiso / agent_based_trading_julia

0 stars 0 forks source link

Building issue #1

Open CGMossa opened 4 years ago

CGMossa commented 4 years ago

Thanks for inviting me to this. I'm still stuck on building this project.

This is the error message:

[agent_based_trading_julia 0.1.0] cargo:warning=cc1.exe: error: unrecognized argument to '-flto=' option: 'thin'
[agent_based_trading_julia 0.1.0] exit code: 1
[agent_based_trading_julia 0.1.0] 
[agent_based_trading_julia 0.1.0]
[agent_based_trading_julia 0.1.0] error occurred: Command "sccache" "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-finline-functions" "-fomit-frame-pointer" "-DNDEBUG" "-fno-strict-aliasing" "--param" "max-inline-insns-single=1800" "-msse2" "-flto=thin" "-DHAVE_SSE2" "-o" "C:\\Users\\Tyler\\Documents\\GitHub\\agent_based_trading_julia\\target\\debug\\build\\agent_based_trading_julia-b6163557162a3a1d\\out\\vendor/MT/dSFMT.o" "-c" "vendor/MT/dSFMT.c" with args "gcc.exe" did not execute successfully (status code exit code: 1).
[agent_based_trading_julia 0.1.0]
[agent_based_trading_julia 0.1.0]
The following warnings were emitted during compilation:

warning: cc1.exe: error: unrecognized argument to '-flto=' option: 'thin'

error: failed to run custom build command for `agent_based_trading_julia v0.1.0 (C:\Users\Tyler\Documents\GitHub\agent_based_trading_julia)`

Caused by:
  process didn't exit successfully: `C:\Users\Tyler\Documents\GitHub\agent_based_trading_julia\target\debug\build\agent_based_trading_julia-664590f7f1d6e178\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-changed=vendor/MT/dSFMT.c
cargo:rerun-if-changed=vendor/MT/dSFMT.h
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CC_x86_64-pc-windows-gnu = None
CC_x86_64_pc_windows_gnu = None
HOST_CC = None
CC = None
CFLAGS_x86_64-pc-windows-gnu = None
CFLAGS_x86_64_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
running: "sccache" "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-finline-functions" "-fomit-frame-pointer" "-DNDEBUG" "-fno-strict-aliasing" "--param" "max-inline-insns-single=1800" "-msse2" "-flto=thin" "-DHAVE_SSE2" "-o" "C:\\Users\\Tyler\\Documents\\GitHub\\agent_based_trading_julia\\target\\debug\\build\\agent_based_trading_julia-b6163557162a3a1d\\out\\vendor/MT/dSFMT.o" "-c" "vendor/MT/dSFMT.c"
cargo:warning=cc1.exe: error: unrecognized argument to '-flto=' option: 'thin'
exit code: 1

--- stderr

error occurred: Command "sccache" "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-finline-functions" "-fomit-frame-pointer" "-DNDEBUG" "-fno-strict-aliasing" "--param" "max-inline-insns-single=1800" "-msse2" "-flto=thin" "-DHAVE_SSE2" "-o" "C:\\Users\\Tyler\\Documents\\GitHub\\agent_based_trading_julia\\target\\debug\\build\\agent_based_trading_julia-b6163557162a3a1d\\out\\vendor/MT/dSFMT.o" "-c" "vendor/MT/dSFMT.c" with args "gcc.exe" did not execute successfully (status code exit code: 1).
CGMossa commented 4 years ago

So far, I've installed msys2 from fresh. I've only linked to the mingw64 stuff. Somehow this seems to be the core issue:

warning: cc1.exe: error: unrecognized argument to '-flto=' option: 'thin'

or even this

[agent_based_trading_julia 0.1.0] cargo:warning=cc1.exe: error: unrecognized argument to '-flto=' option: 'thin'

and I don't know what to do about this.