Обсуждение: Compiling PostgreSQL with Intel C Compiler 6.0

Поиск
Список
Период
Сортировка

Compiling PostgreSQL with Intel C Compiler 6.0

От
Hans-Jürgen Schönig
Дата:
I have tried to compile PostgreSQL with the Intel C Compiler 6.0 for
Linux. During this process some errors occurred which I have attached to
this email. I have compiled the sources using:

[hs@duron postgresql-7.2.1]$ cat compile.sh
#!/bin/sh

CC=/usr/local/intel_compiler/compiler60/ia32/bin/icc CFLAGS=' -O3 '
./configure
make

If anybody is interested in testing the compiler feel free to contact me.

    Hans

mkdir man7
27329-fmgrtmp.c
heaptuple.c
indextuple.c
indexvalid.c
printtup.c
scankey.c
tupdesc.c
gist.c
gistget.c
gistscan.c
giststrat.c
hash.c
hashfunc.c
hashinsert.c
hashovfl.c
hashpage.c
hashscan.c
hashsearch.c
hashstrat.c
hashutil.c
heapam.c
hio.c
tuptoaster.c
genam.c
indexam.c
istrat.c
nbtcompare.c
nbtinsert.c
nbtpage.c
nbtree.c
nbtsearch.c
nbtstrat.c
nbtutils.c
nbtsort.c
rtget.c
rtproc.c
rtree.c
rtscan.c
rtstrat.c
clog.c
transam.c
varsup.c
xact.c
xid.c
xlog.c
xlogutils.c
rmgr.c
bootparse.c
bootscanner.c
bootstrap.c
catalog.c
heap.c
index.c
indexing.c
aclchk.c
pg_aggregate.c
pg_largeobject.c
pg_operator.c
pg_proc.c
pg_type.c
/tmp/genbkitmp.c
analyze.c
gram.c
keywords.c
parser.c
parse_agg.c
parse_clause.c
parse_expr.c
parse_func.c
parse_node.c
parse_oper.c
parse_relation.c
parse_type.c
parse_coerce.c
parse_target.c
scan.c
scansup.c
async.c
creatinh.c
command.c
comment.c
copy.c
indexcmds.c
define.c
remove.c
rename.c
vacuum.c
vacuumlazy.c
analyze.c
view.c
cluster.c
explain.c
sequence.c
trigger.c
user.c
proclang.c
dbcommands.c
variable.c
execAmi.c
execFlatten.c
execJunk.c
execMain.c
execProcnode.c
execQual.c
execScan.c
execTuples.c
execUtils.c
functions.c
instrument.c
nodeAppend.c
nodeAgg.c
nodeHash.c
nodeHashjoin.c
nodeIndexscan.c
nodeMaterial.c
nodeMergejoin.c
nodeNestloop.c
nodeResult.c
nodeSeqscan.c
nodeSetOp.c
nodeSort.c
nodeUnique.c
nodeLimit.c
nodeGroup.c
nodeSubplan.c
nodeSubqueryscan.c
nodeTidscan.c
spi.c
bit.c
dllist.c
lispsort.c
stringinfo.c
be-fsstubs.c
auth.c
crypt.c
hba.c
md5.c
password.c
pqcomm.c
pqformat.c
pqsignal.c
util.c
main.c
nodeFuncs.c
nodes.c
list.c
copyfuncs.c
equalfuncs.c
makefuncs.c
outfuncs.c
readfuncs.c
print.c
read.c
geqo_copy.c
geqo_eval.c
geqo_main.c
geqo_misc.c
geqo_pool.c
geqo_recombination.c
geqo_selection.c
geqo_erx.c
geqo_pmx.c
geqo_cx.c
geqo_px.c
geqo_ox1.c
geqo_ox2.c
allpaths.c
clausesel.c
costsize.c
indxpath.c
joinpath.c
joinrels.c
orindxpath.c
pathkeys.c
tidpath.c
createplan.c
initsplan.c
planmain.c
planner.c
setrefs.c
subselect.c
prepqual.c
preptlist.c
prepunion.c
prepkeyset.c
restrictinfo.c
clauses.c
plancat.c
joininfo.c
pathnode.c
relnode.c
tlist.c
var.c
dynloader.c
memcmp.c
postmaster.c
postmaster.c(1139): warning #186: pointless comparison of unsigned integer with zero
      if (PG_PROTOCOL_MAJOR(port->proto) < PG_PROTOCOL_MAJOR(PG_PROTOCOL_EARLIEST) ||
                                         ^

pgstat.c
pgstat.c(195): warning #167: argument of type "int *" is incompatible with parameter of type
"socklen_t={__socklen_t={unsignedint}} *restrict" 
      if (getsockname(pgStatSock, (struct sockaddr *) & pgStatAddr, &alen) < 0)
                                                                    ^

pgstat.c(1581): warning #167: argument of type "int *" is incompatible with parameter of type
"socklen_t={__socklen_t={unsignedint}} *restrict" 
                             (struct sockaddr *) &fromaddr, &fromlen);
                                                            ^

regcomp.c
regerror.c
regexec.c
regfree.c
rewriteRemove.c
rewriteDefine.c
rewriteHandler.c
rewriteManip.c
rewriteSupport.c
buf_table.c
buf_init.c
bufmgr.c
freelist.c
localbuf.c
fd.c
buffile.c
freespace.c
ipc.c
ipci.c
pmsignal.c
shmem.c
shmqueue.c
sinval.c
sinvaladt.c
inv_api.c
lmgr.c
lock.c
proc.c
deadlock.c
lwlock.c
spin.c
s_lock.c
bufpage.c
itemptr.c
md.c
mm.c
smgr.c
smgrtype.c
dest.c
fastpath.c
postgres.c
pquery.c
utility.c
fmgrtab.c
acl.c
arrayfuncs.c
arrayutils.c
bool.c
cash.c
char.c
date.c
datetime.c
datum.c
float.c
float.c(202): warning #39: division by zero
              val = NAN;
                    ^

float.c(263): warning #39: division by zero
              val = NAN;
                    ^

format_type.c
geo_ops.c
geo_selfuncs.c
int.c
int8.c
like.c
like_match.c(256): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      p = VARDATA(pat);
        ^

like_match.c(258): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      e = VARDATA(esc);
        ^

like_match.c(266): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      r = VARDATA(result);
        ^

like_match.c(289): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
          e = VARDATA(esc);
            ^

like.c(162): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      s = NameStr(*str);
        ^

like.c(163): warning #167: argument of type "unsigned char *" is incompatible with parameter of type "const char *"
      slen = strlen(s);
                    ^

like.c(164): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      p = VARDATA(pat);
        ^

like.c(190): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      s = NameStr(*str);
        ^

like.c(191): warning #167: argument of type "unsigned char *" is incompatible with parameter of type "const char *"
      slen = strlen(s);
                    ^

like.c(192): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      p = VARDATA(pat);
        ^

like.c(218): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      s = VARDATA(str);
        ^

like.c(220): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      p = VARDATA(pat);
        ^

like.c(246): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      s = VARDATA(str);
        ^

like.c(248): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      p = VARDATA(pat);
        ^

like.c(274): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      s = VARDATA(str);
        ^

like.c(276): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      p = VARDATA(pat);
        ^

like.c(295): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      s = VARDATA(str);
        ^

like.c(297): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      p = VARDATA(pat);
        ^

like.c(320): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      s = NameStr(*str);
        ^

like.c(321): warning #167: argument of type "unsigned char *" is incompatible with parameter of type "const char *"
      slen = strlen(s);
                    ^

like.c(322): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      p = VARDATA(pat);
        ^

like.c(348): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      s = NameStr(*str);
        ^

like.c(349): warning #167: argument of type "unsigned char *" is incompatible with parameter of type "const char *"
      slen = strlen(s);
                    ^

like.c(350): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      p = VARDATA(pat);
        ^

like.c(376): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      s = VARDATA(str);
        ^

like.c(378): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      p = VARDATA(pat);
        ^

like.c(404): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      s = VARDATA(str);
        ^

like.c(406): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      p = VARDATA(pat);
        ^

like.c(461): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      p = VARDATA(pat);
        ^

like.c(463): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      e = VARDATA(esc);
        ^

like.c(471): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
      r = VARDATA(result);
        ^

like.c(494): warning #556: a value of type "char *" cannot be assigned to an entity of type "unsigned char *"
          e = VARDATA(esc);
            ^

misc.c
nabstime.c
name.c
not_in.c
numeric.c
numeric.c(1632): warning #39: division by zero
          PG_RETURN_FLOAT8(NAN);
          ^

numeric.c(1655): warning #39: division by zero
          PG_RETURN_FLOAT8(NAN);
          ^

numeric.c(1706): warning #39: division by zero
          PG_RETURN_FLOAT4((float4) NAN);
          ^

numutils.c
oid.c
oracle_compat.c
regexp.c
regproc.c
ruleutils.c
selfuncs.c
sets.c
tid.c
timestamp.c
varbit.c
varchar.c
varlena.c
version.c
network.c
mac.c
inet_net_ntop.c
inet_net_pton.c
ri_triggers.c
pg_lzcompress.c
pg_locale.c
formatting.c
ascii.c
quote.c
pgstatfuncs.c
encode.c
encode.c(55): warning #167: argument of type "char *" is incompatible with parameter of type "const uint8={unsigned
char}*" 
      resultlen = enc->encode_len(VARDATA(data), datalen);
                                  ^

encode.c(58): warning #167: argument of type "char *" is incompatible with parameter of type "const uint8={unsigned
char}*" 
      res = enc->encode(VARDATA(data), datalen, VARDATA(result));
                        ^

encode.c(58): warning #167: argument of type "char *" is incompatible with parameter of type "uint8={unsigned char} *"
      res = enc->encode(VARDATA(data), datalen, VARDATA(result));
                                                ^

encode.c(89): warning #167: argument of type "char *" is incompatible with parameter of type "const uint8={unsigned
char}*" 
      resultlen = enc->decode_len(VARDATA(data), datalen);
                                  ^

encode.c(92): warning #167: argument of type "char *" is incompatible with parameter of type "const uint8={unsigned
char}*" 
      res = enc->decode(VARDATA(data), datalen, VARDATA(result));
                        ^

encode.c(92): warning #167: argument of type "char *" is incompatible with parameter of type "uint8={unsigned char} *"
      res = enc->decode(VARDATA(data), datalen, VARDATA(result));
                                                ^

encode.c(258): warning #144: a value of type "const uint8={unsigned char} *" cannot be used to initialize an entity of
type"const char *" 
      const char *srcend = src + len,
                           ^

encode.c(259): warning #144: a value of type "const uint8={unsigned char} *" cannot be used to initialize an entity of
type"const char *" 
                 *s = src;
                      ^

catcache.c
inval.c
relcache.c
syscache.c
lsyscache.c
fcache.c
temprel.c
assert.c
elog.c
exc.c
excabort.c
excid.c
format.c
dfmgr.c
dfmgr.c(152): warning #556: a value of type "void *" cannot be assigned to an entity of type "PGFunction"
      retval = pg_dlsym(file_scanner->handle, funcname);
             ^

dfmgr.c(226): warning #120: return value type does not match the function type
      return pg_dlsym(filehandle, funcname);
             ^

fmgr.c
dynahash.c
hashfn.c
pg_crc.c
findbe.c
globals.c
miscinit.c
postinit.c
database.c
superuser.c
guc.c
guc-file.c
ps_status.c
aset.c
mcxt.c
portalmem.c
logtape.c
tuplesort.c
tuplestore.c
tqual.c

Re: Compiling PostgreSQL with Intel C Compiler 6.0

От
Tom Lane
Дата:
Hans-Jürgen Schönig <postgres@cybertec.at> writes:
> I have tried to compile PostgreSQL with the Intel C Compiler 6.0 for 
> Linux. During this process some errors occurred which I have attached to 
> this email. I have compiled the sources using:

These are not errors, only overly-pedantic warnings.
        regards, tom lane