Hey all,
The Gmp/ and _math/ directories in src/modules/ both contain .cmod files which requires that the system where pike is compiled (even from exported sources) will require an existing pike before even tpike is linked. I thought that moving them to post_modules/ would be a temporary solution, but then files/stat.o linking fails since it cannot find f_max/f_min which are defined in the _math/math.c file. The other solution is to precompile those files when exporting the sources, but alas - I have no idea how to do that :)
thanks,
marek
Something is broken in the source target if that's the case. Are the .c files missing, or do they have an older timestamp than the .cmod's?
/ Martin Stjernholm, Roxen IS
Previous text:
2003-02-06 00:32: Subject: The Gmp, Math modules and the files module in pike 7.5
Hey all,
The Gmp/ and _math/ directories in src/modules/ both contain .cmod files which requires that the system where pike is compiled (even from exported sources) will require an existing pike before even tpike is linked. I thought that moving them to post_modules/ would be a temporary solution, but then files/stat.o linking fails since it cannot find f_max/f_min which are defined in the _math/math.c file. The other solution is to precompile those files when exporting the sources, but alas - I have no idea how to do that :)
thanks,
marek
/ Brevbäraren
I guess you mean the Math directory, not the _math directory. Anyway, by looking at the export made by pikefarm I can't see anything wrong. The c-files for both Gmp and Math are generated as they should and included in the exported package.
/ Martin Nilsson (Åskblod)
Previous text:
2003-02-06 00:32: Subject: The Gmp, Math modules and the files module in pike 7.5
Hey all,
The Gmp/ and _math/ directories in src/modules/ both contain .cmod files which requires that the system where pike is compiled (even from exported sources) will require an existing pike before even tpike is linked. I thought that moving them to post_modules/ would be a temporary solution, but then files/stat.o linking fails since it cannot find f_max/f_min which are defined in the _math/math.c file. The other solution is to precompile those files when exporting the sources, but alas - I have no idea how to do that :)
thanks,
marek
/ Brevbäraren
On Thu, Feb 06, 2003 at 12:45:03AM +0100, Martin Nilsson (Åskblod) @ Pike (-) developers forum scribbled:
I guess you mean the Math directory, not the _math directory. Anyway, by
right
looking at the export made by pikefarm I can't see anything wrong. The c-files for both Gmp and Math are generated as they should and included in the exported package.
Math seems to be fine, indeed, but Gmp/ contains mpf.cmod and mpq.cmod which have no their .c counterparts in the tarball.
marek
I just made a fresh checkout and a make snapshot and both mpf.c and mpq.c ended up in it, so it appears to be certain conditions under which the export do work.
/ Martin Nilsson (Åskblod)
Previous text:
2003-02-06 00:55: Subject: Re: The Gmp, Math modules and the files module in pike 7.5
On Thu, Feb 06, 2003 at 12:45:03AM +0100, Martin Nilsson (Åskblod) @ Pike (-) developers forum scribbled:
I guess you mean the Math directory, not the _math directory. Anyway, by
right
looking at the export made by pikefarm I can't see anything wrong. The c-files for both Gmp and Math are generated as they should and included in the exported package.
Math seems to be fine, indeed, but Gmp/ contains mpf.cmod and mpq.cmod which have no their .c counterparts in the tarball.
marek
/ Brevbäraren
On Thu, Feb 06, 2003 at 01:40:04AM +0100, Martin Nilsson (Åskblod) @ Pike (-) developers forum scribbled:
I just made a fresh checkout and a make snapshot and both mpf.c and mpq.c ended up in it, so it appears to be certain conditions under which the export do work.
I just did the same on Debian/Sid - the mpf.c and mpq.c exist neither in the build/ tree, or in the source tree, or in the tarball. But I guess I know what's the problem:
/Gmp' /usr/src/tmp/7.5/build/source/precompile.sh /usr/src/tmp/7.5/src/modules/Gmp/prime_table.pike 1024
/usr/src/tmp/7.5/src/modules/Gmp/prime_table.out || { rm
/usr/src/tmp/7.5/src/modules/Gmp/prime_table.out; exit 1; } precompile: pike /usr/src/tmp/7.5/src/modules/Gmp/prime_table.pike 1024 (method=QQQQQQ) /usr/src/tmp/7.5/build/source/precompile.sh --cache precompile.pike >"/usr/src/tmp/7.5/src/modules/Gmp/mpf.c" "/usr/src/tmp/7.5/src/modules/Gmp/mpf.cmod" || { rm "/usr/src/tmp/7.5/src/modules/Gmp/mpf.c"; exit 1; } precompile: pike /usr/src/tmp/7.5/bin/precompile.pike /usr/src/tmp/7.5/src/modules/Gmp/mpf.cmod (method=QQQQQQ) cast: Item 8 is not an integer.
the binary 'pike' on my system is 7.2.440 - maybe it would be a good idea to check for the version of pike somewhere so that such errors don't happen? It seems that the problem is coming from Parser.Pike.
marek
Yes, you are right. I wonder why you don't end up in "# Total failure" in precompile.sh though...
/ Martin Nilsson (Åskblod)
Previous text:
2003-02-06 02:20: Subject: Re: The Gmp, Math modules and the files module in pike 7.5
On Thu, Feb 06, 2003 at 01:40:04AM +0100, Martin Nilsson (Åskblod) @ Pike (-) developers forum scribbled:
I just made a fresh checkout and a make snapshot and both mpf.c and mpq.c ended up in it, so it appears to be certain conditions under which the export do work.
I just did the same on Debian/Sid - the mpf.c and mpq.c exist neither in the build/ tree, or in the source tree, or in the tarball. But I guess I know what's the problem:
/Gmp' /usr/src/tmp/7.5/build/source/precompile.sh /usr/src/tmp/7.5/src/modules/Gmp/prime_table.pike 1024
/usr/src/tmp/7.5/src/modules/Gmp/prime_table.out || { rm
/usr/src/tmp/7.5/src/modules/Gmp/prime_table.out; exit 1; } precompile: pike /usr/src/tmp/7.5/src/modules/Gmp/prime_table.pike 1024 (method=QQQQQQ) /usr/src/tmp/7.5/build/source/precompile.sh --cache precompile.pike >"/usr/src/tmp/7.5/src/modules/Gmp/mpf.c" "/usr/src/tmp/7.5/src/modules/Gmp/mpf.cmod" || { rm "/usr/src/tmp/7.5/src/modules/Gmp/mpf.c"; exit 1; } precompile: pike /usr/src/tmp/7.5/bin/precompile.pike /usr/src/tmp/7.5/src/modules/Gmp/mpf.cmod (method=QQQQQQ) cast: Item 8 is not an integer.
the binary 'pike' on my system is 7.2.440 - maybe it would be a good idea to check for the version of pike somewhere so that such errors don't happen? It seems that the problem is coming from Parser.Pike.
marek
/ Brevbäraren
On Thu, Feb 06, 2003 at 02:45:02AM +0100, Martin Nilsson (Åskblod) @ Pike (-) developers forum scribbled:
Yes, you are right. I wonder why you don't end up in "# Total failure" in precompile.sh though...
It appeared that even though precompile.sh failed, make ignored the error and went on.
marek
If so, then your make is buggy.
/ Martin Nilsson (Åskblod)
Previous text:
2003-02-06 02:54: Subject: Re: The Gmp, Math modules and the files module in pike 7.5
On Thu, Feb 06, 2003 at 02:45:02AM +0100, Martin Nilsson (Åskblod) @ Pike (-) developers forum scribbled:
Yes, you are right. I wonder why you don't end up in "# Total failure" in precompile.sh though...
It appeared that even though precompile.sh failed, make ignored the error and went on.
marek
/ Brevbäraren
pike-devel@lists.lysator.liu.se