Skip to content

Unable to build with the new -D_FORTIFY_SOURCE=2 #72

@szabba

Description

@szabba

Maybe it's something with my environment, but the following happens when I try to follow the instructions from INSTALL.md:

# git clone https://github.com/perl11/potion
Cloning into 'potion'...
remote: Reusing existing pack: 11270, done.
remote: Total 11270 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (11270/11270), 5.14 MiB | 1.08 MiB/s, done.
Resolving deltas: 100% (6523/6523), done.
Checking connectivity... done.
# cd potion 
# git submodule update --init               
Submodule '3rd/libuv' (git://github.com/rurban/libuv.git) registered for path '3rd/libuv'
Cloning into '3rd/libuv'...
remote: Counting objects: 19389, done.
remote: Compressing objects: 100% (7887/7887), done.
remote: Total 19389 (delta 11445), reused 19389 (delta 11445)
Receiving objects: 100% (19389/19389), 11.25 MiB | 2.02 MiB/s, done.
Resolving deltas: 100% (11445/11445), done.
Checking connectivity... done.
Submodule path '3rd/libuv': checked out 'b712aba084b41e2abe8ddbbaaa0843781b558be9'
# LANG=en make
MAKE core/version.h
MAKE core/config.h
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_COLLATE = "C",
    LANG = "en"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
CC core/potion.opic -O0
In file included from core/potion.c:8:
In file included from /usr/include/stdio.h:27:
/usr/include/features.h:341:4: error: _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror,-W#warnings]
#  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
   ^
1 error generated.
Makefile:183: recipe for target 'core/potion.opic' failed
make: *** [core/potion.opic] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions