From: Valentin BOUSSON <ml-ecos@belphegor.eu>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] STM32F4 and Dynamic loading.
Date: Thu, 27 Feb 2014 12:49:00 -0000 [thread overview]
Message-ID: <530F3457.103@belphegor.eu> (raw)
In-Reply-To: <530E0FC5.8040704@siva.com.mk>
Hello again,
Thank you for your help.
I encounter anotger problem that could signify the end between eCos and
I for my project... :(
After having some simple examples working, i tried to make one using
Dynamic ELF loading (dlopen).
So I tried first to compile eCos from the template stm32f4discovery +
posix (that compiles), and then adding the package "Dynamic Loder". A
conflict is resolved, setting the header to <cyg/loader/dlfcn>,
but then with no more conflict the command Build / Library crash and
doesn't want to compile "services/loader/current/src/loader.cxx"
Do you see what does it come from ? I see in the traces some undefined
macros, but It doesn't seems to be the main problem.
By the way, I have seen through experimentations in order to resolve
this issue, a difference between CYGPKG_HAL_CORTEXM and CYGPKG_HAL_ARM.
So I would know : doesn't a cortexm platform be considered as an ARM one
? Why not ? Is it a cause of my problem ?
Cheers, and thank you again.
Valentin BOUSSON
end of traces :
==========
In file included from
~/ecos/packages/services/loader/current/src/loader.cxx:65:
~/ecos_tests/ecos_install/include/cyg/loader/loader.hxx:351: error:
invalid use of incomplete type âstruct Cyg_LoadObject_Procâ
~/ecos_tests/ecos_install/include/cyg/loader/loader.hxx:77: error:
forward declaration of âstruct Cyg_LoadObject_Procâ
make[1]: Leaving directory `~/ecos_tests/ecos_build/services/loader/current'
~/ecos_tests/ecos_install/include/cyg/loader/loader.hxx: In constructor
âCyg_LoadObject::Cyg_LoadObject()â:
make: Leaving directory `~/ecos_tests/ecos_build'
~/ecos_tests/ecos_install/include/cyg/loader/loader.hxx:357: error: type
âCyg_LoadObject_Procâ is not a direct base of âCyg_LoadObjectâ
~/ecos_tests/ecos_install/include/cyg/loader/loader.hxx: In constructor
âCyg_LoadObject::Cyg_LoadObject(Cyg_LoaderStream&, cyg_uint32,
Cyg_LoaderMemAlloc*, Cyg_LoaderMemBlock*)â:
~/ecos_tests/ecos_install/include/cyg/loader/loader.hxx:365: error: type
âCyg_LoadObject_Procâ is not a direct base of âCyg_LoadObjectâ
In file included from
~/ecos/packages/services/loader/current/src/dload.cxx:66:
~/ecos_tests/ecos_install/include/cyg/loader/loader.hxx:351: error:
invalid use of incomplete type âstruct Cyg_LoadObject_Procâ
~/ecos_tests/ecos_install/include/cyg/loader/loader.hxx:77: error:
forward declaration of âstruct Cyg_LoadObject_Procâ
~/ecos_tests/ecos_install/include/cyg/loader/loader.hxx: In constructor
âCyg_LoadObject::Cyg_LoadObject()â:
~/ecos_tests/ecos_install/include/cyg/loader/loader.hxx:357: error: type
âCyg_LoadObject_Procâ is not a direct base of âCyg_LoadObjectâ
~/ecos_tests/ecos_install/include/cyg/loader/loader.hxx: In constructor
âCyg_LoadObject::Cyg_LoadObject(Cyg_LoaderStream&, cyg_uint32,
Cyg_LoaderMemAlloc*, Cyg_LoaderMemBlock*)â:
~/ecos_tests/ecos_install/include/cyg/loader/loader.hxx:365: error: type
âCyg_LoadObject_Procâ is not a direct base of âCyg_LoadObjectâ
~/ecos/packages/services/loader/current/src/loader.cxx: In constructor
âCyg_Loader::Cyg_Loader(Cyg_LoaderMemAlloc*)â:
~/ecos/packages/services/loader/current/src/loader.cxx:126: error: no
matching function for call to
âCyg_CList_T<Cyg_LoadObject>::add_head(Cyg_LoadObject*&)â
~/ecos_tests/ecos_install/include/cyg/infra/clist.hxx:173: note:
candidates are: void Cyg_CList::add_head(Cyg_DNode*)
~/ecos/packages/services/loader/current/src/loader.cxx:128: error:
âclass Cyg_LoadObjectâ has no member named âget_errorâ
~/ecos/packages/services/loader/current/src/loader.cxx: In member
function âcyg_code Cyg_Loader::load(Cyg_LoaderStream&, cyg_uint32,
Cyg_LoadObject**)â:
~/ecos/packages/services/loader/current/src/loader.cxx:160: error:
âclass Cyg_LoadObjectâ has no member named âget_errorâ
~/ecos/packages/services/loader/current/src/loader.cxx:168: error: no
matching function for call to
âCyg_CList_T<Cyg_LoadObject>::add_tail(Cyg_LoadObject*&)â
~/ecos_tests/ecos_install/include/cyg/infra/clist.hxx:209: note:
candidates are: void Cyg_CList::add_tail(Cyg_DNode*)
~/ecos/packages/services/loader/current/src/loader.cxx:175: error:
âclass Cyg_LoadObjectâ has no member named âget_errorâ
~/ecos/packages/services/loader/current/src/loader.cxx:186: error:
âclass Cyg_LoadObjectâ has no member named âget_errorâ
~/ecos/packages/services/loader/current/src/loader.cxx:193: error: no
matching function for call to
âCyg_CList_T<Cyg_LoadObject>::remove(Cyg_LoadObject*&)â
~/ecos_tests/ecos_install/include/cyg/infra/clist.hxx:258: note:
candidates are: void Cyg_CList::remove(Cyg_DNode*)
~/ecos/packages/services/loader/current/src/loader.cxx: In member
function âCYG_ADDRESS Cyg_Loader::hash_lookup_addr(const char*)â:
~/ecos/packages/services/loader/current/src/loader.cxx:253: error:
âclass Cyg_LoadObjectâ has no member named âhash_lookup_addrâ
~/ecos/packages/services/loader/current/src/loader.cxx:258: error:
âclass Cyg_LoadObjectâ has no member named âget_nextâ
~/ecos/packages/services/loader/current/src/loader.cxx: In constructor
âCyg_LoadObject_Base::Cyg_LoadObject_Base(Cyg_LoaderStream&, cyg_uint32,
Cyg_LoaderMemAlloc*)â:
~/ecos/packages/services/loader/current/src/loader.cxx:331: error:
âCYG_ELF_MACHINEâ was not declared in this scope
~/ecos/packages/services/loader/current/src/dload.cxx: In function
âvoid* dlsym(void*, const char*)â:
~/ecos/packages/services/loader/current/src/dload.cxx:178: error: âclass
Cyg_LoadObjectâ has no member named âsymbolâ
make[1]: *** [src/dload.o.d] Error 1
make[1]: *** Waiting for unfinished jobs....
~/ecos/packages/services/loader/current/src/loader.cxx: In member
function âvoid Cyg_LoadObject::relocate()â:
~/ecos/packages/services/loader/current/src/loader.cxx:767: error: ârelâ
was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:770: error:
ârelsizeâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:770: error:
âerrorâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:770: error:
ârelentâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:773: error:
âapply_relâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:777: error:
âerrorâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:777: error:
ârelaâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:780: error:
ârelasizeâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:780: error:
ârelaentâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:784: error:
âapply_relaâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx: In member
function âvoid Cyg_LoadObject::relocate_plt()â:
~/ecos/packages/services/loader/current/src/loader.cxx:797: error:
âpltrelâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:799: error:
âjmprelâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:800: error:
âpltrelszâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:800: error:
âerrorâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:803: error:
âapply_relâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:807: error:
âerrorâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:807: error:
âpltrelâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:809: error:
âjmprelâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:810: error:
âpltrelszâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx:814: error:
âapply_relaâ was not declared in this scope
~/ecos/packages/services/loader/current/src/loader.cxx: In member
function âvirtual cyg_code Cyg_LoaderStream_File::seek(CYG_ADDRWORD)â:
~/ecos/packages/services/loader/current/src/loader.cxx:1045: warning:
comparison between signed and unsigned integer expressions
make[1]: *** [src/loader.o.d] Error 1
make: *** [build] Error 2
--
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:[~2014-02-27 12:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-20 16:13 [ECOS] Specific needs on stm32 Valentin BOUSSON
2014-01-20 20:04 ` "Ilija Kocho [Илија Кочо]"
[not found] ` <52E24132.2020505@belphegor.eu>
2014-01-26 2:51 ` "Ilija Kocho [Илија Кочо]"
[not found] ` <530C6522.7020704@belphegor.eu>
[not found] ` <530C9551.1060603@belphegor.eu>
[not found] ` <530DF5CB.9060909@belphegor.eu>
2014-02-26 16:01 ` "Ilija Kocho [Илија Кочо]"
2014-02-27 12:49 ` Valentin BOUSSON [this message]
2014-02-27 17:12 ` [ECOS] Re: STM32F4 and Dynamic loading John Dallaway
2014-02-28 10:15 ` Valentin BOUSSON
2014-02-28 17:47 ` John Dallaway
2014-01-21 0:05 ` [ECOS] Specific needs on stm32 "Ilija Kocho [Илија Кочо]"
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=530F3457.103@belphegor.eu \
--to=ml-ecos@belphegor.eu \
--cc=ecos-discuss@ecos.sourceware.org \
/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).