[Solved] Configuring without -Wall options in gcc
Added by richardboone almost 6 years ago
I'm in the process of building lighttpd version 1.4.49 on an embedded system that uses a custom distribution of yocto. I keep running into the same error during the configure stage. Following are the last few lines:
checking linux/random.h presence... no checking for linux/random.h... no configure: ---------------------------------------- checking if weak symbols are supported... no configure: ---------------------------------------- checking for Large File System support... yes configure: ---------------------------------------- configure: ---------------------------------------- checking use mmap if available... false configure: ---------------------------------------- checking for FCGI_Accept in -lfcgi... no configure: ---------------------------------------- checking if gcc supports -Wall -W -Wshadow -pedantic... configure: error: no
I'm running on a fairly small embedded system so I don't have the space to support an upgraded version of gcc, so I can't get a version that supports these compiler flags. Is there a way to get around compilation with all the warnings in the configure stage so I can build lighttpd on my server?
Supplemental information:
Operating system:
Linux version 4.4.0-xilinx
Gcc version:
(gcc version 5.3.0 (GCC) )
Processor:
ARMv7 Processor rev 0 (v7l)
Replies (1)
RE: Configuring without -Wall options in gcc - Added by gstrauss almost 6 years ago
checking if gcc supports -Wall -W -Wshadow -pedantic... configure: error: no
Is that the complete error? gcc 5.3.0 supports these flags. Try them on a simple command line, yourself. If -pedantic is not supported, then try -Wpedantic.
See line 1257 in configure.ac
TRY_CFLAGS([-Wall -W -Wshadow -pedantic])
and modify as appropriate for your needs.