Skip to content

Linux build failed. #146

Open
Open
@ysuLihua

Description

@ysuLihua

./configure
make CFLAGS="-std=c99"

make error

make  all-recursive
make[1]: Entering directory `/root/safeclib'
Making all in src
make[2]: Entering directory `/root/safeclib/src'
 CC       mem/safe_mem_constraint.lo
mem/safe_mem_constraint.c:51:5: error: unknown type name '_Thread_local'
    constraint_handler_t thrd_mem_handler =
    ^
mem/safe_mem_constraint.c:51:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'thrd_mem_handler'
    constraint_handler_t thrd_mem_handler =
                         ^
mem/safe_mem_constraint.c: In function 'thrd_set_mem_constraint_handler_s':
mem/safe_mem_constraint.c:124:41: error: 'thrd_mem_handler' undeclared (first use in this function)
    constraint_handler_t prev_handler = thrd_mem_handler;
                                        ^
mem/safe_mem_constraint.c:124:41: note: each undeclared identifier is reported only once for each function it appears in
mem/safe_mem_constraint.c: In function 'invoke_safe_mem_constraint_handler':
mem/safe_mem_constraint.c:153:17: error: 'thrd_mem_handler' undeclared (first use in this function)
    if (NULL != thrd_mem_handler) {
                ^
mem/safe_mem_constraint.c:154:9: error: implicit declaration of function 'thrd_mem_handler' [-Werror=implicit-function-declaration]
        thrd_mem_handler(msg, ptr, error);
        ^
mem/safe_mem_constraint.c:154:9: error: nested extern declaration of 'thrd_mem_handler' [-Werror=nested-externs]
mem/safe_mem_constraint.c:154:9: error: declaration of 'thrd_mem_handler' shadows previous non-variable [-Werror=shadow]
cc1: all warnings being treated as errors
make[2]: *** [mem/safe_mem_constraint.lo] Error 1
make[2]: Leaving directory `/root/safeclib/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/safeclib'
make: *** [all] Error 2

Activity

rurban

rurban commented on Mar 31, 2025

@rurban
Owner

Tell me more about your system. Maybe attach your config.status

self-assigned this
on Mar 31, 2025
ysuLihua

ysuLihua commented on Mar 31, 2025

@ysuLihua
Author

Image

rurban

rurban commented on Mar 31, 2025

@rurban
Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @rurban@ysuLihua

      Issue actions

        Linux build failed. · Issue #146 · rurban/safeclib