Coder Social home page Coder Social logo

Comments (3)

rurban avatar rurban commented on May 28, 2024

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?

from potion.

szabba avatar szabba commented on May 28, 2024

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

from potion.

rurban avatar rurban commented on May 28, 2024

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

from potion.

Related Issues (20)

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.