Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Fri, 28 Mar 2003 00:01:49 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: yi ru cc: cygwin AT cygwin DOT com Subject: Re: Question: make, makefile and KVM in J2ME In-Reply-To: Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Eric, One more rule of this list: please keep replies on the list instead of sending private mail. That way you get access to much more expertise than a lone person can offer. For your convenience, I've reset the Reply-To: field accordingly. Try running "make" with a "-n" to see what commands would be executed. Try running each command by hand. It's likely you have a problem with your gcc installation. You may, for example, be missing the gcc-mingw package, which is necessary for the "-mno-cygwin" option used in the Makefile. Attaching the output of "cygcheck -svr", as described in , would be very helpful for answering these kinds of questions. Others on this list may also offer useful suggestions. Igor On Fri, 28 Mar 2003, yi ru wrote: > Hi, Igor Pechtchanski > > I am new comer to this mail list. I don't know the rule here. Sorry for > switch the thread. Next time will I just reply the message instead of > putting a new thread if I want to continue discuss? > > Yeah you are right, I miss many there. I am not farmilar with cygwin. I > don't put more detail (the right makefile). because I find a similar one the > list so I follow his one and hope to get help. > > Here is the makefile in the tools/preverifier/build/win32 > ================================================================================= > # > # Copyright 1995-2002 by Sun Microsystems, Inc., > # 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. > # All rights reserved. > # > # This software is the confidential and proprietary information > # of Sun Microsystems, Inc. ("Confidential Information"). You > # shall not disclose such Confidential Information and shall use > # it only in accordance with the terms of the license agreement > # you entered into with Sun. > # Use is subject to license terms. > # > > TOP=../../../.. > include $(TOP)/build/Makefile.inc > > SRC_DIR = ../../src > > OBJS = \ > check_class.obj \ > main.obj \ > utf.obj \ > check_code.obj \ > convert_md.obj \ > util.obj \ > jar.obj \ > jar_support.obj \ > classloader.obj \ > file.obj \ > classresolver.obj \ > stubs.obj \ > inlinejsr.obj \ > sys_support.obj > > OTHER_FLAGS += \ > -I$(SRC_DIR) \ > -DWIN32 \ > -DJAVAVERIFY \ > -DTRIMMED \ > -D$(ARCH) \ > $(EXTRACFLAGS) > > ifeq ($(GCC), true) > CC = gcc > LD = gcc > CFLAGS = -DWIN32 -DGCC -mno-cygwin -mcpu=i386 -Wall $(OTHER_FLAGS) > LIBS= -luser32 -lkernel32 -lmsvcrt -lwsock32 > CPPFLAGS += > DEBUG_FLAG = > LDFLAGS = -mno-cygwin > > ifeq ($(DEBUG), true) > DEBUG_FLAG = -g > endif > > OPTIMIZE_FLAG = -O2 > OUTPUT = -o > LINKER_OUTPUT = -o > > else > CC= cl > LD= link > CFLAGS= -DWIN32 -nologo $(OTHER_FLAGS) > LIBS= user32.lib kernel32.lib wsock32.lib > CPPFLAGS += > DEBUG_FLAG = > LDFLAGS = > > ifeq ($(DEBUG), true) > DEBUG_FLAG= -Zi -Od > LDFLAGS += -debug > endif > > OPTIMIZE_FLAG= -Os -O1 > OUTPUT = -Fo > LINKER_OUTPUT = -out: > endif > > > all: preverify.exe > > preverify.exe: $(OBJS) > @$(LD) $(LDFLAGS) $(OBJS) $(LINKER_OUTPUT)$@ $(LIBS) > > %.obj: $(SRC_DIR)/%.c > @$(CC) $(CFLAGS) $(DEBUG_FLAG) -c $(OUTPUT)$@ $< > > clean: > rm -f core *.obj preverify.exe *.ilk *.pdb > > ================================================================================= > > When I install cygwin (setup.exe). I select all option in the devel and I > select all others by default. Actually I use this soft three days age and I > really don't know how to give a correct description of my question although > I read some documents in the website. > > Thank you for your help, I will read the makefile you mentioned and also > wait for your help further. > > Eric > > > >From: Igor Pechtchanski > >Reply-To: cygwin AT cygwin DOT com > >To: yi ru > >CC: cygwin AT cygwin DOT com > >Subject: Re: Question: make, makefile and KVM in J2ME > >Date: Thu, 27 Mar 2003 16:07:29 -0500 (EST) > > > >On Thu, 27 Mar 2003, yi ru wrote: > > > > > Hi, Igor Pechtchanski > > > > > > The sun's "release notes" recommend me to download setup.exe of cygwin to > > > install in order to use make. That is, the way was tested successfully. I > > > try to use (gnu)make to port kvm. Somebody did it and get the different > > > error (127). I get the error 255 and I don't understand what it means. > > > > > > anyway, many thanks your reply. I also look forward to a solution. > > > > > > thanks > > > Eric > > > >Eric, > > > >FYI, there can be no solution when there isn't a clear description of the > >problem. You haven't posted any information on what Cygwin packages were > >installed on your system by setup.exe, as indicated in > >. You did not outline the exact steps that > >would allow people to reproduce the problem. You didn't even post the > >right makefile (you posted the top-level one, but the one that bombs is in > >tools/preverifier/build/win32). This is especially important since, by > >your own statement, other people cannot exactly reproduce your problem > >(different error code), even if people here could be bothered to download > >kvm and compile it. And to top it off, you've switched the subject of the > >message, so the continuity of the thread is broken (since you "mail > >client" doesn't bother keeping thread information either). > > > >That being said, remember that from the point of view of many build > >environments, Cygwin is more like Linux than like Win32. I don't know > >anything about kvm, but you may need to re-run configure, or something... > >Also, error code 255 usually means that a program couldn't be "exec()"d, > >so check the appropriate make rule in the offending Makefile. > > Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/