public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: "Ferenc Cserepkei (IJ (ETH))" <ferenc.cserepkei@ericsson.com>
To: <ecos-devel@ecos.sourceware.org>
Subject: building of dynamic object loader fails.
Date: Mon, 19 Mar 2012 09:57:00 -0000	[thread overview]
Message-ID: <4F6702F0.7000005@ericsson.com> (raw)

Weloce,

I have tried to build the dynamic loader for the platform. libdlforce.so
fails with relocation problems
I tried to build on a MPC8572DS target:
make[1]: Entering directory `/home/csfera/dynload/dynload_build/services/loader/current'
powerpc-8548-eabi-gcc -c  -I/home/csfera/dynload/dynload_install/include -I/opt/ecos/openetech/packages/services/loader/current -I/opt/ecos/openetech/packages/services/loader/current/src -I/opt/ecos/openetech/packages/services/loader/current/tests -I. -I/opt/ecos/openetech/packages/services/loader/current/src/ -finline-limit=7000 -msoft-float -mno-hard-dfp -Wa,-me500x2 -Wall -Wpointer-arith  -Winline -Wundef -Woverloaded-virtual -g -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -Wp,-MD,src/loader.tmp -o src/services_loader_loader.o /opt/ecos/openetech/packages/services/loader/current/src/loader.cxx
powerpc-8548-eabi-gcc -c  -I/home/csfera/dynload/dynload_install/include -I/opt/ecos/openetech/packages/services/loader/current -I/opt/ecos/openetech/packages/services/loader/current/src -I/opt/ecos/openetech/packages/services/loader/current/tests -I. -I/opt/ecos/openetech/packages/services/loader/current/src/ -finline-limit=7000 -msoft-float -mno-hard-dfp -Wa,-me500x2 -Wall -Wpointer-arith  -Winline -Wundef -Woverloaded-virtual -g -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -Wp,-MD,src/dload.tmp -o src/services_loader_dload.o /opt/ecos/openetech/packages/services/loader/current/src/dload.cxx
/opt/ecos/openetech/packages/services/loader/current/src/loader.cxx: In member function 'const char* Cyg_Loader::error_string()':
/opt/ecos/openetech/packages/services/loader/current/src/loader.cxx:237:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/opt/ecos/openetech/packages/services/loader/current/src/loader.cxx: In constructor 'Cyg_LoadObject_Base::Cyg_LoadObject_Base(Cyg_LoaderStream&, cyg_uint32, Cyg_LoaderMemAlloc*)':
/opt/ecos/openetech/packages/services/loader/current/src/loader.cxx:298:15: warning: variable 'memaddr' set but not used [-Wunused-but-set-variable]
/opt/ecos/openetech/packages/services/loader/current/src/loader.cxx: In member function 'virtual cyg_code Cyg_LoaderStream_File::seek(CYG_ADDRWORD)':
/opt/ecos/openetech/packages/services/loader/current/src/loader.cxx:1045:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
powerpc-8548-eabi-ar rcs /home/csfera/dynload/dynload_install/lib/libtarget.a src/services_loader_loader.o src/services_loader_dload.o
make[1]: Leaving directory `/home/csfera/dynload/dynload_build/services/loader/current'
make -r -C services/loader/current /home/csfera/dynload/dynload_install/lib/crtbeginS.o
make[1]: Entering directory `/home/csfera/dynload/dynload_build/services/loader/current'
powerpc-8548-eabi-gcc -Wp,-MD,crtbeginS.tmp  -I/home/csfera/dynload/dynload_install/include -I/opt/ecos/openetech/packages/services/loader/current -I/opt/ecos/openetech/packages/services/loader/current/src -I/opt/ecos/openetech/packages/services/loader/current/tests -I. -g0 -Wall -finhibit-size-directive -fno-inline-functions -fno-exceptions -c -o /home/csfera/dynload/dynload_install/lib/crtbeginS.o /opt/ecos/openetech/packages/services/loader/current/src/crtbeginS.c	    
make[1]: Leaving directory `/home/csfera/dynload/dynload_build/services/loader/current'
make -r -C services/loader/current /home/csfera/dynload/dynload_install/lib/crtendS.o
make[1]: Entering directory `/home/csfera/dynload/dynload_build/services/loader/current'
powerpc-8548-eabi-gcc -Wp,-MD,crtendS.tmp  -I/home/csfera/dynload/dynload_install/include -I/opt/ecos/openetech/packages/services/loader/current -I/opt/ecos/openetech/packages/services/loader/current/src -I/opt/ecos/openetech/packages/services/loader/current/tests -I. -g0 -Wall -finhibit-size-directive -fno-inline-functions -fno-exceptions -c -o /home/csfera/dynload/dynload_install/lib/crtendS.o /opt/ecos/openetech/packages/services/loader/current/src/crtendS.c	    
make[1]: Leaving directory `/home/csfera/dynload/dynload_build/services/loader/current'
make -r -C services/loader/current /home/csfera/dynload/dynload_install/lib/libdlforce.so
make[1]: Entering directory `/home/csfera/dynload/dynload_build/services/loader/current'
powerpc-8548-eabi-gcc -finline-limit=7000 -msoft-float -mno-hard-dfp -Wa,-me500x2 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -Wp,-MD,dlforce.tmp  -I/home/csfera/dynload/dynload_install/include -I/opt/ecos/openetech/packages/services/loader/current -I/opt/ecos/openetech/packages/services/loader/current/src -I/opt/ecos/openetech/packages/services/loader/current/tests -I. -shared -c -o src/dlforce.o /opt/ecos/openetech/packages/services/loader/current/src/dlforce.c
cc1: warning: command line option '-Woverloaded-virtual' is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
powerpc-8548-eabi-gcc -g -nostdlib -L/home/csfera/dynload/dynload_install/lib -shared -Tdynamic.ld -o /home/csfera/dynload/dynload_install/lib/libdlforce.so /home/csfera/dynload/dynload_install/lib/crtbeginS.o src/dlforce.o /home/csfera/dynload/dynload_install/lib/crtendS.o
/opt/compilers/8548/lib/gcc/powerpc-8548-eabi/4.6.2/../../../../powerpc-8548-eabi/bin/ld: read-only segment has dynamic relocations.
make[1]: Leaving directory `/home/csfera/dynload/dynload_build/services/loader/current'
collect2: ld returned 1 exit status
make: Leaving directory `/home/csfera/dynload/dynload_build'
make[1]: *** [/home/csfera/dynload/dynload_install/lib/libdlforce.so] Error 1

make: *** [build] Error 2

Any suggestions?

Ferenc

                 reply	other threads:[~2012-03-19  9:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4F6702F0.7000005@ericsson.com \
    --to=ferenc.cserepkei@ericsson.com \
    --cc=ecos-devel@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).