X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org X-Eon-Dm: dm0205 X-Eon-Sig: AQMb1uJNWpsTSv7P7QIAAAAB,8e51bf84f95f83d1fc78b025c42365dc Message-ID: <4D5A9B20.9010703@member.fsf.org> Date: Tue, 15 Feb 2011 07:26:24 -0800 From: L Anderson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.16) Gecko/20101123 SeaMonkey/2.0.11 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Coreutils' Build Fails After Linking rm.exe--Solved References: <4D5A321C DOT 4020608 AT member DOT fsf DOT org> In-Reply-To: <4D5A321C.4020608@member.fsf.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1102150067 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 L Anderson wrote: > I'm trying to build coreutils and I've run into a problem that has me > puzzled. I'd greatly appreciate any ideas or pointers on what might be > causing the problem and steps I could take to figure it out. The > problem is repeatable, stopping at the exact same place. > > I'm running 'XpProSp3', 'cygcheck -c' shows all OK. > > 1st--I used setup to install 'coreutils-8.10-1' source and placed the > files in '/usr/src/coreutils-8.10-1' > > 2nd--From that directory, I did 'cygport coreutils-8.10-1 prep', which > completed successfully. > > 3rd--I ran 'cygport coreutils-8.10-1 compile', which appeared to work > ok until it exited with a "make error" as shown by the following last > few lines of the output: > > ... > CCLD pwd.exe > CCLD readlink.exe > CCLD rm.exe > CCLD rmdir.exe <<<---up to and including rmdir.exe have been linked > ./rm: ./rm: cannot execute binary file > make[3]: *** [runcon.exe] Error 126 <<<--runcon.exe and on, not linked > make[3]: *** Waiting for unfinished jobs.... > ./rm: ./rm: cannot execute binary file > make[3]: *** [seq.exe] Error 126 > make[3]: Leaving directory > `/usr/src/coreutils-8.10-1/coreutils-8.10-1/build/src > ' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/usr/src/coreutils-8.10-1/coreutils-8.10-1/build/src > ' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/usr/src/coreutils-8.10-1/coreutils-8.10-1/build' > make: *** [all] Error 2 > *** ERROR: make failed > > The above is output from 'make', chewing on the following 'makefile' lines: > > ... > pwd$(EXEEXT): $(pwd_OBJECTS) $(pwd_DEPENDENCIES) > @rm -f pwd$(EXEEXT) > $(AM_V_CCLD)$(LINK) $(pwd_OBJECTS) $(pwd_LDADD) $(LIBS) > readlink$(EXEEXT): $(readlink_OBJECTS) $(readlink_DEPENDENCIES) > @rm -f readlink$(EXEEXT) > $(AM_V_CCLD)$(LINK) $(readlink_OBJECTS) $(readlink_LDADD) $(LIBS) > rm$(EXEEXT): $(rm_OBJECTS) $(rm_DEPENDENCIES) > @rm -f rm$(EXEEXT) > $(AM_V_CCLD)$(LINK) $(rm_OBJECTS) $(rm_LDADD) $(LIBS) > rmdir$(EXEEXT): $(rmdir_OBJECTS) $(rmdir_DEPENDENCIES) > @rm -f rmdir$(EXEEXT) > $(AM_V_CCLD)$(LINK) $(rmdir_OBJECTS) $(rmdir_LDADD) $(LIBS) > runcon$(EXEEXT): $(runcon_OBJECTS) $(runcon_DEPENDENCIES) > @rm -f runcon$(EXEEXT) <<<-----error occurs at this point<<-- > $(AM_V_CCLD)$(LINK) $(runcon_OBJECTS) $(runcon_LDADD) $(LIBS) > seq$(EXEEXT): $(seq_OBJECTS) $(seq_DEPENDENCIES) > @rm -f seq$(EXEEXT) > $(AM_V_CCLD)$(LINK) $(seq_OBJECTS) $(seq_LDADD) $(LIBS) > ... > I think I figured it out! I had `.' in my path and it came before `/bin'. Consequently, while 'rm.exe' was being linked in the build directory(`.'), bash, searching it first while trying to execute @rm -f runcon$(EXEEXT), found 'rm.exe' but it was busy being built. Hence, the slight variation in the error messages I got at that point. Removing `.' from the search path, where it shouldn't have been in the first place, solved the problem. I have now successfully build coreutils! Sorry for all the noise. Regards, Lowell Anderson -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple