Error Building SID..

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Error Building SID..

Shamik Datta
Hi,

I am new to SID and I am having problems setting it up. I am trying to
build it on an X86 machine, running Win XP with cygwin.

I could fix a few minor errors, but got stuck in the end. The
compilation all goes through well. but the build finally breaks in the
linking stage, looking for some unresolved X APIs. Attaching the log.
You could search for 'XPending'.

Though there are stubs present for these APIs, I am not sure if I
require some special cygwin pkgs to  be installed to resolve these
dependencies. Please suggest.

regards,
Shamik

=======================================

/bin/sh ./libtool --tag=CXX --mode=link g++ -DSID_STATIC
-DSIDTARGET_MEP -DSIDTARGET_SH -DSIDTARGET_SH64 -g -O2   -o sid.exe
-export-dynamic -static -export-symbols-regex '[a-zA-Z0-9]*_library$'
-dlpreopen ../../component/audio/libaudio.la -dlpreopen
../../component/cache/libcache.la -dlpreopen
../../component/cfgroot/libconfig.la -dlpreopen
../../component/cgen-cpu/libcgencpu.la -dlpreopen
../../component/bochs/libx86.la -dlpreopen
../../component/consoles/libconsoles.la -dlpreopen
../../component/families/mep/libmepfamily.la -dlpreopen
../../component/gdb/libgdb.la -dlpreopen
../../component/gloss/libgloss.la -dlpreopen
../../component/glue/libglue.la -dlpreopen
../../component/ide/libide.la -dlpreopen
../../component/interrupt/libinterrupt.la -dlpreopen
../../component/lcd/libhd44780u.la -dlpreopen
../../component/lcd/liblcd-char-display.la -dlpreopen
../../component/lcd/libt6963c.la -dlpreopen
../../component/loader/libloader.la -dlpreopen
../../component/mapper/libmapper.la -dlpreopen
../../component/memory/libmemory.la -dlpreopen
../../component/mmu/libmmu.la -dlpreopen
../../component/parport/libparport.la -dlpreopen
../../component/profiling/libprof.la -dlpreopen
../../component/rtc/librtc.la -dlpreopen
../../component/sched/libsched.la -dlpreopen
../../component/tcl/libtclapi.la -dlpreopen
../../component/timers/libtimers.la -dlpreopen
../../component/uart/libuart.la mainDynamic.o baseCfg.o commonCfg.o
shCfg.o mepCfg.o -L../../../libiberty/pic -L../../../libiberty
-liberty
mkdir .libs
rm -f .libs/sid.exe.nm .libs/sid.exe.nmS .libs/sid.exe.nmT
creating .libs/sid.exeS.c
extracting global C symbols from `../../component/audio/.libs/libaudio.a'
extracting global C symbols from `../../component/cache/.libs/libcache.a'
extracting global C symbols from `../../component/cfgroot/.libs/libconfig.a'
extracting global C symbols from `../../component/cgen-cpu/.libs/libcgencpu.a'
extracting global C symbols from `../../component/bochs/.libs/libx86.a'
extracting global C symbols from `../../component/consoles/.libs/libconsoles.a'
extracting global C symbols from
`../../component/families/mep/.libs/libmepfamily.a'
extracting global C symbols from `../../component/gdb/.libs/libgdb.a'
extracting global C symbols from `../../component/gloss/.libs/libgloss.a'
extracting global C symbols from `../../component/glue/.libs/libglue.a'
extracting global C symbols from `../../component/ide/.libs/libide.a'
extracting global C symbols from
`../../component/interrupt/.libs/libinterrupt.a'
extracting global C symbols from `../../component/lcd/.libs/libhd44780u.a'
extracting global C symbols from
`../../component/lcd/.libs/liblcd-char-display.a'
extracting global C symbols from `../../component/lcd/.libs/libt6963c.a'
extracting global C symbols from `../../component/loader/.libs/libloader.a'
extracting global C symbols from `../../component/mapper/.libs/libmapper.a'
extracting global C symbols from `../../component/memory/.libs/libmemory.a'
extracting global C symbols from `../../component/mmu/.libs/libmmu.a'
extracting global C symbols from `../../component/parport/.libs/libparport.a'
extracting global C symbols from `../../component/profiling/.libs/libprof.a'
extracting global C symbols from `../../component/rtc/.libs/librtc.a'
extracting global C symbols from `../../component/sched/.libs/libsched.a'
extracting global C symbols from `../../component/tcl/.libs/libtclapi.a'
extracting global C symbols from `../../component/timers/.libs/libtimers.a'
extracting global C symbols from `../../component/uart/.libs/libuart.a'
(cd .libs && gcc -c -fno-builtin "sid.exeS.c")
rm -f .libs/sid.exeS.c .libs/sid.exe.nm .libs/sid.exe.nmS .libs/sid.exe.nmT
g++ -DSID_STATIC -DSIDTARGET_MEP -DSIDTARGET_SH -DSIDTARGET_SH64 -g
-O2 -o sid.exe .libs/sid.exeS.o mainDynamic.o baseCfg.o commonCfg.o
shCfg.o mepCfg.o -Wl,--export-dynamic
../../component/audio/.libs/libaudio.a
../../component/cache/.libs/libcache.a
../../component/cfgroot/.libs/libconfig.a -ldl
../../component/cgen-cpu/.libs/libcgencpu.a
-L/home/Work/Emulation/SID/build/intl /usr/lib/libintl.a -L/usr/lib
/usr/lib/libiconv.a -L/home/Work/Emulation/SID/build/libiberty/pic
-L/home/Work/Emulation/SID/build/libiberty -lpthread
../../component/bochs/.libs/libx86.a
../../component/consoles/.libs/libconsoles.a -lresolv
../../component/families/mep/.libs/libmepfamily.a
../../component/gdb/.libs/libgdb.a
../../component/gloss/.libs/libgloss.a
../../component/glue/.libs/libglue.a
../../component/ide/.libs/libide.a
../../component/interrupt/.libs/libinterrupt.a
../../component/lcd/.libs/libhd44780u.a
../../component/lcd/.libs/liblcd-char-display.a -lcurses
../../component/lcd/.libs/libt6963c.a
../../component/loader/.libs/libloader.a
../../component/mapper/.libs/libmapper.a
../../component/memory/.libs/libmemory.a
../../component/mmu/.libs/libmmu.a
../../component/parport/.libs/libparport.a
../../component/profiling/.libs/libprof.a
../../component/rtc/.libs/librtc.a
../../component/sched/.libs/libsched.a
../../component/tcl/.libs/libtclapi.a -ltk84
-L/home/Work/Emulation/SID/build/tcl/win -ltcl84 -lgdi32 -lcomdlg32
-lwinspool ../../component/timers/.libs/libtimers.a
../../component/uart/.libs/libuart.a -lwinmm -liberty
../../component/bochs/.libs/libx86.a(x-gui.o): In function
`_ZN5x_gui13handle_eventsEj':
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:542:
undefined reference to `_XPending'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:534:
undefined reference to `_XLookupString'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:542:
undefined reference to `_XPending'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:540:
undefined reference to `_XLookupString'
../../component/bochs/.libs/libx86.a(x-gui.o): In function
`_ZN5x_gui14update_displayEj':
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:566:
undefined reference to `_XGetWMNormalHints'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:634:
undefined reference to `_XDrawImageString'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:608:
undefined reference to `_XDrawImageString'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:570:
undefined reference to `_XSetWMNormalHints'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:656:
undefined reference to `_XDrawImageString'
../../component/bochs/.libs/libx86.a(x-gui.o): In function
`_ZN5x_gui20palette_change_indexEj':
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:684:
undefined reference to `_XStoreColor'
../../component/bochs/.libs/libx86.a(x-gui.o): In function
`_ZN5x_gui9load_fontEv':
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:1450:
undefined reference to `_XLoadQueryFont'
../../component/bochs/.libs/libx86.a(x-gui.o): In function `_ZN5x_gui4initEj':
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:265:
undefined reference to `_XOpenDisplay'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:293:
undefined reference to `_XCreateSimpleWindow'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:404:
undefined reference to `_XSetWMProperties'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:431:
undefined reference to `_XSetState'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:433:
undefined reference to `_XSetState'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:442:
undefined reference to `_XSync'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:488:
undefined reference to `_XFlush'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:312:
undefined reference to `_XAllocColorCells'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:334:
undefined reference to `_XStoreColor'
/home/Work/Emulation/SID/src/sid/component/bochs/gui/x-gui.cc:267:
undefined reference to `_XDisplayName'
collect2: ld returned 1 exit status
rm -f .libs/sid.exeS.o
make[5]: *** [sid.exe] Error 1
make[5]: Leaving directory `/home/Work/Emulation/SID/build/sid/main/dynamic'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/Work/Emulation/SID/build/sid/main/dynamic'
make[4]: Entering directory `/home/Work/Emulation/SID/build/sid/main'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/Work/Emulation/SID/build/sid/main'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/Work/Emulation/SID/build/sid/main'
Making all in bsp
make[3]: Entering directory `/home/Work/Emulation/SID/build/sid/bsp'
Making all in .
make[4]: Entering directory `/home/Work/Emulation/SID/build/sid/bsp'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/Work/Emulation/SID/build/sid/bsp'
Making all in pregen
make[4]: Entering directory `/home/Work/Emulation/SID/build/sid/bsp/pregen'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/Work/Emulation/SID/build/sid/bsp/pregen'
make[3]: Leaving directory `/home/Work/Emulation/SID/build/sid/bsp'
Making all in samples
make[3]: Entering directory `/home/Work/Emulation/SID/build/sid/samples'
make  all-am
make[4]: Entering directory `/home/Work/Emulation/SID/build/sid/samples'
if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I/home/Work/Emulation/SID/src/sid/samples -I. -I. -I../include
-I/home/Work/Emulation/SID/src/sid/samples/../include    -g -O2 -MT
timer.lo -MD -MP -MF ".deps/timer.Tpo" -c -o timer.lo
/home/Work/Emulation/SID/src/sid/samples/timer.cxx; \
    then mv -f ".deps/timer.Tpo" ".deps/timer.Plo"; else rm -f
".deps/timer.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I/home/Work/Emulation/SID/src/sid/samples
-I. -I. -I../include
-I/home/Work/Emulation/SID/src/sid/samples/../include -g -O2 -MT
timer.lo -MD -MP -MF .deps/timer.Tpo -c
/home/Work/Emulation/SID/src/sid/samples/timer.cxx -o timer.o
/bin/sh ./libtool --tag=CXX --mode=link g++  -g -O2   -o libexample.la
-rpath /home/Work/Emulation/SID/install//lib/sidsamples -module
-no-undefined timer.lo
mkdir .libs
ar rc .libs/libexample.a  timer.o
ranlib .libs/libexample.a
creating libexample.la
(cd .libs && rm -f libexample.la && ln -s ../libexample.la libexample.la)
make[4]: Leaving directory `/home/Work/Emulation/SID/build/sid/samples'
make[3]: Leaving directory `/home/Work/Emulation/SID/build/sid/samples'
Making all in demos
make[3]: Entering directory `/home/Work/Emulation/SID/build/sid/demos'
make  all-recursive
make[4]: Entering directory `/home/Work/Emulation/SID/build/sid/demos'
make[5]: Entering directory `/home/Work/Emulation/SID/build/sid/demos'
Type 'make all-demos' to build the demos.
make[5]: Leaving directory `/home/Work/Emulation/SID/build/sid/demos'
make[4]: Leaving directory `/home/Work/Emulation/SID/build/sid/demos'
make[3]: Leaving directory `/home/Work/Emulation/SID/build/sid/demos'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Work/Emulation/SID/build/sid'
make[1]: *** [all-sid] Error 2
make[1]: Leaving directory `/home/Work/Emulation/SID/build'
make: *** [all] Error 2
Reply | Threaded
Open this post in threaded view
|

Re: Error Building SID..

Frank Ch. Eigler
Hi -

On Fri, Dec 12, 2008 at 02:58:00AM +0530, Shamik Datta wrote:
> [...]
> I am new to SID and I am having problems setting it up. I am trying to
> build it on an X86 machine, running Win XP with cygwin.
> [...]
> You could search for 'XPending'.

I believe these are standard libX11 library calls.  Perhaps you
just need to install the X development libraries / headers.

- FChE
Reply | Threaded
Open this post in threaded view
|

Re: Error Building SID..

Frank Ch. Eigler
Hi -

On Tue, Dec 16, 2008 at 01:32:40AM +0530, Shamik Datta wrote:
> [...]
> another info. Would you know of any out of box simulations for SID
> that I might be able to run directly. Basically, something for me to
> play with. The demos used during symposiums etc, are they available
> somewhere in public domain?

I believe that back in the day we demonstrated linux running on the
bochs x86 models, and eCos on arm and maybe another configuration.
I'd start with the latter.  google "ecos sid" and you'll see some good
stuff.

- FChE
Reply | Threaded
Open this post in threaded view
|

Re: Error Building SID..

Frank Ch. Eigler
Hi -

On Mon, Dec 22, 2008 at 05:27:53AM +0530, Shamik Datta wrote:
> [...]
> What SID essentially provides is the low level API for the components
> to talk to each other, the pin, the bus and the attribute interface.
> The config file inter-connects all the components through their these
> interfaces. During the simulation instances are created, at any
> activity on these interfaces, the appropriate function is called, eg,
> pin.driven. I presume for these set of APIs the calling bridge is
> setup in tcl, or something like that?, which enables writing
> components in tcl directly. hopefully more or less correct till now.

Right.

> I see for all the components there are class definitions and
> implementations. Again what SID provides here is the set of .h files
> in the ./sid/include directory which implement some basic and some
> utility functions, for these aforementioned interfaces. The rest of
> the design is completely open. SID provides no infrastructure or asks
> for any protocol here. It is left to the designer to define his
> classes (modules) and functions (interfaces), so as to mimic the
> actual hardware.

Right.

> So, for 'bochs' which was an existing emulation of the x86 processor,
> with SID, you have created its bus, pin and attribute interface and
> now other components can exchange data as well as use the existing
> processor emulation.

Right.

- FChE