Incremental linking of new stars does not work in the Ptolemy 0.x NT
port.

The usual way of doing incremental linking is to build a binary
that is dynamically linked.  

Currently, the Ptolemy 0.x NT port is statically linked.  I was
unable to build a dynamically linked version.

The -fPIC option denotes Position Independent Code, which
is used to generate shared objects which can be loaded in at runtime.

Older versions of Ptolemy used the BSD ld -A option to load
stars into statically linked binaries, but that option is not 
available in newer versions of ld.

The way I would figure out how to do incremental linking would be to
build a dynamically linked binary with the Microsoft Visual C++ port
(PTARCH=nt4.vc) and then port those changes to the Cygwin port.
This is a fairly big job.

With the cd2dat demo, it should be possible to build a binary that
had the appropriate stars built in, and then to create a new
simulation that used those stars.  This sort of defeats the purpose of
this simulation though, since the cool thing is that it generates
a star on the fly that gets loaded in at run time.  However, if
you were interested in the CD to DAT conversion, then this might 
do the trick.

-Christopher


--------

      Hi,
    
    I just finish the installation of  Ptolemy 0.7.1 under Windows NT 4.0
    with Cygwin32 Beta 19.1 with egcs 1.0.2. and I test it. But the demo
    under
    mixed Domains Demo --> SDF/CGC Combinations -->  cd2dat don't seem to
    work and I don't know how to resolve the problem.
    when I want to run the demo,  the message is the following:
    
    rshCommand: mkdir -p $HOME/PTOLEMY_SYSTEMS/CGC
    rcpWriteFile: writing file SDFcd2dat_compiled.sched
    rcpWriteFile: writing file SDFcd2dat_compiled.pl
    rcpWriteFile: writing file SDFcd2dat_compiled.mk
    rshCommand: cd /users/ruelland/PTOLEMY_SYSTEMS/CGC;cd
    $HOME/PTOLEMY_SYSTEMS/CGC; make -f
    SDFcd2dat_compiled.mk all
    cd .; `if [ ! -f /users/ptolemy/obj.nt4/ptlang/ptlang.exe ]; then (cd
    /users/ptolemy/obj.nt4/ptlang ; make ptlang VPATH=../../src/ptlang
    >/dev/null 2>&1); fi; if [ ! -f /users/ptolemy/obj.nt4/ptlang/ptlang.exe
    ]; then echo ptlang; else echo /users/ptolemy/obj.nt4/ptlang/ptlang.exe;
    
    fi` SDFcd2dat_compiled.pl
    g++    -Wall -Wsynth -Wno-non-virtual-dtor   -g -DPTNT -DPT_NO_TIMER
    -DUSE_DIRENT_H -DNO_SYS_SIGLIST
    -DPT_ERRNO_IS_A_FUNCTION   -fPIC -I.
    -I/users/ptolemy/src/domains/sdf/kernel -I/users/ptolemy/src/kernel
    -I/users/ptolemy/src/domains/cgc/rtlib  -c SDFcd2dat_compiled.cc
    /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/as.exe: bfd assertion fail
    ../../bfd/coff-i386.c:479
    C:\TEMP\cc001058.s: Assembler messages:
    C:\TEMP\cc001058.s:279: Error: Cannot represent relocation type
    BFD_RELOC_386_GOTPC
    /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/as.exe: bfd assertion fail
    ../../bfd/coff-i386.c:479
    C:\TEMP\cc001058.s:316: Error: Cannot represent relocation type
    BFD_RELOC_386_GOTPC
    /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/as.exe: bfd assertion fail
    ../../bfd/coff-i386.c:479
    C:\TEMP\cc001058.s:377: Error: Cannot represent relocation type
    BFD_RELOC_386_GOTPC
    /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/as.exe: bfd assertion fail
    ../../bfd/coff-i386.c:479
    C:\TEMP\cc001058.s:472: Error: Cannot represent relocation type
    BFD_RELOC_386_GOTPC
    /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/as.exe: bfd assertion fail
    ../../bfd/coff-i386.c:479
    C:\TEMP\cc001058.s:2086: Error: Cannot represent relocation type
    BFD_RELOC_386_GOTPC
    /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/as.exe: bfd assertion fail
    ../../bfd/coff-i386.c:479
    C:\TEMP\cc001058.s:2137: Error: Cannot represent relocation type
    BFD_RELOC_386_GOTPC
    /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/as.exe: bfd assertion fail
    ../../bfd/coff-i386.c:479
    C:\TEMP\cc001058.s:3248: Error: Cannot represent relocation type
    BFD_RELOC_386_GOTPC
    /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/as.exe: bfd assertion fail
    ../../bfd/coff-i386.c:479
    C:\TEMP\cc001058.s:3284: Error: Cannot represent relocation type
    BFD_RELOC_386_GOTPC
    /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/as.exe: bfd assertion fail
    ../../bfd/coff-i386.c:479
    C:\TEMP\cc001058.s:3204: Error: Cannot represent relocation type
    BFD_RELOC_386_GOTPC
    /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/as.exe: bfd assertion fail
    ../../bfd/coff-i386.c:479
    C:\TEMP\cc001058.s:3476: Error: Cannot represent relocation type
    BFD_RELOC_386_GOTPC
    /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/as.exe: bfd assertion fail
    ../../bfd/coff-i386.c:479
    C:\TEMP\cc001058.s:3526: Error: Cannot represent relocation type
    BFD_RELOC_386_GOTPC
    /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/as.exe: bfd assertion fail
    ../../bfd/coff-i386.c:479
    C:\TEMP\cc001058.s:3651: Error: Cannot represent relocation type
    BFD_RELOC_386_GOTPC
    /Cygnus/B19/H-i386-cygwin32/i386-cygwin32/bin/as.exe: bfd assertion fail
    ../../bfd/coff-i386.c:479
    C:\TEMP\cc001058.s:3776: Error: Cannot represent relocation type
    BFD_RELOC_386_GOTPC
    make: *** [SDFcd2dat_compiled.o] Error 1
    rm SDFcd2dat_compiled.cc
    
    
    Can anyone help?
    
    
    
    ---------------------------------------------------------------------------
   -
    Posted to the ptolemy-hackers mailing list.  Please send administrative
    mail for this list to: [EMAIL PROTECTED]
--------

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to