|
|
last edited 15 years ago by japp |
1 2 3 | ||
Editor:
Time: 2007/11/17 22:05:36 GMT-8 |
||
Note: |
changed: - Compile fail on Fedora Core 4. The error seems to be the randomized sbrk. How can I avoid it? Thanks Domenico <pre> checking endianness... little checking for sbrk... yes checking for randomized sbrk... yes checking for randomized brk remedy... no Cannot build with randomized sbrk make[3]: Entering directory `/home/dmo/axiom/lsp/gcl-2.6.6' rm -f bin/gcl xbin/gcl MGCLDIR=`echo /home/dmo/axiom/lsp/gcl-2.6.6 | sed -e 'sX^\([a-z]\):X/\1Xg'` ; \ GCLDIR=`echo /home/dmo/axiom/lsp/gcl-2.6.6` ; \ make install-command "INSTALL_LIB_DIR=$GCLDIR" "prefix=$GCLDIR" "BINDIR=$MGCLDIR/unixport" make[4]: Entering directory `/home/dmo/axiom/lsp/gcl-2.6.6' rm -f /home/dmo/axiom/lsp/gcl-2.6.6/bin/gcl (echo '#!/bin/sh' ; \ echo exec /home/dmo/axiom/lsp/gcl-2.6.6/unixport/ \\ ; \ echo ' -dir' /home/dmo/axiom/lsp/gcl-2.6.6/unixport/ \\ ; \ echo ' -libdir' /home/dmo/axiom/lsp/gcl-2.6.6/ \\ ; \ echo ' -eval '\''(setq si::*allow-gzipped-file* t)'\' \\ ;\ ! [ -d "" ] || echo ' -eval '\''(setq si::*tk-library* '\"\"')'\' \\;\ echo ' '\"\$@\" ) > /home/dmo/axiom/lsp/gcl-2.6.6/bin/gcl; echo '#' other options: -load "/tmp/foo.o" -load "jo.lsp" -eval '"(joe 3)"' >> /home/dmo/axiom/lsp/gcl-2.6.6/bin/gcl chmod a+x /home/dmo/axiom/lsp/gcl-2.6.6/bin/gcl rm -f /home/dmo/axiom/lsp/gcl-2.6.6/bin/gclm.bat if gcc --version | grep mingw >/dev/null 2>&1 ; then (echo '@SET cd='; \ echo '@SET promp%prompt%'; \ echo '@PROMPT SET cd'; \ echo '@CALL>%temp%.\setdir.bat'; \ echo '@'; \ echo '% do not delete this line %'; \ echo '@ECHO off'; \ echo 'PROMPT %promp'; \ echo 'FOR %%c IN (CALL DEL) DO %%c %temp%.\setdir.bat'; \ echo 'set cwd=%cd%'; \ echo 'set libdir=%cd%\..\lib\gcl-`cat majvers`.`cat minvers`'; \ echo 'set unixportdir=%libdir%\unixport'; \ echo 'path %cd%\..\mingw\bin;%PATH%'; \ echo "start %unixportdir%\.exe -dir %unixportdir% -libdir %libdir% -eval \"(setq si::*allow-gzipped-file* t)\" %1 %2 %3 %4 %5 %6 %7 %8 %9" ) > /home/dmo/axiom/lsp/gcl-2.6.6/bin/gclm.bat ; fi rm -f /home/dmo/axiom/lsp/gcl-2.6.6/bin/gclfinal.bat if gcc --version | grep -i mingw >/dev/null 2>&1 ; then (echo 'ECHO path %1\mingw\bin;%PATH% > gcli.bat'; \ echo "ECHO start %1\lib\gcl-`cat majvers`.`cat minvers`\unixport\.exe -dir %1\lib\gcl-`cat majvers`.`cat minvers`\unixport -libdir %1\lib\gcl-`cat majvers`.`cat minvers` -eval \"(setq si::*allow-gzipped-file* t)\" %1 %2 %3 %4 %5 %6 %7 %8 %9 >> gcli.bat" ) > /home/dmo/axiom/lsp/gcl-2.6.6/bin/gclfinal.bat ; fi make[4]: Leaving directory `/home/dmo/axiom/lsp/gcl-2.6.6' (cd xbin ; cp ../bin/gcl .) cd cmpnew && make gcl_collectfn.o make[4]: Entering directory `/home/dmo/axiom/lsp/gcl-2.6.6/cmpnew' ../unixport/saved_pre_gcl ../unixport/ -compile gcl_collectfn.lsp make[4]: ../unixport/saved_pre_gcl: Command not found make[4]: *** [gcl_collectfn.o] Error 127 make[4]: Leaving directory `/home/dmo/axiom/lsp/gcl-2.6.6/cmpnew' make[3]: *** [cmpnew/gcl_collectfn.o] Error 2 make[3]: Leaving directory `/home/dmo/axiom/lsp/gcl-2.6.6' /bin/sh: unixport/saved_gcl: No such file or directory make[2]: *** [gcldir] Error 127 make[2]: Leaving directory `/home/dmo/axiom/lsp' make[1]: *** [lspdir] Error 2 make[1]: Leaving directory `/home/dmo/axiom' make: *** [all] Error 2 [dmo@localhost axiom]$ <pre> From CammMaguire Mon Jul 11 22:00:52 -0500 2005 From: Camm Maguire Date: Mon, 11 Jul 2005 22:00:52 -0500 Subject: [#190 Compile fail on Fedora Core 4] (nuovo) Message-ID: <54ll4cu3rm.fsf@intech19.enhanced.com> In-Reply-To: <20050707070418-0500@page.axiom-developer.org> Greetings! GCL works around RH's randomization of sbrk (an absolute necessity) by making use of the sysctl i386 personality calls as done in the 'setarch' utility. This works on FC2 and FC3. It would be helpful if you could discover why this apparently does not work in FC4. The failed tester program and output should be in the file config.log. Take care, -- Camm Maguire camm@enhanced.com ========================================================================== "The earth is but one country, and mankind its citizens." -- Baha'u'llah From unknown Wed Jul 13 01:24:14 -0500 2005 From: unknown Date: Wed, 13 Jul 2005 01:24:14 -0500 Subject: Message-ID: <20050713012414-0500@page.axiom-developer.org> The same error appear compiling gcc-2.6.6 alone. This is axiom's config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:786: checking host system type configure:1199: checking for gcc configure:1312: checking whether the C compiler (gcc ) works configure:1328: gcc -o conftest conftest.c 1>&5 configure:1354: checking whether the C compiler (gcc ) is a cross-compiler configure:1359: checking whether we are using GNU C configure:1368: gcc -E conftest.c configure:1387: checking whether gcc accepts -g configure:1419: checking how to run the C preprocessor configure:1440: gcc -E conftest.c >/dev/null 2>conftest.out configure:1547: checking for gawk configure:1663: checking system version (for dynamic loading) configure:1671: checking for makeinfo configure:1728: checking for unistd.h configure:1738: gcc -E conftest.c >/dev/null 2>conftest.out configure:1755: checking for sysconf in -lc configure:1774: gcc -o conftest conftest.c -lc 1>&5 configure:1790: checking for _SC_CLK_TCK configure:1807: gcc -o conftest conftest.c 1>&5 configure:1851: checking for gmp.h configure:1861: gcc -E conftest.c >/dev/null 2>conftest.out configure:1878: checking for __gmpz_init in -lgmp configure:1897: gcc -o conftest conftest.c -lgmp 1>&5 configure:1913: checking for external gmp version configure:1929: gcc -o conftest conftest.c 1>&5 configure:2008: checking for leading underscore in object symbols configure:2022: checking for GNU ld option -Map configure:2039: checking for size of gmp limbs configure:2055: gcc -o conftest conftest.c 1>&5 configure:2078: checking _SHORT_LIMB configure:2095: gcc -o conftest conftest.c 1>&5 configure: failed program was: #line 2083 "configure" #include "confdefs.h" #include <stdio.h> #include "/usr/include/gmp.h" int main() { #ifdef _SHORT_LIMB return 0; #else return 1; #endif } configure:2111: checking _LONG_LONG_LIMB configure:2128: gcc -o conftest conftest.c 1>&5 configure: failed program was: #line 2116 "configure" #include "confdefs.h" #include <stdio.h> #include "/usr/include/gmp.h" int main() { #ifdef _LONG_LONG_LIMB return 0; #else return 1; #endif } configure:2167: checking for X configure:2481: checking for dnet_ntoa in -ldnet configure:2500: gcc -o conftest conftest.c -ldnet 1>&5 /usr/bin/ld: cannot find -ldnet collect2: ld returned 1 exit status configure: failed program was: #line 2489 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dnet_ntoa(); int main() { dnet_ntoa() ; return 0; } configure:2522: checking for dnet_ntoa in -ldnet_stub configure:2541: gcc -o conftest conftest.c -ldnet_stub 1>&5 /usr/bin/ld: cannot find -ldnet_stub collect2: ld returned 1 exit status configure: failed program was: #line 2530 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dnet_ntoa(); int main() { dnet_ntoa() ; return 0; } configure:2570: checking for gethostbyname configure:2598: gcc -o conftest conftest.c 1>&5 configure:2668: checking for connect configure:2696: gcc -o conftest conftest.c 1>&5 configure:2760: checking for remove configure:2788: gcc -o conftest conftest.c 1>&5 configure:2852: checking for shmat configure:2880: gcc -o conftest conftest.c 1>&5 configure:2953: checking for IceConnectionNumber in -lICE configure:2972: gcc -o conftest -L/usr/X11R6/lib conftest.c -lICE 1>&5 configure:3003: checking for main in -lXmu configure:3018: gcc -o conftest conftest.c -lXmu -L/usr/X11R6/lib 1>&5 configure:3040: checking for main in -lXt configure:3055: gcc -o conftest conftest.c -lXt -L/usr/X11R6/lib -lXmu 1>&5 configure:3077: checking for main in -lXext configure:3092: gcc -o conftest conftest.c -lXext -L/usr/X11R6/lib -lXmu -lXt 1>&5 configure:3114: checking for main in -lXaw configure:3129: gcc -o conftest conftest.c -lXaw -L/usr/X11R6/lib -lXmu -lXt -lXext 1>&5 configure:3151: checking for main in -lX11 configure:3166: gcc -o conftest conftest.c -lX11 -L/usr/X11R6/lib -lXmu -lXt -lXext -lXaw 1>&5 configure:3260: checking for bfd.h configure:3270: gcc -E conftest.c >/dev/null 2>conftest.out configure:3287: checking for bfd_init in -lbfd configure:3306: gcc -o conftest conftest.c -lbfd -liberty 1>&5 configure:3325: checking if need to define CONST for bfd configure:3336: gcc -o conftest conftest.c 1>&5 configure:3394: checking for useable bfd_boolean configure:3406: gcc -o conftest conftest.c 1>&5 configure:3593: checking size of long configure:3613: gcc -o conftest conftest.c 1>&5 configure: In function 'main': configure:3607: warning: incompatible implicit declaration of built-in function 'exit' configure:3633: checking sizeof struct contblock configure:3686: gcc -o conftest conftest.c 1>&5 configure:3711: checking for endian.h configure:3721: gcc -E conftest.c >/dev/null 2>conftest.out configure:3742: checking endianness configure:3753: gcc -o conftest conftest.c 1>&5 configure:3780: checking for sbrk configure:3798: gcc -o conftest conftest.c 1>&5 configure:3814: checking for randomized sbrk configure:3831: gcc -o conftest conftest.c 1>&5 configure:3863: gcc -o conftest conftest.c 1>&5 configure:3883: checking for randomized brk remedy configure:3908: gcc -o conftest conftest.c 1>&5 configure:3948: gcc -o conftest conftest.c 1>&5
Compile fail on Fedora Core 4. The error seems to be the randomized sbrk. How can I avoid it?
Thanks Domenico
checking endianness... little checking for sbrk... yes checking for randomized sbrk... yes checking for randomized brk remedy... no Cannot build with randomized sbrk make[3]: Entering directory `/home/dmo/axiom/lsp/gcl-2.6.6' rm -f bin/gcl xbin/gcl MGCLDIR=`echo /home/dmo/axiom/lsp/gcl-2.6.6 | sed -e 'sX^\([a-z]\):X/\1Xg'` ; \ GCLDIR=`echo /home/dmo/axiom/lsp/gcl-2.6.6` ; \ make install-command "INSTALL_LIB_DIR=$GCLDIR" "prefix=$GCLDIR" "BINDIR=$MGCLDIR/unixport" make[4]: Entering directory `/home/dmo/axiom/lsp/gcl-2.6.6' rm -f /home/dmo/axiom/lsp/gcl-2.6.6/bin/gcl (echo#!/bin/sh
; \ echo exec /home/dmo/axiom/lsp/gcl-2.6.6/unixport/ \\ ; \ echo-dir
/home/dmo/axiom/lsp/gcl-2.6.6/unixport/ \\ ; \ echo-libdir
/home/dmo/axiom/lsp/gcl-2.6.6/ \\ ; \ echo ' -eval '\''(setq si::allow-gzipped-file t)\
\\ ;\ [ -d "" ] || echo ' -eval '\''(setq si::tk-library '\"\"')'\\\;\ echo
'\"\$@\" ) > /home/dmo/axiom/lsp/gcl-2.6.6/bin/gcl; echo#
other options: -load "/tmp/foo.o" -load "jo.lsp" -eval"(joe 3)"
>> /home/dmo/axiom/lsp/gcl-2.6.6/bin/gcl chmod a+x /home/dmo/axiom/lsp/gcl-2.6.6/bin/gcl rm -f /home/dmo/axiom/lsp/gcl-2.6.6/bin/gclm.bat if gcc --version | grep mingw >/dev/null 2>&1 ; then (echo '@SET cd='; \ echo '@SET promp%prompt%'; \ echo '@PROMPT SET cd'; \ echo '@CALL>%temp%.\setdir.bat'; \ echo '@'; \ echo '% do not delete this line %'; \ echo '@ECHO off'; \ echo 'PROMPT %promp'; \ echo 'FOR %%c IN (CALL DEL) DO %%c %temp%.\setdir.bat'; \ echo 'set cwd=%cd%'; \ echo 'set libdir=%cd%\..\lib\gcl-`cat majvers`.`cat minvers`'; \ echo 'set unixportdir=%libdir%\unixport'; \ echo 'path %cd%\..\mingw\bin;%PATH%'; \ echo "start %unixportdir%\.exe -dir %unixportdir% -libdir %libdir% -eval \"(setq si::allow-gzipped-file t)\" %1 %2 %3 %4 %5 %6 %7 %8 %9" ) > /home/dmo/axiom/lsp/gcl-2.6.6/bin/gclm.bat ; fi rm -f /home/dmo/axiom/lsp/gcl-2.6.6/bin/gclfinal.bat if gcc --version | grep -i mingw >/dev/null 2>&1 ; then (echo 'ECHO path %1\mingw\bin;%PATH% > gcli.bat'; \ echo "ECHO start %1\lib\gcl-`cat majvers`.`cat minvers`\unixport\.exe -dir %1\lib\gcl-`cat majvers`.`cat minvers`\unixport -libdir %1\lib\gcl-`cat majvers`.`cat minvers` -eval \"(setq si::allow-gzipped-file t)\" %1 %2 %3 %4 %5 %6 %7 %8 %9 >> gcli.bat" ) > /home/dmo/axiom/lsp/gcl-2.6.6/bin/gclfinal.bat ; fi make[4]: Leaving directory `/home/dmo/axiom/lsp/gcl-2.6.6' (cd xbin ; cp ../bin/gcl .) cd cmpnew && make gcl_collectfn.o make[4]: Entering directory `/home/dmo/axiom/lsp/gcl-2.6.6/cmpnew' ../unixport/saved_pre_gcl ../unixport/ -compile gcl_collectfn.lsp make[4]: ../unixport/saved_pre_gcl: Command not found make[4]: *** [gcl_collectfn.o] Error 127 make[4]: Leaving directory `/home/dmo/axiom/lsp/gcl-2.6.6/cmpnew' make[3]: *** [cmpnew/gcl_collectfn.o] Error 2 make[3]: Leaving directory `/home/dmo/axiom/lsp/gcl-2.6.6' /bin/sh: unixport/saved_gcl: No such file or directory make[2]: *** [gcldir] Error 127 make[2]: Leaving directory `/home/dmo/axiom/lsp' make[1]: *** [lspdir] Error 2 make[1]: Leaving directory `/home/dmo/axiom' make: *** [all] Error 2 [dmo@localhost axiom]$[#190 Compile fail on Fedora Core 4] (nuovo) --Camm Maguire, Mon, 11 Jul 2005 22:00:52 -0500 reply
Greetings! GCL works around RH's randomization of sbrk (an absolute necessity) by making use of the sysctl i386 personality calls as done in thesetarch
utility. This works on FC2 and FC3. It would be helpful if you could discover why this apparently does not work in FC4. The failed tester program and output should be in the file config.log.Take care,
-- Camm Maguire camm@enhanced.com ========================================================================== "The earth is but one country, and mankind its citizens." -- Baha'u'llah
... --unknown, Wed, 13 Jul 2005 01:24:14 -0500 reply
The same error appear compiling gcc-2.6.6 alone.This is axiom's config.log
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.
configure:786: checking host system type configure:1199: checking for gcc configure:1312: checking whether the C compiler (gcc ) works configure:1328: gcc -o conftest conftest.c 1>&5 configure:1354: checking whether the C compiler (gcc ) is a cross-compiler configure:1359: checking whether we are using GNU C configure:1368: gcc -E conftest.c configure:1387: checking whether gcc accepts -g configure:1419: checking how to run the C preprocessor configure:1440: gcc -E conftest.c >/dev/null 2>conftest.out configure:1547: checking for gawk configure:1663: checking system version (for dynamic loading) configure:1671: checking for makeinfo configure:1728: checking for unistd.h configure:1738: gcc -E conftest.c >/dev/null 2>conftest.out configure:1755: checking for sysconf in -lc configure:1774: gcc -o conftest conftest.c -lc 1>&5 configure:1790: checking for _SC_CLK_TCK configure:1807: gcc -o conftest conftest.c 1>&5 configure:1851: checking for gmp.h configure:1861: gcc -E conftest.c >/dev/null 2>conftest.out configure:1878: checking for __gmpz_init in -lgmp configure:1897: gcc -o conftest conftest.c -lgmp 1>&5 configure:1913: checking for external gmp version configure:1929: gcc -o conftest conftest.c 1>&5 configure:2008: checking for leading underscore in object symbols configure:2022: checking for GNU ld option -Map configure:2039: checking for size of gmp limbs configure:2055: gcc -o conftest conftest.c 1>&5 configure:2078: checking _SHORT_LIMB configure:2095: gcc -o conftest conftest.c 1>&5 configure: failed program was: #line 2083 "configure" #include "confdefs.h" #include
#include "/usr/include/gmp.h" int main() { #ifdef _SHORT_LIMB return 0; #else return 1; #endif } configure:2111: checking _LONG_LONG_LIMB configure:2128: gcc -o conftest conftest.c 1>&5 configure: failed program was: #line 2116 "configure" #include "confdefs.h" #include #include "/usr/include/gmp.h" int main() { #ifdef _LONG_LONG_LIMB return 0; #else return 1; #endif } configure:2167: checking for X configure:2481: checking for dnet_ntoa in -ldnet configure:2500: gcc -o conftest conftest.c -ldnet 1>&5 /usr/bin/ld: cannot find -ldnet collect2: ld returned 1 exit status configure: failed program was: #line 2489 "configure" #include "confdefs.h" / Override any gcc2 internal prototype to avoid an error. / / We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. / char dnet_ntoa(); int main() { dnet_ntoa() ; return 0; } configure:2522: checking for dnet_ntoa in -ldnet_stub configure:2541: gcc -o conftest conftest.c -ldnet_stub 1>&5 /usr/bin/ld: cannot find -ldnet_stub collect2: ld returned 1 exit status configure: failed program was: #line 2530 "configure" #include "confdefs.h" / Override any gcc2 internal prototype to avoid an error. / / We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. / char dnet_ntoa();
int main() { dnet_ntoa() ; return 0; } configure:2570: checking for gethostbyname configure:2598: gcc -o conftest conftest.c 1>&5 configure:2668: checking for connect configure:2696: gcc -o conftest conftest.c 1>&5 configure:2760: checking for remove configure:2788: gcc -o conftest conftest.c 1>&5 configure:2852: checking for shmat configure:2880: gcc -o conftest conftest.c 1>&5 configure:2953: checking for IceConnectionNumber in -lICE configure:2972: gcc -o conftest -L/usr/X11R6/lib conftest.c -lICE 1>&5 configure:3003: checking for main in -lXmu configure:3018: gcc -o conftest conftest.c -lXmu -L/usr/X11R6/lib 1>&5 configure:3040: checking for main in -lXt configure:3055: gcc -o conftest conftest.c -lXt -L/usr/X11R6/lib -lXmu 1>&5 configure:3077: checking for main in -lXext configure:3092: gcc -o conftest conftest.c -lXext -L/usr/X11R6/lib -lXmu -lXt 1>&5 configure:3114: checking for main in -lXaw configure:3129: gcc -o conftest conftest.c -lXaw -L/usr/X11R6/lib -lXmu -lXt -lXext 1>&5 configure:3151: checking for main in -lX11 configure:3166: gcc -o conftest conftest.c -lX11 -L/usr/X11R6/lib -lXmu -lXt -lXext -lXaw 1>&5 configure:3260: checking for bfd.h configure:3270: gcc -E conftest.c >/dev/null 2>conftest.out configure:3287: checking for bfd_init in -lbfd configure:3306: gcc -o conftest conftest.c -lbfd -liberty 1>&5 configure:3325: checking if need to define CONST for bfd configure:3336: gcc -o conftest conftest.c 1>&5 configure:3394: checking for useable bfd_boolean configure:3406: gcc -o conftest conftest.c 1>&5 configure:3593: checking size of long configure:3613: gcc -o conftest conftest.c 1>&5 configure: In function 'main': configure:3607: warning: incompatible implicit declaration of built-in function
exit
configure:3633: checking sizeof struct contblock configure:3686: gcc -o conftest conftest.c 1>&5 configure:3711: checking for endian.h configure:3721: gcc -E conftest.c >/dev/null 2>conftest.out configure:3742: checking endianness configure:3753: gcc -o conftest conftest.c 1>&5 configure:3780: checking for sbrk configure:3798: gcc -o conftest conftest.c 1>&5 configure:3814: checking for randomized sbrk configure:3831: gcc -o conftest conftest.c 1>&5 configure:3863: gcc -o conftest conftest.c 1>&5 configure:3883: checking for randomized brk remedy configure:3908: gcc -o conftest conftest.c 1>&5 configure:3948: gcc -o conftest conftest.c 1>&5