Open szabba opened 10 years ago
oops, thanks for the heads up, but it looks strange. _FORTIFY_SOURCE is only used when DEBUG is not set, so CFLAGS has -O3. Can you check your config.inc for DEBUGFLAGS including -O3?
Yup, my config.inc
does contain -O3
in DEBUGFLAGS
. Any ideas on why this might be?
# -*- makefile -*-
# created by make -f config.mak
PREFIX = /usr/local
ECHO = /bin/echo
EXE =
DLL = .so
LOADEXT = .so
CC = clang
DEFINES = -DHAVE_LIBUV -DCGOTO
DEBUGFLAGS = -O3 -finline -fno-stack-protector
WARNINGS = -Wall -Werror -Wno-variadic-macros -Wno-pointer-arith -Wno-return-type -Wno-unused-value -Wno-switch -Wno-unused-label -Wno-zero-length-array -Wno-gnu
CFLAGS = -D_GNU_SOURCE -fno-strict-aliasing -D_FORTIFY_SOURCE=2 ${DEFINES} ${DEBUGFLAGS} ${WARNINGS}
INCS = -I/home/karol/Code/potion/core -I/usr/local/include
LIBPTH = -L/home/karol/Code/potion/lib
RPATH = -Wl,-rpath=/home/karol/Code/potion/lib
RPATH_INSTALL = -Wl,-rpath=${PREFIX}/lib
LIBS = -lm -L/usr/local/lib -ldl
LDFLAGS = -Wl,--as-needed -Wl,-z,relro -Wl,-z,now
LDDLLFLAGS = -shared -fpic -Wl,--as-needed -Wl,-z,relro -Wl,-z,now
STRIP = strip -x
AR = ar
RANLIB = ranlib
CROSS = 0
APPLE = 0
WIN32 = 0
CYGWIN = 0
CLANG = 1
ICC = 0
GCC = 0
SANDBOX = 0
JIT = 1
JIT_X86 = 1
DEBUG = 0
REVISION = 1136
All looks good. I have no idea why it fails for you (selinux?) but for now just remove the
-D_FORTIFY_SOURCE=2
part from your config.inc
googling brought up nothing.
maybe you have an env var DEBUGFLAGS set?
try unset DEBUGFLAGS
then
Maybe it's something with my environment, but the following happens when I try to follow the instructions from
INSTALL.md
: