From: "Bob Brusa" <bob.brusa@gmail.com>
To: "Sergei Gavrikov" <sergei.gavrikov@gmail.com>
Cc: ecos-discuss <ecos-discuss@ecos.sourceware.org>
Subject: [ECOS] Fwd: [ECOS] [ecos-discuss] invalid ecos.db following cvs-update
Date: Thu, 02 Dec 2010 09:36:00 -0000 [thread overview]
Message-ID: <op.vm2ybves8qukij@w27> (raw)
In-Reply-To: <op.vm2v8q0u8qukij@w27>
------- Weitergeleitete Nachricht -------
Von: "Bob Brusa" <bob.brusa@gmail.com>
An: "Sergei Gavrikov" <sergei.gavrikov@gmail.com>
Kopie: ecos-discuss <ecos-discuss@ecos.sourceware.org>
Betreff: Re: [ECOS] [ecos-discuss] invalid ecos.db following cvs-update
Datum: Thu, 02 Dec 2010 08:51:53 -0000
Am 01.12.2010, 17:42 Uhr, schrieb Sergei Gavrikov
<sergei.gavrikov@gmail.com>:
> Bob Brusa wrote:
>
>> Gary Thomas wrote:
>>
>> > Bob Brusa wrote:
>> > > Hi
>> > > under windows xp with cygwin, I entered the command
>> > > cvs -z3 update -d -P
>> > > It goes through without error messages, but I end up with an
>> > > ecos.db-file that is refused by configtool.
>> > >
>> > > The file starts with a sequence of >>>>>>> and also includes many cr
>> > > (ASCII '\0x0a'). The usual header (comment-section at the beginning
>> of
>> > > the file) is missing. What went wrong and how can i fix this?
>> >
>> > This indicates you had a conflict in merging the changes to that file,
>> > most likely stemming from local changes to the file.
>> >
>> > The easiest thing would be to do something like this:
>> > % mv ecos.db ecos.db.BAD
>> > % cvs up ecos.db
>> > Then manually compare them and figure out how to merge your changes
>> > into the master.
>> >
>> I did as you said, but got lots of differences and hence did not trust
>> the
>> result. I decided to rename my ecos-folder and download a fresh ecos
>> using the
>> command
>>
>> cvs -z3 -d :pserver:anoncvs@ecos.sourceware.org:/cvs/ecos co -P ecos
>>
>> Then, using the administration tool of configtool, i added my platform
>> and
>> template, selected my template (and hardware) from the build menu,
>> created the
>> tree and started the build. It stopped after some time with the
>> following
>> sequence....
>>
>> <cut>
>> arm-eabi-gcc -c -I/ecos-c/ecos/icb4/icb_app_3_install/include
>> -I/ecoscvs/ecos/packages/language/c/libc/string/current
>> -I/ecoscvs/ecos/packages/language/c/libc/string/current/src
>> -I/ecoscvs/ecos/packages/language/c/libc/string/current/tests -I.
>> -I/ecoscvs/ecos/packages/language/c/libc/string/current/src/
>> -finline-limit=7000 -Wall -Wpointer-arith -Wundef -Woverloaded-virtual
>> -Wno-write-strings -mno-thumb-interwork -mcpu=arm7tdmi -g -O2
>> -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions
>> -Wp,-MD,src/strnlen.tmp -o src/language_c_libc_string_strnlen.o
>> /ecoscvs/ecos/packages/language/c/libc/string/current/src/strnlen.cxx
>> /ecoscvs/ecos/packages/language/c/libc/string/current/src/strnlen.cxx:71:
>> error: 'size_t strnlen(const char*, size_t)' aliased to undefined symbol
>> '__strnlen'
>> make[1]: Leaving directory
>> `/ecos-c/ecos/icb4/icb_app_3_build/language/c/libc/string/current'
>> make[1]: *** [src/strnlen.o.d] Error 1
>> make: *** [build] Error 2
>> make: Leaving directory `/ecos-c/ecos/icb4/icb_app_3_build'
>>
>> When doing a diff, I find that the new ecos.db and the previous
>> repaired one
>> match - except for a) nonrelevant comments, spaces etc. and of coarse
>> b) the
>> package that I had added. So where is the problem? I am still using the
>> tools
>> that came with ecos-3.0. Is this the problem and I must update this as
>> well?
>> Robert
>
> Hi Robert,
>
> It was good to know. If you need exactly ecos-3.0 ecos.db, then you can
> grab the original from Web:
> http://ecos.sourceware.org/cgi-bin/cvsweb.cgi/ecos/?cvsroot=ecos
>
> scroll down and set:
>
> Show only files with tag [ecos-v3_0-release ] [Go]
>
> and download the wanted ecos.db.
>
> NOTE: ecos.db sources itself if you manage eCos packages (add, remove,
> packages), so, backup original ecos.db, "diff" it with new one and
> adjust addons/rejects using your $EDITOR (in 90% you need to append new
> package/target definitions at the end the original ecos.db).
>
> About build error. Perhaps, that's *v3_0* vs *current* mess. Start build
> in new fresh directory then.
>
> Sergei
Hi Sergei
I think there are some misunderstandings in our email exchange and hence I
probably should explain a little bit more what I did:
a) I downloaded (using cvs) ecos into an fresh empty folder. Except for
the build-tools used (which are however not in ecos-3.0 but elsewhere) my
"current" ecos has nothing to do with the previous "ecos-3.0". But never
the less, I get the above errors during the build process.
b) Going back to ecos-3.0 would not solve my problem, because I
understood, version 3.0 remains untouched and does not include the new
feature (of lwip) I need.
c) the ecos-3.0 I have is ok - see a) and b). No need to grab it again
from the net.
d) I conclude from your remark about editing ecos.db, that one can no
longer update ecos using cvs, if one has made any changes - e. g. added a
package. Even if one did this using configtool and feeding in the new
stuff packed in an epk-file. Correct?
Thank you for your help and best regards - Robert
PS: With respect to the above build error: I just realize, that ecos-3.0
does not include a strnlen.cxx file. This probably indicates some kind of
a configuration problem for this file in the newer "current" version. May
be only for some types of systems? I am using an at91sam7x512-based board
(arm). From looking at strnlen.cxx I get no clue what the problem could
be. Please help.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2010-12-02 9:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-01 16:05 Bob Brusa
2010-12-01 16:10 ` Gary Thomas
2010-12-01 17:06 ` Bob Brusa
2010-12-01 17:42 ` Sergei Gavrikov
2010-12-02 8:51 ` Bob Brusa
2010-12-02 9:36 ` Bob Brusa [this message]
2010-12-02 10:42 ` Sergei Gavrikov
2010-12-02 11:27 ` Bob Brusa
2010-12-02 12:36 ` Sergei Gavrikov
2010-12-02 13:28 ` Bob Brusa
2010-12-02 14:28 ` Sergei Gavrikov
2010-12-02 12:39 ` Sergei Gavrikov
2010-12-02 10:40 ` Ross Younger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.vm2ybves8qukij@w27 \
--to=bob.brusa@gmail.com \
--cc=ecos-discuss@ecos.sourceware.org \
--cc=sergei.gavrikov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).