Bugs item #2890702, was opened at 2009-11-02 14:45 Message generated for change (Settings changed) made by stmane You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2890702&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: MonetDB5 CVS Head >Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Stefan Manegold (stmane) >Assigned to: Stefan Manegold (stmane) Summary: M5: pma.mx fails to compile on various platforms Initial Comment: The new pma.mx module fils to compile on various platform with, a.o., MonetDB5/src/modules/mal/pma.mx:866: warning: dereferencing type-punned pointer will break strict-aliasing rules MonetDB5/src/modules/mal/pma.mx:867: warning: dereferencing type-punned pointer will break strict-aliasing rules cf., http://monetdb.cwi.nl/testing/projects/monetdb/Current/MonetDB5/.GNU.32.32.d.1-Darwin9.8.0/make.out.html http://monetdb.cwi.nl/testing/projects/monetdb/Current/MonetDB5/.GNU.64.64.d.1-Darwin9.8.0/make.out.html http://monetdb.cwi.nl/testing/projects/monetdb/Current/MonetDB5/.GNU.32.32.d.1-Debian4.0/make.out.html http://monetdb.cwi.nl/testing/projects/monetdb/Current/MonetDB5/.GNU.64.64.d.1-Gentoo2.0.1/make.out.html MonetDB5/src/modules/mal/pma.mx(387): error #593: parameter "dummy" was set but never used PMAdel_bte(void *dummy, bat *bid, oid *pos) { ^ MonetDB5/src/modules/mal/pma.mx(852): error #593: parameter "dummy" was set but never used PMAtestins_bte(void *dummy, bat *bid, int *num) { ^ MonetDB5/src/modules/mal/pma.mx(856): error #593: variable "base" was set but never used bte *base; ^ cf., http://monetdb.cwi.nl/testing/projects/monetdb/Current/MonetDB5/.Int.64.32.d.1-Fedora10/make.out.html http://monetdb.cwi.nl/testing/projects/monetdb/Current/MonetDB5/.Int.64.64.d.1-Fedora10/make.out.html .\..\..\..\..\src\modules\mal\pma.mx(138): error: a function declared "dllimport" may not be defined PMAnew(bat *res, int *tpe, int *sz) { ^ .\..\..\..\..\src\modules\mal\pma.mx(167): error: a function declared "dllimport" may not be defined PMAins_bte(oid *pos_res, bat *bid, oid *pos, bte *val) { ^ .\..\..\..\..\src\modules\mal\pma.mx(387): error: a function declared "dllimport" may not be defined PMAdel_bte(void *dummy, bat *bid, oid *pos) { ^ .\..\..\..\..\src\modules\mal\pma.mx(489): error: a function declared "dllimport" may not be defined PMAbulkdel_bte(void *dummy, bat *bid, oid *lo, oid *hi) { ^ .\..\..\..\..\src\modules\mal\pma.mx(612): error: a function declared "dllimport" may not be defined PMAfnd_bte(oid *lo_res, oid *hi_res, bat *bid, oid *lo, oid *hi, bte *val) { ^ .\..\..\..\..\src\modules\mal\pma.mx(702): error: a function declared "dllimport" may not be defined PMAbulkins_bte(oid *pos_res, bat *bid, oid *pos, bat *ibid) { ^ .\..\..\..\..\src\modules\mal\pma.mx(852): error: a function declared "dllimport" may not be defined PMAtestins_bte(void *dummy, bat *bid, int *num) { ^ .\..\..\..\..\src\modules\mal\pma.mx(873): error: a function declared "dllimport" may not be defined PMAtestdel_bte(void *dummy, bat *bid) { ^ cf., http://monetdb.cwi.nl/testing/projects/monetdb/Current/MonetDB5/.Int.32.32.d.1-Windows5.1/make.out.html http://monetdb.cwi.nl/testing/projects/monetdb/Current/MonetDB5/.Int.64.32.d.1-Windows6.0/make.out.html http://monetdb.cwi.nl/testing/projects/monetdb/Current/MonetDB5/.Int.64.64.d.1-Windows6.0/make.out.html ---------------------------------------------------------------------- >Comment By: Stefan Manegold (stmane) Date: 2009-11-03 16:07 Message: With my yesterday's fixes, pma.mx now seems to compile fine. Closing. ---------------------------------------------------------------------- Comment By: Stefan Manegold (stmane) Date: 2009-11-02 18:00 Message: After some defensive code clean-up (see `cvs log -r1.3::1.6 src/modules/mal/pma.mx` and `cvs diff -r1.{3,6} src/modules/mal/pma.mx` for details), I hopefully also fixed the "dereferencing type-punned pointer will break strict-aliasing rules" problem; see `cvs diff -r1.{6,7} src/modules/mal/pma.mx` for details. Report can be closed once nightly testing has confirmed the fixes. ---------------------------------------------------------------------- Comment By: Stefan Manegold (stmane) Date: 2009-11-02 15:01 Message: I just fixed the last two problems with icc and on Windows. See my respective checkins and/or `cvs diff -r1.{1,2} src/modules/mal/pma.mx` `cvs diff -r1.{2,3} src/modules/mal/pma.mx` for details. The first problem "warning: dereferencing type-punned pointer will break strict-aliasing rules" is still open. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2890702&group_id=56967 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Monetdb-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/monetdb-bugs
