From: SourceForge.net <no...@so...> - 2006-05-11 17:33:33
|
Bugs item #1474987, was opened at 2006-04-23 08:21 Message generated for change (Comment added) made by jimatjtan You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1474987&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build system Group: None Status: Open Resolution: None Priority: 3 Submitted By: Hubert Sack (hsack) Assigned to: Bernhard Held (bernhardheld) Summary: Difficulties with CHECKOUT by SVN Initial Comment: I downloaded and installed successfully TortoiseSVN for Windows XP. Then I did an "check out" of the full sdcc "trunk" to "d:\sf.net". Within a cygwin window I run "configure" as needed and I ever did with the snapshot downloads by CVS. Everything seems do be o.k. But running "make" produces the error messages shown in the attached screenshot. I searched for the reason but didn't find anything yet. Running "make" in the directory containing the last snapshot done by CVS (2.5.5 #1233 of 04/08/2006) completes without errors. The errors must be belong anyway to the "configure" script, but that script doesn't change compared to the CVS snapshot of the version listet above. Where should I take a detailed look to? I am not a developer of sdcc but I did already some support to the compiler and there are some open RFE's and Patches (SDCCopt.c; mcs51/gen.c; mcs51/peeph.def), which are not implemented yet... ---------------------------------------------------------------------- Comment By: Jim Paris (jimatjtan) Date: 2006-05-11 13:33 Message: Logged In: YES user_id=175928 If you use the command-line SVN client, you can force a particular line ending by using "svn export --native-eol=<type>" where <type> is LF, CR, CRLF. For example: svn export --native-eol CRLF https://svn.sourceforge.net/svnroot/sdcc/trunk/sdcc/ sdcc-crlf svn export --native-eol LF https://svn.sourceforge.net/svnroot/sdcc/trunk/sdcc/ sdcc-lf will make two copies of sdcc, each with different line endings. ---------------------------------------------------------------------- Comment By: Borut Razem (borutr) Date: 2006-05-11 13:17 Message: Logged In: YES user_id=568035 Files from svn and files generated by configure have to have the same line endings. Since the files checked out from svn have the CR/LF line endings (at least if TortoiseSVN is used), then generated files must have the CR/LF line endings too. That's why I recommend to use textmode for cygwin. As I already wrote, I used binmode on one machine and I had problems. Switching to tetxtmode helped. I'm using the textmode on my machine all the time (also with cvs using WinCVS) and I never had problems. Borut ---------------------------------------------------------------------- Comment By: Bernhard Held (bernhardheld) Date: 2006-05-11 11:45 Message: Logged In: YES user_id=203539 Please remove -C (cache results) from your script. If configure fails, it will cache the bad result - this is certainly not what you want. Disable caching until you've got a stable build. Remove all config.cache files: find ~/sdcc -name config.cache | xargs rm The file support/cpp2/auto-host.h from your cvs is LF only, while the same file from your svn is CR/LF. The latest (SVN) support/cpp2/Makefile is CR/LF too. Even if Borut recommends a different setting: I recommend binmode. Make sure all files have LF-endings, and then re-configure in (at least) support/cpp2. IIRC sed has problems with CR/LF. ---------------------------------------------------------------------- Comment By: Hubert Sack (hsack) Date: 2006-05-11 10:39 Message: Logged In: YES user_id=1160854 And here the wanted files Gruesse aus Ddorf... ;-) ---------------------------------------------------------------------- Comment By: Bernhard Held (bernhardheld) Date: 2006-05-11 10:23 Message: Logged In: YES user_id=203539 I'd like to participate in this riddle ;-) Please attach from the failling, configured svn checkout: /etc/setup/installed.db ~/sdcc/support/cpp2/Makefile ---------------------------------------------------------------------- Comment By: Hubert Sack (hsack) Date: 2006-05-11 02:56 Message: Logged In: YES user_id=1160854 The contense of the directory (result of running ./config.status --debug) is in the attachment ---------------------------------------------------------------------- Comment By: Borut Razem (borutr) Date: 2006-05-11 02:25 Message: Logged In: YES user_id=568035 Try his: from the bash shell execute: ./config.status --debug A directory confstatXXXXXX (XXXXXX are some random letters and numbers) will be genarated. Zip the content of the directory and the config.status file and attach it ti this bug report. Borut ---------------------------------------------------------------------- Comment By: Hubert Sack (hsack) Date: 2006-05-10 15:47 Message: Logged In: YES user_id=1160854 I'm so sorry, but it doesn't solve my problem. I changed the mount type and did a complete new checkout to a blank directory. Running ./configure does *not* create any other file contense. If I do the neccessary changes to the 4 affected files (by copying from saved ones) everything works fine There is no problem with build... ---------------------------------------------------------------------- Comment By: Borut Razem (borutr) Date: 2006-05-10 10:43 Message: Logged In: YES user_id=568035 I encounted the same problem on one machine and I found out that the drive on which the sdcc is checked out is not mounted in textmode by cygwin. Execute: mount and verify that the DOS drive is mounted in textmode. For example for C: drive: ... c: on /cygdrive/c type system (textmode,noumount) ... I'm sending this report to the pending state because I belive that with this explanation the problem is solved. Please put it back to open state if it doesn't help. Borut ---------------------------------------------------------------------- Comment By: Hubert Sack (hsack) Date: 2006-04-27 16:15 Message: Logged In: YES user_id=1160854 I did some more checks - but without any success So I reinstalled the whole cygwin installation and do a new checkout to a clean directory. But: Nothing changed! The last snapshot (2.5.5#1233) of CVS does everything perfect while the lastest of SVN (2.5.6#4130) does not (using the SAME cygwin installation) ---------------------------------------------------------------------- Comment By: Hubert Sack (hsack) Date: 2006-04-24 14:17 Message: Logged In: YES user_id=1160854 I did the checkout into a new (and therefore clean) directory I have the snapshot of the CVS still in an other (fully independed) directory. Running ./configure there works completely correctly I'll take a deeper look ino the configure script and will add "set -v" at the top and log the output. I think the reason why the patching is unsuccessful must to be seen then. I'll report after doing so - but it my take some days (I must have the time for doing so) ---------------------------------------------------------------------- Comment By: Borut Razem (borutr) Date: 2006-04-24 13:20 Message: Logged In: YES user_id=568035 I ran the configure on my machine and the config.log file is equal to the one in svn(2.5.6#4112) directory, but the sdccconf.h is equal to the one in cvs(2.5.5#1233). The file sdccconf.h in svn(2.5.6#4112) seems not to be patched correctyl. Did you try to execute 'make distclean' before the ./configure? Did you checkout sdcc in the clean directory? If nothing mentioned abowe doesn't help, then something is probably wrog with your cygwin installation. Try to install it again. Borut ---------------------------------------------------------------------- Comment By: Hubert Sack (hsack) Date: 2006-04-24 08:35 Message: Logged In: YES user_id=1160854 I added a ZIP archiv where - my cygwin settings - the output of running ./configure - the warnings of running ./configure as screenshot - the files generated by the last snapshot (2.5.5#1233) using CVS - the files generated by the last snapshot (2.5.6#4112) using SVN As first aid I copied the neccessary files from the CVS snapshot - it works. I know: It's not a solution, only a work around... ---------------------------------------------------------------------- Comment By: Borut Razem (borutr) Date: 2006-04-24 05:51 Message: Logged In: YES user_id=568035 Both "sdccconf.h" and "support/cpp2/auto-host.h" are generated files. Please attach both files to the bug report. Borut ---------------------------------------------------------------------- Comment By: Hubert Sack (hsack) Date: 2006-04-23 08:59 Message: Logged In: YES user_id=1160854 I found the reason for the errors running make. "sdccconf.h" and "support/cpp2/auto-host.h" have very different contense. Why that happens, I still don't know . ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1474987&group_id=599 |