#1104 Difficulties with CHECKOUT by SVN

closed-fixed
nobody
3
2006-05-12
2006-04-23
Hubert Sack
No

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...

Discussion

1 2 > >> (Page 1 of 2)
  • Hubert Sack
    Hubert Sack
    2006-04-23

    Cygwin screen snapshot

     
    Attachments
  • Hubert Sack
    Hubert Sack
    2006-04-23

    • priority: 5 --> 3
     
  • Hubert Sack
    Hubert Sack
    2006-04-23

    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 .

     
  • Borut Ražem
    Borut Ražem
    2006-04-24

    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

     
  • Hubert Sack
    Hubert Sack
    2006-04-24

    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...

     
  • Hubert Sack
    Hubert Sack
    2006-04-24

    • assigned_to: nobody --> borutr
     
  • Hubert Sack
    Hubert Sack
    2006-04-24

    The requested files

     
  • Borut Ražem
    Borut Ražem
    2006-04-24

    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

     
  • Hubert Sack
    Hubert Sack
    2006-04-24

    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)

     
  • Hubert Sack
    Hubert Sack
    2006-04-27

    • assigned_to: borutr --> nobody
     
  • Hubert Sack
    Hubert Sack
    2006-04-27

    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)

     
  • Borut Ražem
    Borut Ražem
    2006-05-10

    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

     
  • Borut Ražem
    Borut Ražem
    2006-05-10

    • assigned_to: nobody --> borutr
    • status: open --> pending
     
  • Hubert Sack
    Hubert Sack
    2006-05-10

    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...

     
  • Hubert Sack
    Hubert Sack
    2006-05-10

    • status: pending --> open
     
  • Borut Ražem
    Borut Ražem
    2006-05-11

    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

     
  • Hubert Sack
    Hubert Sack
    2006-05-11

    Contense of directory created by ./config.status --debug

     
  • Hubert Sack
    Hubert Sack
    2006-05-11

    Logged In: YES
    user_id=1160854

    The contense of the directory (result of running
    ./config.status --debug) is in the attachment

     
  • Bernhard Held
    Bernhard Held
    2006-05-11

    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

     
  • Hubert Sack
    Hubert Sack
    2006-05-11

    Logged In: YES
    user_id=1160854

    And here the wanted files

    Gruesse aus Ddorf... ;-)

     
  • Hubert Sack
    Hubert Sack
    2006-05-11

    • assigned_to: borutr --> bernhardheld
     
  • Hubert Sack
    Hubert Sack
    2006-05-11

    The files wanted by Bernhard Held

     
  • Bernhard Held
    Bernhard Held
    2006-05-11

    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.

     
  • Borut Ražem
    Borut Ražem
    2006-05-11

    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

     
  • Jim Paris
    Jim Paris
    2006-05-11

    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.

     
1 2 > >> (Page 1 of 2)