Skip to content

F-stack default make error and work-around #736

@lotusdew-dushyant-goel

Description

@lotusdew-dushyant-goel

I followed the README guide, adapting it to my system.
However, in the compiling f-stack make step
I got [-Werror=arrar-bounds] on several steps of make.
For now, just to try out the system, I ran the offending compilation commands manually, removing the -Werror flag. There were 3 such commands:

cc -c -O2 -fno-strict-aliasing -frename-registers -pipe -Wno-maybe-uninitialized   -std=c99  -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-inline -Wcast-qual -Wno-pointer-sign -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unused-but-set-variable -Wno-address-of-packed-member -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -DINET -Wno-error=stringop-overflow -Wno-error=stringop-overread -DINET6 -DTCPHPTS -DRATELIMIT -DFSTACK -fstack-protector -D__FreeBSD__ -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-builtin -I/data/f-stack/lib/include -undef -imacros filtered_predefined_macros.h -nostdinc  -I. -I/data/f-stack/lib/../freebsd -I. -I/data/f-stack/lib/../freebsd/contrib/ck/include -I./machine_include -I./opt **-Werror** -Wno-unused-variable  /data/f-stack/lib/../freebsd/kern/kern_linker.c -o kern_linker.o

cc -c -O2 -fno-strict-aliasing -frename-registers -pipe -Wno-maybe-uninitialized   -std=c99  -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-inline -Wcast-qual -Wno-pointer-sign -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unused-but-set-variable -Wno-address-of-packed-member -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -DINET -Wno-error=stringop-overflow -Wno-error=stringop-overread -DINET6 -DTCPHPTS -DRATELIMIT -DFSTACK -fstack-protector -D__FreeBSD__ -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-builtin -I/data/f-stack/lib/include -undef -imacros filtered_predefined_macros.h -nostdinc  -I. -I/data/f-stack/lib/../freebsd -I. -I/data/f-stack/lib/../freebsd/contrib/ck/include -I./machine_include -I./opt **-Werror** -Wno-unused-variable  /data/f-stack/lib/../freebsd/netinet/in_mcast.c -o in_mcast.o

cc -c -O2 -fno-strict-aliasing -frename-registers -pipe -Wno-maybe-uninitialized   -std=c99  -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-inline -Wcast-qual -Wno-pointer-sign -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unused-but-set-variable -Wno-address-of-packed-member -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -DINET -Wno-error=stringop-overflow -Wno-error=stringop-overread -DINET6 -DTCPHPTS -DRATELIMIT -DFSTACK -fstack-protector -D__FreeBSD__ -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-builtin -I/data/f-stack/lib/include -undef -imacros filtered_predefined_macros.h -nostdinc  -I. -I/data/f-stack/lib/../freebsd -I. -I/data/f-stack/lib/../freebsd/contrib/ck/include -I./machine_include -I./opt **-Werror** -Wno-unused-variable  /data/f-stack/lib/../freebsd/netinet6/in6_mcast.c -o in6_mcast.o

After make was done make install worked as expected.

Hope this is helpful to other who might be stuck.
Cheers!

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