Skip to content

Instantly share code, notes, and snippets.

@sYnfo
Created November 30, 2015 13:09
Show Gist options
  • Save sYnfo/826bad71a20360700a3f to your computer and use it in GitHub Desktop.
Save sYnfo/826bad71a20360700a3f to your computer and use it in GitHub Desktop.
make pyston
In file included from ../../src/codegen/codegen.cpp:30:
In file included from ../../src/codegen/baseline_jit.h:20:
In file included from ../../src/asm_writing/rewriter.h:28:
In file included from ../../src/asm_writing/assembler.h:21:
../../src/asm_writing/types.h:176:21: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
assert((-1L << 31) <= offset && offset < (1L << 31) - 1);
~~~ ^
/usr/include/assert.h:86:5: note: expanded from macro 'assert'
((expr) \
^
In file included from ../../src/codegen/codegen.cpp:30:
In file included from ../../src/codegen/baseline_jit.h:20:
../../src/asm_writing/rewriter.h:603:67: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
static bool isLargeConstant(int64_t val) { return (val < (-1L << 31) || val >= (1L << 31) - 1); }
~~~ ^
2 errors generated.
[582/1067] Building CXX object src/CMakeFiles/PYSTON_OBJECTS.dir/codegen/compvars.cpp.o
FAILED: CCACHE_CPP2=yes /usr/bin/ccache /usr/lib64/ccache/clang++ -DDEFAULT_PYTHON_MAJOR_VERSION=2 -DDEFAULT_PYTHON_MICRO_VERSION=6 -DDEFAULT_PYTHON_MINOR_VERSION=7 -DLLVMREV=230300 -DNVALGRIND -DTHREADING_USE_GIL=1 -DTHREADING_USE_GRWL=0 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -Qunused-arguments -fcolor-diagnostics -Qunused-arguments -fcolor-diagnostics -Wall -Wextra -Werror -Wreturn-type -Wno-sign-compare -Wno-unused -Wno-unused-parameter -fno-omit-frame-pointer -g -std=c++11 -fno-rtti -fexceptions -fvisibility-inlines-hidden -ffunction-sections -fdata-sections -Woverloaded-virtual -Wno-invalid-offsetof -Wcast-qual -Wno-sign-conversion -Wnon-virtual-dtor -Winit-self -Wmissing-include-dirs -Wstrict-overflow=5 -Wpointer-arith -Wtype-limits -Wwrite-strings -Wempty-body -Waggregate-return -Wmissing-field-initializers -Wredundant-decls -Winline -Wint-to-pointer-cast -Wlong-long -Wvla -Wno-attributes -g -Qunused-arguments -fcolor-diagnostics -Wimplicit-int -Wstrict-prototypes -Wold-style-definition -Wnested-externs -Wpointer-to-int-cast -Wno-mismatched-tags -Wno-extern-c-compat -g -DBINARY_SUFFIX= -DBINARY_STRIPPED_SUFFIX=_stripped -DPy_BUILD_CORE -Isrc -I../../src -Ifrom_cpython/Include -I/home/mstuchli/pyston_deps/llvm-trunk/include -Illvm/include -I. -Ibuild_deps/libunwind/include -I../../build_deps/libpypa/src -I../../build_deps/lz4/lib -MMD -MT src/CMakeFiles/PYSTON_OBJECTS.dir/codegen/compvars.cpp.o -MF src/CMakeFiles/PYSTON_OBJECTS.dir/codegen/compvars.cpp.o.d -o src/CMakeFiles/PYSTON_OBJECTS.dir/codegen/compvars.cpp.o -c ../../src/codegen/compvars.cpp
../../src/codegen/compvars.cpp:2548:16: error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move]
return std::move(elts);
^
../../src/codegen/compvars.cpp:2548:16: note: remove std::move call here
return std::move(elts);
^~~~~~~~~~ ~
1 error generated.
[582/1067] Building CXX object src/CMakeFiles/PYSTON_OBJECTS.dir/codegen/irgen.cpp.o
ninja: build stopped: subcommand failed.
Makefile:670: recipe for target 'pyston_dbg' failed
make: *** [pyston_dbg] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment