Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lotusdew-dushyant-goel opened this issue Feb 15, 2023 · 5 comments
Closed

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

lotusdew-dushyant-goel opened this issue Feb 15, 2023 · 5 comments

Comments

@lotusdew-dushyant-goel
Copy link

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!

@jfb8856606
Copy link
Contributor

jfb8856606 commented Feb 15, 2023

Can you show your compiler environment, Suah as F-Stack, OS, kernel, gcc version, etc.

@lotusdew-dushyant-goel
Copy link
Author

F-stack : cloned repo today. (where is the version number?)

OS Ubuntu 22.04.1 LTS
Kernel Linux 5.15.0-60-generic
GCC version 11.3.0
no environment variables set specifically for compilation. echo $LC_ALL == en_IN UTF-8

@jfb8856606
Copy link
Contributor

OK, I will test it later.

@jfb8856606
Copy link
Contributor

F-stack : cloned repo today. (where is the version number?)
Now F-STACK_VERSION=1.xx in lib/Makefile, and I have add a VERSION file in root dir directory.

@jfb8856606
Copy link
Contributor

Fixed.

anvayabn pushed a commit to anvayabn/f-stack that referenced this issue Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants