[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cygwin compile troubles
From: |
Jari Aalto+mail.emacs |
Subject: |
Cygwin compile troubles |
Date: |
Wed, 12 Dec 2001 00:38:44 +0200 |
Whom can I contact with the Cygwin compile troubles. Is there
separate mailing list or person(s) who maintain windows port and
use cygwin to compile Emacs?
the nt/INSTALL instructs to use configure flag
configure --with-gcc --cflags -mwin32 --cflags -D__MSVCRT__
But I believe the -mwin32 is incorrect, because it causes the
configure to fail. I used only --with-gcc with following results.
The CVS directory is mounted as text
I also suggest adding a bit more verbose bat messages. Patch
attached to the end. The code used for testing is from current CVS.
Jari
-----------------------------------------------------------------------
h:\unix-root\u\usr\src\cvs-source\emacs on /usr/src/cvs-source/emacs type user
(textmode)
h:\unix-root\u\bin on /usr/bin type user (binmode)
h:\unix-root\u\lib on /usr/lib type user (binmode)
h:\unix-root\u on / type user (binmode)
e:\home on /home type user (binmode)
c: on /cygdrive/c type user (binmode,noumount)
d: on /cygdrive/d type user (binmode,noumount)
e: on /cygdrive/e type user (binmode,noumount)
f: on /cygdrive/f type user (binmode,noumount)
g: on /cygdrive/g type user (binmode,noumount)
h: on /cygdrive/h type user (binmode,noumount)
i: on /cygdrive/i type user (binmode,noumount)
k: on /cygdrive/k type user (binmode,noumount)
l: on /cygdrive/l type user (binmode,noumount)
-----------------------------------------------------------------------
FAILEd CONFIGURE
//root@W2KPICASSO /usr/src/cvs-source/emacs/nt $ configure.bat --with-gcc
--cflags -mwin32
Checking for 'cp'...
Checking for 'rm'...
Checking whether gcc requires '-mno-cygwin'...
...good, -mno-cygwin supported
Checking whether W32 API headers are too old...
h:\unix-root\u\usr\src\cvs-source\emacs\nt>gcc -mwin32 -mno-cygwin -c junk.c
junk.c:0: malformed option `-D __WIN32__-DWIN32'
-----------------------------------------------------------------------
CONFIGURE OK, but compilation failed
//root@W2KPICASSO ~/elisp/tiny $ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
gcc version 2.95.3-5 (cygwin special)
//root@W2KPICASSO ~/elisp/tiny $ echo $SHELL
/bin/bash
//root@W2KPICASSO ~/elisp/tiny $ make -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
//root@W2KPICASSO /usr/src/cvs-source/emacs/nt $ configure.bat --with-gcc
Checking for 'cp'...
...good, cp found
Checking for 'rm'...
...good, rm found
Checking whether gcc requires '-mno-cygwin'...
...good, -mno-cygwin supported
Checking whether W32 API headers are too old...
h:\unix-root\u\usr\src\cvs-source\emacs\nt>gcc -mno-cygwin -c junk.c
h:\unix-root\u\usr\src\cvs-source\emacs\nt>echo off
Using 'gcc'
Generating makefiles
1 file(s) copied.
1 file(s) copied.
config.settings
gmake.defs
..\nt\makefile.w32-in
1 file(s) copied.
config.settings
gmake.defs
..\lib-src\makefile.w32-in
1 file(s) copied.
config.settings
gmake.defs
..\src\makefile.w32-in
1 file(s) copied.
config.settings
gmake.defs
..\lisp\makefile.w32-in
1 file(s) copied.
config.settings
gmake.defs
..\leim\makefile.w32-in
1 file(s) copied.
Emacs successfully configured.
Run `gmake' to build, then run `gmake install' to install.
//root@W2KPICASSO /usr/src/cvs-source/emacs/nt $ make
[Please ignore a syntax error on the next line - it is intentional]
Syntax error: Unterminated quoted string
Using /bin/sh.exe as shell.
mkdir "oo-spd"
mkdir "oo-spd/i386"
gcc -I. -DWIN32_LEAN_AND_MEAN -D_X86_=1 -c -g -mno-cygwin -mcpu=i686 -O2
-Di386 -D_CRTAPI1=_cdecl -o oo-spd/i386/addpm.o addpm.c
gcc -o oo-spd/i386/addpm.exe \
-g -mno-cygwin oo-spd/i386/addpm.o -ladvapi32 -luser32
oo-spd/i386/addpm.o: In function `main':
/usr/src/cvs-source/emacs/nt/addpm.c:144: undefined reference to `_impure_ptr'
/usr/src/cvs-source/emacs/nt/addpm.c:157: undefined reference to `_impure_ptr'
/usr/src/cvs-source/emacs/nt/addpm.c:172: undefined reference to `_impure_ptr'
collect2: ld returned 1 exit status
make: *** [oo-spd/i386/addpm.exe] Error 1
//root@W2KPICASSO /usr/src/cvs-source/emacs/nt $
-----------------------------------------------------------------------
--- configure.bat.1.15 Wed Dec 12 00:21:22 2001
+++ configure.bat Wed Dec 12 00:24:04 2001
@@ -29,7 +29,7 @@
rem For reference, here is a list of which builds of gmake are known to
rem work or not, and whether they work in the presence and/or absence of
rem sh.exe.
-rem
+rem
rem sh exists no sh
rem cygwin b20.1 make (3.75): okay[1] fails[2]
rem MSVC compiled gmake 3.77: okay okay
@@ -149,9 +149,11 @@
:checkutils
echo Checking for 'cp'...
cp configure.bat junk.bat
+if exist junk.bat echo ...good, cp found
if not exist junk.bat goto needcp
echo Checking for 'rm'...
rm junk.bat
+if not exist junk.bat echo ...good, rm found
if exist junk.bat goto needrm
goto checkcompiler
:needcp
@@ -191,6 +193,7 @@
if not exist junk.o goto chkapi
gcc -mno-cygwin -c junk.c
if exist junk.o set nocygwin=Y
+if exist junk.o echo ...good, -mno-cygwin supported
rm -f junk.c junk.o
:chkapi
- Cygwin compile troubles,
Jari Aalto+mail.emacs <=