public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Alexander Popov <s_popov@prosyst.bg>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Newbie Q: building ecos 2.0
Date: Tue, 14 Oct 2003 11:02:00 -0000	[thread overview]
Message-ID: <3F8BD7A8.9030801@prosyst.bg> (raw)

Hi all,

I just got ecos and I'm (a complete and helpless newbie :) ) trying to 
build an image for i386 (PC).
I used the configtool to setup the platform but when I tried to build it 
it crushed on a few places. I fixed most of them one way or another but 
I'm stuck here:

<cut>

make[1]: `/opt/ecos/ecos-2.0/tools/bin/pentium3_install/lib/target.ld' 
is up to date.
make[1]: Leaving directory 
`/opt/ecos/ecos-2.0/tools/bin/pentium3_build/hal/i386/arch/v2_0'
make -r -C services/loader/v2_0 tests/libfoo.so
make[1]: Entering directory 
`/opt/ecos/ecos-2.0/tools/bin/pentium3_build/services/loader/v2_0'
mkdir -p tests
i386-elf-gcc -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef 
-Woverloaded-virtual -g -ffunction-sections -fdata-sections -fno-rtti 
-fno-exceptions -finit-priority -Wp,-MD,foo.tmp  
-I/opt/ecos/ecos-2.0/tools/bin/pentium3_install/include 
-I/opt/ecos/ecos-2.0/packages/services/loader/v2_0 
-I/opt/ecos/ecos-2.0/packages/services/loader/v2_0/src 
-I/opt/ecos/ecos-2.0/packages/services/loader/v2_0/tests -I. -shared -c 
-o tests/foo.o /opt/ecos/ecos-2.0/packages/services/loader/v2_0/tests/foo.c
i386-elf-gcc -g -nostdlib 
-L/opt/ecos/ecos-2.0/tools/bin/pentium3_install/lib -shared -Tdynamic.ld 
-o tests/libfoo.so 
/opt/ecos/ecos-2.0/tools/bin/pentium3_install/lib/crtbeginS.o 
tests/foo.o /opt/ecos/ecos-2.0/tools/bin/pentium3_install/lib/crtendS.o
tests/foo.o: In function `foo':
/opt/ecos/ecos-2.0/packages/services/loader/v2_0/tests/foo.c:68: 
undefined reference to `fee'
collect2: ld returned 1 exit status
make[1]: *** [tests/libfoo.so] Error 1
make[1]: Leaving directory 
`/opt/ecos/ecos-2.0/tools/bin/pentium3_build/services/loader/v2_0'
make: *** [build] Error 2
make: Leaving directory `/opt/ecos/ecos-2.0/tools/bin/pentium3_build'

obviously the linker can't find fee (which is defined extern).
I found the implementation in services/loader/v2_0/tests/loadfoo.cxx
To skip the error and continue the building I defined fee inside 
tests/foo.c but that didn't help much since I got this:

i386-elf-gcc -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef 
-Woverloaded-virtual -g -ffunction-sections -fdata-sections -fno-rtti 
-fno-exceptions -finit-priority -Wp,-MD,loadfoo.tmp  
-I/opt/ecos/ecos-2.0/tools/bin/pentium3_install/include 
-I/opt/ecos/ecos-2.0/packages/services/loader/v2_0 
-I/opt/ecos/ecos-2.0/packages/services/loader/v2_0/src 
-I/opt/ecos/ecos-2.0/packages/services/loader/v2_0/tests -I. -c -o 
tests/loadfoo.o 
/opt/ecos/ecos-2.0/packages/services/loader/v2_0/tests/loadfoo.cxx
#                   i386-elf-gcc -g -nostdlib 
-L/opt/ecos/ecos-2.0/tools/bin/pentium3_install/lib -Ttarget.ld 
-ldlforce -o 
/opt/ecos/ecos-2.0/tools/bin/pentium3_install/tests/services/loader/current/tests/loadfoo 
/opt/ecos/ecos-2.0/tools/bin/pentium3_install/lib/crtbeginS.o 
tests/loadfoo.o /opt/ecos/ecos-2.0/tools/bin/pentium3_install/lib/crtendS.o
i386-elf-gcc -g -nostdlib -Wl,-E 
-L/opt/ecos/ecos-2.0/tools/bin/pentium3_install/lib -Ttarget.ld 
-ldlforce -o 
/opt/ecos/ecos-2.0/tools/bin/pentium3_install/tests/services/loader/current/tests/loadfoo 
tests/loadfoo.o
/opt/ecos/ecos-2.0/tools/bin/pentium3_install/lib/libtarget.a(io_fileio_select.o): 
In function `_GLOBAL__D.50000_cyg_timeval_to_ticks':
/opt/ecos/ecos-2.0/packages/io/fileio/v2_0/src/select.cxx:93: undefined 
reference to `cyg_pthread_sigmask_set'
/opt/ecos/ecos-2.0/packages/io/fileio/v2_0/src/select.cxx:93: undefined 
reference to `cyg_posix_sigpending'
/opt/ecos/ecos-2.0/packages/io/fileio/v2_0/src/select.cxx:93: undefined 
reference to `cyg_pthread_sigmask_set'
/opt/ecos/ecos-2.0/packages/io/fileio/v2_0/src/select.cxx:93: undefined 
reference to `cyg_posix_deliver_signals'
/opt/ecos/ecos-2.0/packages/io/fileio/v2_0/src/select.cxx:93: undefined 
reference to `cyg_posix_deliver_signals'
/opt/ecos/ecos-2.0/tools/bin/pentium3_install/lib/libtarget.a(services_loader_loader.o): 
In function `_GLOBAL__D__ZN10Cyg_Loader6loaderE':
/opt/ecos/ecos-2.0/packages/services/loader/v2_0/src/loader.cxx:124: 
undefined reference to `_DYNAMIC'
/opt/ecos/ecos-2.0/packages/services/loader/v2_0/src/loader.cxx:124: 
undefined reference to `_DYNAMIC'
collect2: ld returned 1 exit status
make[1]: *** 
[/opt/ecos/ecos-2.0/tools/bin/pentium3_install/tests/services/loader/current/tests/loadfoo] 
Error 1
make[1]: Leaving directory 
`/opt/ecos/ecos-2.0/tools/bin/pentium3_build/services/loader/v2_0'
make: *** [build] Error 2
make: Leaving directory `/opt/ecos/ecos-2.0/tools/bin/pentium3_build'

Should there be any -l<lib> options in LDFLAGS that is missing, or maybe 
more stuff in the config (everithink was resolved when I started 
compiling it)?

Thanks in advance.

Best Regards,
Sasho


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

             reply	other threads:[~2003-10-14 11:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-14 11:02 Alexander Popov [this message]
2003-10-14 11:21 ` Andrew Lunn

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=3F8BD7A8.9030801@prosyst.bg \
    --to=s_popov@prosyst.bg \
    --cc=ecos-discuss@sources.redhat.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).