[LLVMbugs] [Bug 5647] New: LLVM does not build with warnings enabled
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Nov 30 12:25:38 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=5647
Summary: LLVM does not build with warnings enabled
Product: Build scripts
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: cmake
AssignedTo: unassignedbugs at nondot.org
ReportedBy: grosser at fim.uni-passau.de
CC: llvmbugs at cs.uiuc.edu
I just tried to fix some warnings and realized that llvm is build without any
warning flags using cmake, whereas a autoconf build adds these warning flags
automatically.
"-Wall -W -Wno-unused-parameter -Wwrite-strings"
Here a verbose output for a cmake Debug build:
% gmake VERBOSE=1
/usr/local/bin/cmake -H/home/Tobi/Projekte/llvm/git
-B/home/Tobi/Projekte/llvm/build --check-build-system CMakeFiles/Makefile.cmake
0
/usr/local/bin/cmake -E cmake_progress_start
/home/Tobi/Projekte/llvm/build/CMakeFiles
/home/Tobi/Projekte/llvm/build/CMakeFiles/progress.make
gmake -f CMakeFiles/Makefile2 all
gmake[1]: Entering directory `/usr/home/Tobi/Projekte/llvm/build'
gmake -f lib/System/CMakeFiles/LLVMSystem.dir/build.make
lib/System/CMakeFiles/LLVMSystem.dir/depend
gmake[2]: Entering directory `/usr/home/Tobi/Projekte/llvm/build'
cd /home/Tobi/Projekte/llvm/build && /usr/local/bin/cmake -E cmake_depends
"Unix Makefiles" /home/Tobi/Projekte/llvm/git
/home/Tobi/Projekte/llvm/git/lib/System /home/Tobi/Projekte/llvm/build
/home/Tobi/Projekte/llvm/build/lib/System
/home/Tobi/Projekte/llvm/build/lib/System/CMakeFiles/LLVMSystem.dir/DependInfo.cmake
--color=
gmake[2]: Leaving directory `/usr/home/Tobi/Projekte/llvm/build'
gmake -f lib/System/CMakeFiles/LLVMSystem.dir/build.make
lib/System/CMakeFiles/LLVMSystem.dir/build
gmake[2]: Entering directory `/usr/home/Tobi/Projekte/llvm/build'
/usr/local/bin/cmake -E cmake_progress_report
/home/Tobi/Projekte/llvm/build/CMakeFiles
[ 0%] Building CXX object lib/System/CMakeFiles/LLVMSystem.dir/Alarm.cpp.o
cd /home/Tobi/Projekte/llvm/build/lib/System && /usr/local/bin/g++44 -D_DEBUG
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g
-I/home/Tobi/Projekte/llvm/build/include -I/home/Tobi/Projekte/llvm/git/include
-o CMakeFiles/LLVMSystem.dir/Alarm.cpp.o -c
/home/Tobi/Projekte/llvm/git/lib/System/Alarm.cpp
/usr/local/bin/cmake -E cmake_progress_report
/home/Tobi/Projekte/llvm/build/CMakeFiles
[ 0%] Building CXX object lib/System/CMakeFiles/LLVMSystem.dir/Atomic.cpp.o
cd /home/Tobi/Projekte/llvm/build/lib/System && /usr/local/bin/g++44 -D_DEBUG
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g
-I/home/Tobi/Projekte/llvm/build/include -I/home/Tobi/Projekte/llvm/git/include
-o CMakeFiles/LLVMSystem.dir/Atomic.cpp.o -c
/home/Tobi/Projekte/llvm/git/lib/System/Atomic.cpp
/usr/local/bin/cmake -E cmake_progress_report
/home/Tobi/Projekte/llvm/build/CMakeFiles
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list