Re: Help, Build Visopsys Failed
Posted: Mon Jul 27, 2020 7:12 pm
Ohh... I forgot...
and now we get this error :
gcc -Os -m32 -pipe -fno-common -fno-strict-aliasing -fno-builtin -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fno-stack-protector -ffreestanding -Wall -W -Wshadow -Wcast-align -Wsign-compare -Waggregate-return -Wmissing-format-attribute -Wredundant-decls -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -nostdinc -I. -I../include -DKERNEL -c kernelDmaDriver.c -o obj/kernelDmaDriver.o
gcc -Os -m32 -pipe -fno-common -fno-strict-aliasing -fno-builtin -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fno-stack-protector -ffreestanding -Wall -W -Wshadow -Wcast-align -Wsign-compare -Waggregate-return -Wmissing-format-attribute -Wredundant-decls -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -nostdinc -I. -I../include -DKERNEL -c kernelFloppyDriver.c -o obj/kernelFloppyDriver.o
In file included from kernelFloppyDriver.c:27:0:
kernelFloppyDriver.c: In function ‘driverDetect’:
kernelError.h:40:2: error: this statement may fall through [-Werror=implicit-fallthrough=]
kernelErrorOutput(__FILE__, __FUNCTION__, __LINE__, kind, message, ##arg)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernelFloppyDriver.c:954:5: note: in expansion of macro ‘kernelError’
kernelError(kernel_warn, "Floppy disk fd%d type %d is "
^~~~~~~~~~~
kernelFloppyDriver.c:959:4: note: here
case 4:
^~~~
cc1: all warnings being treated as errors
Makefile:194: recipe for target 'obj/kernelFloppyDriver.o' failed
make[2]: *** [obj/kernelFloppyDriver.o] Error 1
make[2]: Leaving directory '/visopsys/visopsys-0.9-src/src/kernel'
Makefile:11: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/visopsys/visopsys-0.9-src/src'
Makefile:13: recipe for target 'all' failed
make: *** [all] Error 2
#### failed to build some targets (14 seconds) ####
and now we get this error :
gcc -Os -m32 -pipe -fno-common -fno-strict-aliasing -fno-builtin -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fno-stack-protector -ffreestanding -Wall -W -Wshadow -Wcast-align -Wsign-compare -Waggregate-return -Wmissing-format-attribute -Wredundant-decls -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -nostdinc -I. -I../include -DKERNEL -c kernelDmaDriver.c -o obj/kernelDmaDriver.o
gcc -Os -m32 -pipe -fno-common -fno-strict-aliasing -fno-builtin -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fno-stack-protector -ffreestanding -Wall -W -Wshadow -Wcast-align -Wsign-compare -Waggregate-return -Wmissing-format-attribute -Wredundant-decls -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -nostdinc -I. -I../include -DKERNEL -c kernelFloppyDriver.c -o obj/kernelFloppyDriver.o
In file included from kernelFloppyDriver.c:27:0:
kernelFloppyDriver.c: In function ‘driverDetect’:
kernelError.h:40:2: error: this statement may fall through [-Werror=implicit-fallthrough=]
kernelErrorOutput(__FILE__, __FUNCTION__, __LINE__, kind, message, ##arg)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernelFloppyDriver.c:954:5: note: in expansion of macro ‘kernelError’
kernelError(kernel_warn, "Floppy disk fd%d type %d is "
^~~~~~~~~~~
kernelFloppyDriver.c:959:4: note: here
case 4:
^~~~
cc1: all warnings being treated as errors
Makefile:194: recipe for target 'obj/kernelFloppyDriver.o' failed
make[2]: *** [obj/kernelFloppyDriver.o] Error 1
make[2]: Leaving directory '/visopsys/visopsys-0.9-src/src/kernel'
Makefile:11: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/visopsys/visopsys-0.9-src/src'
Makefile:13: recipe for target 'all' failed
make: *** [all] Error 2
#### failed to build some targets (14 seconds) ####