Обсуждение: Build error
Hello, I am trying to build the latest nightly snapshot on windows2000, and I'm getting the following error: make[2]: Entering directory `/d/work/pgsql/postgresql-snapshot/src/port' [..snip..] gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -I../../src/include -I./src/include/port/win32 -DEXEC_BACKEND "-I../../src/include/port/win32" -c -o getrusage.o getrusage.c In file included from ../../src/include/postgres.h:48, from getrusage.c:19: ../../src/include/c.h:80:26: pg_config_os.h: No such file or directory In file included from ../../src/include/c.h:771, from ../../src/include/postgres.h:48, from getrusage.c:19: ../../src/include/port.h:85: warning: `struct timezone' declared inside parameter list ../../src/include/port.h:85: warning: its scope is only this definition or declaration, which is probably not what you want ../../src/include/port.h:85: warning: `struct timeval' declared inside parameter list make[2]: *** [getrusage.o] Error 1 make[2]: Leaving directory `/d/work/pgsql/postgresql-snapshot/src/port' make[1]: *** [all] Error 2 make[1]: Leaving directory `/d/work/pgsql/postgresql-snapshot/src' make: *** [all] Error 2 I have tried to ./configure with --with-includes=/mingw/include , and it apparently got past the error, but later it complained that: d:/mingw/include/math.h:284: warning: no previous prototype for `__fpclassifyl' d:/mingw/include/math.h:305: warning: no previous prototype for `__isnan' d:/mingw/include/math.h:314: warning: no previous prototype for `__isnanf' d:/mingw/include/math.h:323: warning: no previous prototype for `__isnanl' d:/mingw/include/math.h:340: warning: no previous prototype for `__signbit' d:/mingw/include/math.h:346: warning: no previous prototype for `__signbitf' d:/mingw/include/math.h:352: warning: no previous prototype for `__signbitl' d:/mingw/include/math.h:386: warning: no previous prototype for `sinhf' d:/mingw/include/math.h:390: warning: no previous prototype for `coshf' d:/mingw/include/math.h:394: warning: no previous prototype for `tanhf' d:/mingw/include/math.h:403: warning: no previous prototype for `expf' d:/mingw/include/math.h:415: warning: no previous prototype for `frexpf' d:/mingw/include/math.h:427: warning: no previous prototype for `ldexpf' d:/mingw/include/math.h:514: warning: no previous prototype for `hypotf' d:/mingw/include/math.h:519: warning: no previous prototype for `powf' d:/mingw/include/math.h:566: warning: no previous prototype for `rint' d:/mingw/include/math.h:573: warning: no previous prototype for `rintf' d:/mingw/include/math.h:580: warning: no previous prototype for `rintl' d:/mingw/include/math.h:588: warning: no previous prototype for `lrint' d:/mingw/include/math.h:596: warning: no previous prototype for `lrintf' d:/mingw/include/math.h:604: warning: no previous prototype for `lrintl' d:/mingw/include/math.h:612: warning: no previous prototype for `llrint' d:/mingw/include/math.h:620: warning: no previous prototype for `llrintf' d:/mingw/include/math.h:628: warning: no previous prototype for `llrintl' I believe there is something wrong with mingw or msys, and not with the pgsql sources. Do you have any idea about what could be the problem ? Thanks, Adrian Maier
> Hello, > > > I am trying to build the latest nightly snapshot on > windows2000, and I'm getting the following error: > > > make[2]: Entering directory > `/d/work/pgsql/postgresql-snapshot/src/port' > [..snip..] > > I believe there is something wrong with mingw or msys, and not with > the pgsql sources. Do you have any idea about what could > be the problem ? This looks like the "failed to fake-symlink using copy" error. Try running configure again (the command that ended up complaining about pg_config_os.h). If that doesn't work, try it once more. If it still doesn't work, then it's something else :-) //Magnus
Adrian Maier wrote: > Hello, > > > I am trying to build the latest nightly snapshot on windows2000, and > I'm getting the following error: > > > make[2]: Entering directory `/d/work/pgsql/postgresql-snapshot/src/port' > [..snip..] > gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes > -Wmissing-declarations -I../../src/include -I./src/include/port/win32 > -DEXEC_BACKEND "-I../../src/include/port/win32" -c -o getrusage.o > getrusage.c > In file included from ../../src/include/postgres.h:48, > from getrusage.c:19: > ../../src/include/c.h:80:26: pg_config_os.h: No such file or directory This line looks like the problem. pg_config_os.h should have been created by configure. On my unix machine it looks like: (4) l /pg/include/pg_config_os.h lrwxr-xr-x 1 postgres wheel 31 Apr 23 10:44 /pg/include/pg_config_os.h@ -> ../.././src/include/port/bsdi.h We have heard reports of random symlink failures in win32. Could that be the cause? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
Magnus Hagander wrote: >>Hello, >> >> >>I am trying to build the latest nightly snapshot on >>windows2000, and I'm getting the following error: >> >> >>make[2]: Entering directory >>`/d/work/pgsql/postgresql-snapshot/src/port' >>[..snip..] >> >>I believe there is something wrong with mingw or msys, and not with >>the pgsql sources. Do you have any idea about what could >>be the problem ? >> >> > >This looks like the "failed to fake-symlink using copy" error. Try >running configure again (the command that ended up complaining about >pg_config_os.h). If that doesn't work, try it once more. If it still >doesn't work, then it's something else :-) > > > Is there any workaround for this? Maybe we could look at having configure loop a few times trying to make the (fake) symlink - I know it's hackish, but if it works ... cheers andrew
Andrew Dunstan wrote: > >>I believe there is something wrong with mingw or msys, and not with > >>the pgsql sources. Do you have any idea about what could > >>be the problem ? > >> > >> > > > >This looks like the "failed to fake-symlink using copy" error. Try > >running configure again (the command that ended up complaining about > >pg_config_os.h). If that doesn't work, try it once more. If it still > >doesn't work, then it's something else :-) > > > > > > > > Is there any workaround for this? Maybe we could look at having > configure loop a few times trying to make the (fake) symlink - I know > it's hackish, but if it works ... But why is it failing? That is the confusing part. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
Andrew Dunstan <andrew@dunslane.net> writes: > Magnus Hagander wrote: >> This looks like the "failed to fake-symlink using copy" error. > Is there any workaround for this? Use a real OS? ;-) > Maybe we could look at having > configure loop a few times trying to make the (fake) symlink - I know > it's hackish, but if it works ... Seriously, I do not like the idea of kluging configure to try to work around an effect we don't understand. If we do not understand the problem then we can have zero confidence in any fix. Let's find out *why* this is happening, first, and then maybe a real solution will be apparent. regards, tom lane