Bugs item #1880361, was opened at 2008-01-26 18:59
Message generated for change (Comment added) made by stmane
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1880361&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: SQL CVS Head
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Stefan Manegold (stmane)
Assigned to: Niels Nes (nielsnes)
Summary: SQL: compilation without asserts (e.g. `make rpm`) fails

Initial Comment:
Compilation of SQL with asserts disabled (e.g., with `make rpm`) fails with

gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I. -I.. -I./.. -I../../include 
-I./../../include -I../../common -I./../../common -I../bat -I./../bat 
-I/scratch/monet.GNU.64.64.d.2617/MonetDB/.GNU.64.64.d-Fedora6/include/MonetDB 
-I/scratch/monet.GNU.64.64.d.2617/MonetDB/.GNU.64.64.d-Fedora6/include/MonetDB/common
 
-I/scratch/monet.GNU.64.64.d.2617/MonetDB/.GNU.64.64.d-Fedora6/include/MonetDB/gdk
 -DLIBRESTRICTSTORE -O2 -Wall -Wextra -std=c99 -O6 -fomit-frame-pointer 
-finline-functions -falign-loops=4 -falign-jumps=4 -falign-functions=4 
-fexpensive-optimizations -funroll-loops -frerun-cse-after-loop 
-frerun-loop-opt -Werror-implicit-function-declaration -Werror -Wpointer-arith 
-Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 -c 
restrict_storage.c  -fPIC -DPIC -o .libs/librestrictstore_la-restrict_storage.o
cc1: warnings being treated as errors
restrict_storage.c: In function 'bind_col':
restrict_storage.c:8: warning: unused parameter 'access'
restrict_storage.c: In function 'bind_idx':
restrict_storage.c:22: warning: unused parameter 'access'
make[8]: *** [librestrictstore_la-restrict_storage.lo] Error 1

icc -no-gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I. -I.. -I./.. -I../../include 
-I./../../include -I../../common -I./../../common -I../bat -I./../bat 
-I/scratch/monet.Int.64.64.d.2617/MonetDB/.Int.64.64.d-Fedora6/include/MonetDB 
-I/scratch/monet.Int.64.64.d.2617/MonetDB/.Int.64.64.d-Fedora6/include/MonetDB/common
 
-I/scratch/monet.Int.64.64.d.2617/MonetDB/.Int.64.64.d-Fedora6/include/MonetDB/gdk
 -DLIBRESTRICTSTORE -O2 -we140 -wd1418 -Wall -w2 -c99 -mp1 -O3 -restrict 
-unroll -tpp7 -axWP -we266 -Werror 
-wd1418,1419,279,981,810,193,111,1357,1572,1599 -c restrict_storage.c  -KPIC 
-DPIC -o .libs/librestrictstore_la-restrict_storage.o
icc: Command line warning: overriding '-O2' with '-O3'
restrict_storage.c(8): error #869: parameter "access" was never referenced
  bind_col(sql_trans *tr, sql_column *c, int access)
                                             ^

See (e.g.)
http://monetdb.cwi.nl/testing/projects/monetdb/Current/sql/.GNU.64.64.d-Fedora6/rpm.out.html
http://monetdb.cwi.nl/testing/projects/monetdb/Current/sql/.Int.64.64.d-Fedora6/rpm.out.html


----------------------------------------------------------------------

>Comment By: Stefan Manegold (stmane)
Date: 2008-01-28 08:39

Message:
Logged In: YES 
user_id=572415
Originator: YES

Fixed by Niels.
Thanks!


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1880361&group_id=56967

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to