|
From: Elliott S. <ell...@gm...> - 2011-04-15 00:43:17
|
Hi, I'm trying to do a minimal CLISP 2.49 build (with libsigsegv and nothing else) on MinGW so I can test installer fixes. The build terminates with: gcc -I/c/Users/Elliott/Desktop/clisp-2.49/../clisp-libs/include -I/c/Users/Elliott/Desktop/clisp-2.49/build/gllib -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -fexpensive-optimizations -falign-functions=4 -DENABLE_UNICODE -DNO_TERMCAP_NCURSES -DDYNAMIC_MODULES -I. -c spvw.c In file included from ../src/spvw.d:23:0: ../src/lispbibl.d:1986:21: fatal error: win32.c: No such file or directory Here is the unabridged build log: http://pastebin.com/MMkrsEjV I am running Windows 7 64-bit with a fairly recent fresh install of MinGW. $ gcc --version gcc.exe (GCC) 4.5.2 Let me know if you want me to try anything. -- Elliott Slaughter "Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay |
|
From: Sam S. <sd...@gn...> - 2011-04-15 14:23:19
|
Hi, > * Elliott Slaughter <ryy...@tz...> [2011-04-14 17:43:10 -0700]: > > ../src/lispbibl.d:1986:21: fatal error: win32.c: No such file or directory this means that the compiler is trying to compile a native win32 version of clisp (which is obviously what you want) but makemake did not agree. > Here is the unabridged build log: http://pastebin.com/MMkrsEjV thanks for the log. it is very helpful. it shows that TOS (target OS) is set to unix instead of win32. if you add "-verbose" to the makemake invocation in the Makefile and do "make Makefile", you _should_ see something like this: # # host system: # hostname = "stnt067" # HSYS = "win32gcc" # HSYSOS = "win32gcc" # HOS = "win32" # host_cpu = "i686" # cpu = "i386" # host_os = "mingw32" # host = "i686-pc-mingw32" # # target system: # TSYS = "win32gcc" # TSYSOS = "win32gcc" # TOS = "win32" what do you see? the solution is to add "--with-mingw" to the top-level configure invocation or "--win32gcc" to the makemake invocation in Makefile. Good luck! -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.5 (Final) X 11.0.60900031 http://jihadwatch.org http://ffii.org http://mideasttruth.com http://honestreporting.com http://iris.org.il http://pmw.org.il History doesn't repeat itself, but historians do repeat each other. |
|
From: Elliott S. <ell...@gm...> - 2011-04-15 18:32:53
|
On Fri, Apr 15, 2011 at 7:23 AM, Sam Steingold <sd...@gn...> wrote: > Hi, > > > * Elliott Slaughter <ryy...@tz...> [2011-04-14 17:43:10 > -0700]: > > > > ../src/lispbibl.d:1986:21: fatal error: win32.c: No such file or > directory > > this means that the compiler is trying to compile a native win32 version > of clisp (which is obviously what you want) but makemake did not agree. > > > Here is the unabridged build log: http://pastebin.com/MMkrsEjV > > thanks for the log. it is very helpful. it shows that TOS (target OS) is > set to unix instead of win32. if you add "-verbose" to the makemake > invocation in the Makefile and do "make Makefile", you _should_ see > something like this: > > what do you see? > # host system: hostname = "Blackthorn" HSYS = "i686" HSYSOS = "mingw32_nt-6.1" HOS = "unix" host_cpu = "i686" cpu = "i386" host_os = "mingw32" host = "i686-pc-mingw32" # target system: TSYS = "i686" TSYSOS = "mingw32_nt-6.1" TOS = "unix" the solution is to add "--with-mingw" to the top-level configure invocation > or > "--win32gcc" to the makemake invocation in Makefile. > > Good luck! > Ok, with the mingw configure flag it builds, but looks like I'm getting a failure in check-fresh-line: ./lisp.exe -B . -N locale -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc -q -M lispinit.mem -x '(progn (dolist (s (quote (*terminal-io* *standard-output* *error-output* *query-io* *debug-io* *trace-output*))) (format t "~S = ~S~%" s (symbol-value s) (values))' 2>&1 > fresh-line.out [../src/eval.d:573] reset() found no driver frame (sp=0x28fe60-0x28b3d4) make: *** [check-fresh-line] Error 255 -- Elliott Slaughter "Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay |
|
From: Sam S. <sd...@gn...> - 2011-04-15 18:56:46
|
> * Elliott Slaughter <ryy...@tz...> [2011-04-15 11:32:46 -0700]: > > # host system: > hostname = "Blackthorn" > HSYS = "i686" > HSYSOS = "mingw32_nt-6.1" > HOS = "unix" > host_cpu = "i686" > cpu = "i386" > host_os = "mingw32" > host = "i686-pc-mingw32" > # target system: > TSYS = "i686" > TSYSOS = "mingw32_nt-6.1" > TOS = "unix" I wonder if HOS and TOS should be set from HSYSOS and TSYSOS in this case... > Ok, with the mingw configure flag it builds, but looks like I'm getting a > failure in check-fresh-line: > > ./lisp.exe -B . -N locale -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc -q -M > lispinit.mem -x '(progn (dolist (s (quote (*terminal-io* *standard-output* > *error-output* *query-io* *debug-io* *trace-output*))) (format t "~S = ~S~%" > s (symbol-value s) (values))' 2>&1 > fresh-line.out > > [../src/eval.d:573] reset() found no driver frame (sp=0x28fe60-0x28b3d4) > make: *** [check-fresh-line] Error 255 this is not good and it would be nice if you could debug this, but it should not prevent you from fixing the installer problem. thanks. -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.5 (Final) X 11.0.60900031 http://honestreporting.com http://jihadwatch.org http://www.memritv.org http://truepeace.org http://www.PetitionOnline.com/tap12009/ http://camera.org The only time you have too much fuel is when you're on fire. |
|
From: Sam S. <sd...@gn...> - 2011-04-15 19:12:43
|
> * Elliott Slaughter <ryy...@tz...> [2011-04-14 17:43:10 -0700]: > > Here is the unabridged build log: http://pastebin.com/MMkrsEjV please try the appended patch (make sure makemake is _not_ called with --win32gcc) -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.5 (Final) X 11.0.60900031 http://pmw.org.il http://dhimmi.com http://honestreporting.com http://www.PetitionOnline.com/tap12009/ http://palestinefacts.org To understand recursion, one has to understand recursion first. diff -r b573979456c9 src/makemake.in --- a/src/makemake.in Fri Apr 15 13:03:03 2011 -0400 +++ b/src/makemake.in Fri Apr 15 15:10:40 2011 -0400 @@ -591,11 +591,17 @@ fi # feature or bug than to look at various `uname ...` results and list # the buggy systems explicitly. ONLY in this case! +set_win32gcc(){ + HSYSOS=$HSYS + HOS=win32 + COMPILER=gcc +} + case $# in 0 | 1) # Assume we are on Unix (or win32gcc); target=host (not cross-compiling). CROSS=false - if [ -z "$HSYS" ]; then # not win32gcc + if [ -z "$HSYS" ]; then # no --win32gcc # some shells (A/UX and OSF/1) need the parentheses around "arch" below. HSYS=`((arch) 2>/dev/null || uname -m 2>/dev/null) | $tolower` # system name in lowercase HSYSOS=`((uname) 2>/dev/null || arch 2>/dev/null) | $tolower` # OS name in lowercase @@ -605,16 +611,16 @@ case $# in if [ "$HSYS" = sun4m ] ; then HSYS='sun4' fi + HOS='unix' case "$HSYSOS" in # Canonicalize cygwin32/nt and cygwin32/95 to plain cygwin. cygwin*) HSYSOS=cygwin ;; + # Canonicalize mingw32_nt-6.1 - as if --win32gcc + mingw32*) HSYS=win32gcc; set_win32gcc ;; esac - HOS='unix' COMPILER=?? else # win32gcc - HSYSOS=$HSYS - HOS=win32 - COMPILER=gcc + set_win32gcc fi TSYS="$HSYS" TSYSOS="$HSYSOS" |
|
From: Sam S. <sd...@gn...> - 2011-04-15 21:04:31
|
> * Sam Steingold <fq...@ta...> [2011-04-15 15:12:31 -0400]: > >> * Elliott Slaughter <ryy...@tz...> [2011-04-14 17:43:10 -0700]: >> >> Here is the unabridged build log: http://pastebin.com/MMkrsEjV > > please try the appended patch (make sure makemake is _not_ called with --win32gcc) please try the appended patch instead. you need to reconfigure. -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.5 (Final) X 11.0.60900031 http://camera.org http://thereligionofpeace.com http://www.memritv.org http://palestinefacts.org http://jihadwatch.org Heck is a place for people who don't believe in gosh. diff -r 3fe45741d579 configure --- a/configure Fri Apr 15 16:28:01 2011 -0400 +++ b/configure Fri Apr 15 17:03:28 2011 -0400 @@ -643,6 +643,9 @@ makemake_args="${makemake_args} ${subdir test -n "${target}" && target="${target} ${ac_cv_host} ${ac_cv_prog_CC}" makemake_args="${makemake_args} ${target} ${debug}"; +case ${ac_cv_host} in + *mingw32*) makemake_args="${makemake_args} --win32gcc" ;; +esac test -n "${cl_cv_have_ffcall}" || cl_cv_have_ffcall=notchecked cat <<EOF |
|
From: Elliott S. <ell...@gm...> - 2011-04-16 07:14:09
|
On Fri, Apr 15, 2011 at 2:04 PM, Sam Steingold <sd...@gn...> wrote: > > * Sam Steingold <fq...@ta...> [2011-04-15 15:12:31 -0400]: > > > >> * Elliott Slaughter <ryy...@tz...> [2011-04-14 17:43:10 > -0700]: > >> > >> Here is the unabridged build log: http://pastebin.com/MMkrsEjV > > > > please try the appended patch (make sure makemake is _not_ called with > --win32gcc) > > please try the appended patch instead. > you need to reconfigure. Yup, fixed. Thanks. -- Elliott Slaughter "Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay |