Template instantiation and multiple binaries in same directory

Forte C++ 5.3
Solaris 8 w/Recommended Patch Cluster: Mar 20/03
Several ACE [see http://www.cs.wustl.edu/~schmidt/ACE.html] Makefiles direct the creation of multiple binary executables in the same directory. My build [i.e. GNU make] of ACE test programs results in successful creation of only the first of the multiple binaries. All binaries after the first have link errors. The link errors seem to be caused by the linker's failure to pick up template instantiations the were already created when the first binary was compiled and linked.
The $64000 question seems to be: Why does Forte's link line include the appropriate file from the template repository in the first case but not in subsequent cases? The first of the executables, MCast_Fragment_Test, links correctly because the linker picks up the singleton_ instantiation from the template repository - you can see this with the "-verbose=template" switch. However, the second of the test executables, RMCast_Reassembly_Test, fails to link because the same singleton_ instantiation [i.e. the same file] is not picked up:
% export ACE_ROOT=/tools/pkg/ace/ace5.3.1-sunc++/ACE_wrappers
% cd $ACE_ROOT/tests/RMCast
% gmake CCFLAGS="-verbose=template -fast -O3" exceptions=1
shared_libs=1 static_libs=1 threads=1 distrib=1
CC -verbose=template -fast -O3 -I..
-DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
-I/tools/pkg/ace/ace5.3.1-sunc++/ACE_wrappers
-DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -c
-o .obj/RMCast_Fragment_Test.o RMCast_Fragment_Test.cpp
o o o
"../test_config.h", line 314: Information: Instantiating
ACE_Singleton<ACE_Test_Output, ACE_Null_Mutex>::singleton_.
ccfe: Information: Invoking:
"/tools/forte_c++/SUNWspro/bin/../WS6U2/bin/CC
-ptd/tmp/03764.TEMPLATE_FILE.s
-ptc/tmp/03764.TEMPLATE_FILE.ir
-o $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_z/\
temp.shuriken.3767.zr7WQNsTBFiWx9j3KXv3.o
-verbose=template -fast -O3 -I..
-DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION -I$ACE_ROOT
-DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -c ".
o o o
CC -verbose=template -fast -O3 -I..
-DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
-I$ACE_ROOT -DACE_HAS_EXCEPTIONS -D__ACE_INLINE
-mt -xildoff -L$ACE_ROOT/ace -L./
-o RMCast_Fragment_Test .obj/RMCast_Fragment_Test.o
-lACE_RMCast -lACE -lsocket -ldl -lnsl -lgen -lposix4
CClink: Information: Invoking:
"/tools/forte_c++/SUNWspro/bin/../WS6U2/bin/CC
-ptl -verbose=template -fast -O3 -I..
-DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
-I/tools/pkg/ace/ace5.3.1-sunc++/ACE_wrappers
-DACE_HAS_EXCEPTIONS
-D__ACE_INLINE__ -mt -xildoff
-L/tools/pkg/ace/ace5.3.1-sunc++/ACE_wrappers/ace
-L./
$ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_N/ND6YV9mCPjF6W_mdb9HD.o
$ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_W/Wo599T9ON0ragDRfBzx1.o
$ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_0/0K1qNfk0TfJC_d7Uf0Iy.o
### SUCCESS: The following object file contains the 'singleton_'
### definition. Look for blahblah.zr7WQNsTBFiWx9j3KXv3.o, above.
$ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_z/zr7WQNsTBFiWx9j3KXv3.o
$ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_L/LLYlbLynG-qBErnxnavz.o
$ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_2/2nXCDDGsUTu5P0ypRsj6.o
.obj/RMCast_Fragment_Test.o -lACE_RMCast -lACE -lsocket -ldl -lnsl
-lgen -lposix4 -o RMCast_Fragment_Test ".
CC -verbose=template -fast -O3 -I..
-DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
-I$ACE_ROOT -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__
-c -o .obj/RMCast_Reassembly_Test.o RMCast_Reassembly_Test.cpp
CC -verbose=template -fast -O3 -I..
-DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
-I$ACE_ROOT -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -mt -xildoff
-L$ACE_ROOT/ace -L./
-o RMCast_Reassembly_Test .obj/RMCast_Reassembly_Test.o
-lACE_RMCast -lACE -lsocket -ldl -lnsl -lgen -lposix4
CClink: Information:
Invoking: "/tools/forte_c++/SUNWspro/bin/../WS6U2/bin/CC -ptl
-verbose=template -fast -O3 -I..
-DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
-I$ACE_ROOT -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -mt -xildoff
-L$ACE_ROOT/ace -L./
$ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_N/ND6YV9mCPjF6W_mdb9HD.o
$ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_W/Wo599T9ON0ragDRfBzx1.o
$ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_0/0K1qNfk0TfJC_d7Uf0Iy.o
$ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_L/LLYlbLynG-qBErnxnavz.o
$ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_2/2nXCDDGsUTu5P0ypRsj6.o
### FAILURE: No blahblah/CC_obj_z/zr7WQNsTBFiWx9j3KXv3.o among the
### above object files pulled from the template repository.
.obj/RMCast_Reassembly_Test.o -lACE_RMCast -lACE -lsocket -ldl -lnsl
-lgen -lposix4 -o RMCast_Reassembly_Test ".
Undefined first referenced
symbol in file
ACE_Singleton<ACE_Test_Output,ACE_Null_Mutex>::singleton_
$ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_L/LLYlbLynG-
qBErnxnavz.o
[Hint: static member
ACE_Singleton<ACE_Test_Output,ACE_Null_Mutex>::singleton_ must be
defined in the program]
ld: fatal: Symbol referencing errors. No output written to
RMCast_Reassembly_Test
gmake: *** [RMCast_Reassembly_Test] Error 1
FYI - A manual relink of RMCast_Reassembly_Test while explicitly
specifying
$ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_z/zr7WQNsTBFiWx9j3KXv3.
o successfully created the executable.
Additional Info: If I swap RMCast_Fragment_Test with RMCast_Reassembly_Test in the build order, i.e.:
BIN = RMCast_Fragment_Test \
RMCast_Reassembly_Test \
becomes
BIN = RMCast_Reassembly_Test \
RMCast_Fragment_Test \
then RMCast_Reassembly_Test links correctly, but RMCast_Fragment_Test
doesn't.
Generalization: In all cases, the first binary links successfully
while subsequent binaries fail to link successfully.
Regards,
... Dave

Thank you for your reply, but it raises some questions:
(1) There are people doing regular builds of ACE [see http://tao.doc.wustl.edu/scoreboard/ace.html] using Solaris-8/Forte, but my particular issue is not one that they see. They use the same Makefiles, so why do they not experience the same problem?
(2) You acknowledge that my observations are consistent with expected behaviour, but who expects that behaviour? Does Sun not accept that this behaviour amounts to a bug?
(3) Your suggested workarounds are appreciated, but there may be additional options. The more I know about the template related mechanisms employed by the compiler and linker, the better I am able to identify alternative workarounds. For example, after linking a binary, could I touch(1) one or more files in the template repository to positively effect the outcome for building the next binary?
Regards,
... Dave

Similar Messages

  • Stop Lightroom from forcing "-edit" rename and saving in the same directory when saved from Photoshop

    After opening a file from Lightroom 5 in photoshop, is there a way to disable the function that automatically saves a file back to Lightroom in the same folder, while adding the infuriating "-edit" to the filename? I keep my files in a very tight file structure, with DNGs, PSDs, and JPGs all neatly separated. It drives me batty that when I save a file it saves it in the same directory as the DNG. Why would anyone want this as a feature. STOP IT!
    I know I can simply "Save As" but there has to be a way to turn this off.

    I know you can have Lightroom change the appended "-edit" (via Preferences) to practically anything you'd like but as far as I know, it's all by design. Photoshop/Lightroom will always save a copy and leave your original files alone. To be honest, I'd want all my edits contained to where the original file was as well. As long as they're in the same folder, I'm happy.

  • Mac OS X disallow same folder name and filename under the same directory

    I noticed Mac doesn't allow me to create the same filename and folder name under the same directory.
    Seems like this constraint is unique only to Mac since I can do it in Unix and Windows.
    Why is this so?
      Mac OS X (10.4.9)  

    In Windows, there's probably a normally hidden extension being added to the file and/or the folder.
    In Unix, I'm NOT able to create both file "foo" and folder "foo". What version of Unix are you using that allows this? (Mac OS X is built on top of Unix.)
    One workaround would be to give the file a reasonable extension; foo.txt or foo.doc or foo.jpeg or whatever.
    Doug

  • OpenLDAP and multiple users sharing same account

    Hello.
    I have been running an OpenLDAP directory for a while now and users' homes live on an NFS share, which causes problems when the same user is logged in to multiple computers at the same time.
    I can tell which users are logged in to which computers and then disable the accounts that are used more than once.
    Is there a way to disallow multiple logins or automatically log users out when they log in to different machines? I have 600+ users.

    Hi
    You need 2 accounts.
    Tony

  • Unable to see the vacant/free space in repository, after deleting VMs/Templates/Clones and even moving the same stuff to another repository

    Guys,
    We've got an Oracle VM Server 3.1.1 and Oracle VM Manager 3.1.1. We're having two repositories, which are presented to the OVM Server. let's name them repo1 and repo2 for ease of communication.
    We're facing space related issue on the OVM Server, because it's showing one of the repository as 99% utilized. We deleted VMs/templates and clones from the repo1 and even tried to move the same stuff to repo2, but the changes are not getting reflected in the space usage % of the repo1 after the same is refreshed.
    Please let us know, how to troubleshoot this issue.
    Ankit

    Here the the results of the commands that you've asked us to run on the OVM server.
    Please let us know, who to know, whether the repositories are mounted on OCSF2 or not, is there a command to know about the same.
    Output of the Command given below :-
    root@OVMServer 0004fb000003000073a4f5dab4b7leeb]# du -h
    ./lost+found
    21G      ./Assemblies/0004fb001123a5d/unpacked
    ./Assemblies/0004fb001123a5d/Imports
    41G      ./Assemblies/0004fb001123a5d
    41G      ./Assemblies
    ./Templates/0004fb0000140000afe0afb9e01d1cdc
    ./Templates/0004fb000006000023e989a13e7aecd0
    ./Templates/0004fb000006000034513ec20e6a9c12
    ./Templates/0004fb000006000009f1645f74c33d8a
    ./Templates/0004fb000014000062603eab8ac805c5
    ./Templates/0004fb00001400000f980b348bdc00ca
    ./Templates
    6.6G      ./ISOs
    744G     ./VirtualDisks
    ./VirtuaiMachines/0004fb0000060000fae38156db652f3c
    ./VirtuaiMachines
    792G
    [root@OVMServer
    0004fb000003000073a4f5dab4b7leebl# df -h
    Filesystem
    Size
    Used Avail Use% Mounted on
    /dev/sda2
    97G
    1.2G
    91G
    2% /
    /dev/sda6
    142G
    188M
    135G
    1% /Data
    /dev/sda5
    200G
    476M
    200G
    1% /DataRepo
    /dev/sdal
    2.0G
    57M
    1.8G
    4% /boot
    tmpfs
    1.5G
    0
    1.5G
    0% /dev/shm
    none
    1.5G
    976K
    1.5G
    1% /var/lib/xenstored
    /dev/mapper/36848f690ec474e00193c719e0acdcb29
    1.9T 734G 1.2T 40% /OVS/Repositories/0004fb000003000073a4f5dab4b7leeb /dev/mapper/36848f690ec474e00193c71b20bf4b9ff
      3.7T 3.6T 70G 99% /OVS/Repositories/0004fb0000030000fe6f4663925ffbOf

  • Single and  Multiple Records On Same Data Block?

    Hi all,
    Im using forms 6i with db 9i.
    Im having a nested table which contains a column of datatype TYPE(table of varchar2(100)).
    Now i want to create a data block based on the nested table.
    So, I want only one column should be multirecord in the block.
    When i set the block level NO OF RECORDS PROPERTY to multiple, then all the items in the block getting changed as
    multi records.
    Is that possible to have multirecord for a particular field OR how to fix this issue?
    Regards
    Sankar MN
    Edited by: SankarMCA on Oct 17, 2010 9:55 PM

    Hi Baiq,
    Thanks for your responses. I moved the multirecord item into a separate block(control block) and it worked.
    But still im having a doubt regarding this.
    How can we map a db column which has datatype of TYPE(Collection) to a particular item in forms?
    Because when i try to create a new datablock based on that table im not able to move that collection column from
    the available columns to database items in the datablock wizard. It seems like disabled and tree node structure and
    im not able to select the same.
    Next thing, Even though we assigned those column manually, How the commit_form save that multirecord column
    with multiple values?
    So kindly let me know how to solve this case if possible.
    Regards
    Sankar MN
    Edited by: SankarMCA on Oct 18, 2010 7:14 AM

  • Iphoto and multiple accounts on same computer

    I have two accounts/ users on my mac and  each has an extensive iphoto library.  I purchased iphoto Library Manager as suggesed.  The problem is that when I am logged into Account A it cannot see the library in account B.  I created a new library and merged account/user B photo library but when logged into Account A it still does not see the default library for B or the newly created library.  I'm going in circles and racing the clock to back up and prior to convertingsystem  to Lion by end of June. Any help out their?

    Yes I want to merge them.   I went to account B moved new library to Users shared and then went back to account A and clicked on harddrive symbol/ users/shared and I do not see it.  I do see the two accounts listed separately.  This all started by combining office and home computer into one.

  • Dynamic Template report on multiple tab

    Hi
    I am trying to develop reports using dynamic template .Now I  want  another  template on another Tab ( work sheet ) on same work book .Can any body suggest me how to do it ?
    Let me explain in  another way. I want multiple template reports on multiple tab of same work book.When I go to next new blank sheet , I don't get reporting option on action pane.
    Thanks
    SN

    Perhaps you could solve this using existing Excel functionality as follows:
    Right click on the worksheet name of the sheet with the existing report (eg. Trend)
    Select Move or Copy
    Choose the Create a Copy check box
    Click OK
    if building an EVDRE on the new sheet, you could type =EVDRE() then click on the Refresh Workbook button in the BPC toolbar.

  • Bulk load users into Directory and Messaging at the same time

    Can I bulk load users into Directory and Messaging at the same
    time?
    <P>
    Yes, but you are not really loading users into the Messaging
    Server. The Directory Server contains all kinds of information about
    users, including information about their email. So if you want to
    load user information into the Directory Server, including the users'
    messaging infromation, you must install the Directory server first.
    Configure the directory server. Then install the Messaging Server.
    Then you can load users into both by loading an LDIF file with the
    user information.

    Hi,
    You can check the documentation: Multiple Copies of RMAN Backups ;-)
    When backing up datafiles, archived redo log files, server parameter files and control files into backup pieces, RMAN can duplex the backup set, producing up to four identical copies of each backup piece in the backup set on different backup destinations with one BACKUP command. (Note that duplexing is not supported for backup operations that produce image copies.)
    There are three ways to specify duplexing of backup sets when using the BACKUP command:
    Specify a default level of duplexing with CONFIGURE... BACKUP COPIESAll backup commands that back up data into backup sets will be affected if you use this option, unless you specify different duplexing options for a command using SET BACKUP COPIES or provide a COPIES option for the BACKUP command.
    Use SET BACKUP COPIES in a RUN block All commands in the RUN block will be affected, overriding any CONFIGURE... BACKUPCOPIES setting, except those where you provide a COPIES option as part of the BACKUP command.
    Provide a COPIES option to the BACKUP command For this specific BACKUP command, files will be duplexed to produce the number of copies you specify.
    Cheers
    Legatti

  • Multiclips and multiple audio tracks playing at the same time

    I've only just taken delivery of my first ever mac (only ever used PC) with FCP, and I'm loving it already! Done lots of reading and viewing of video etc etc, and it's not as daunting as I thought it might be. I have one question the books don't seem to answer, and I can only find one reference to this on this site, with no definitive response. FCP5 probably doesn't work this way, but just in case someone knows different......
    I film and edit motorsport (karting) programmes for television in the UK, using multiple cameras. I usually lay all the video and audio tracks on the timeline, (synched) lock the audio for each (as it is engine noise, and I want it playing without abrupt changes at cuts as each kart passes each camera, whether in shot or not) then cut the video tracks and delete those video segments not required.
    The most exciting aspect of FCP5 for me is the multiclip editing facility, which I have found very easy to learn and is going to save me hours of work! However, I want to know if there is a way of having each audio track from each camera used in the multiclip laid down on the timeline when you import the multiclip to the timeline from the viewer, in order that I can play each audio track from each of the cameras at the same time.
    I know how to cut from angle to angle, leaving the audio from the selected angle as the one audio track playing, but I want all of the tracks to appear in the timeline and play at the same time. I know there's a bit of a workaround by locking the video and importing each audio track from each clip independently, but if you do have to re-synch one of the multiclips, this means the audio is not then synched with the original clip, which will have had an in point set before being imported in as part of a multiclip.
    I can understand why you might want to keep audio from one camera only playing over the whole multiclip, or to switch between audio from each, but in my case I prefer all audio to play at the same time. The workaround is still do-able for me as I'm only talking about engine notes, which if they are a few frames out is not very noticeable at all, but I would like to know if I'm right in thinking I cannot do it the way I would like to?
    Wish I'd used FCP from the start, but glad I've got it now.....especially with the 30 inch screen! It's 4.40am, been going over 19 hours straight and I'm still making comments like...."WOW, that's brilliant"...every half hour!
    G5   Mac OS X (10.4.3)   Quad, 8gb ram, 2 x G-Media GRaid 500gb Raids, 30 + 20 inch Cinema screens

    ...

  • I have two macs at my house, and multiple iPhones. I want to keep the same apple id as everyone else, but i want to put my own music only on my iPhone. I want to do this with my laptop which is not the family's main iTune's computer.

    I have two macs at my house, and multiple iPhones. I want to keep the same apple id as everyone else, but i want to put my own music only on my iPhone. I want to do this with my laptop which is not the family's main iTune's computer.

    If you use the same Apple ID for iCloud on each device, yes. However, you can use the same Apple ID for iTunes content on each device, but different Apple ID's for iCloud, iMessage, FaceTime, etc., on each device. That way, you can have whatever iTunes content you want on each phone, but keep all of the other data separate. You can create another Apple ID here:
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/createAppleId?loca lang=en_US
    Must be a verified email address.

  • Just bought a new iphone4 and was loading os6 and now it won't turn on. the apple glows like it is starting up, then the screen goes black and then repeats the same process over and over. i have tried to reboot multiple times now

    just bought a new iphone4 and was loading os6 and now it won't turn on. the apple glows like it is starting up, then the screen goes black and then repeats the same process over and over. i have tried to reboot multiple times now

    I am assuming the phone was working prior to you installing IOS 6? Did you use itunes to install IOS 6 or just run from the phone?
    When I tried to do the Over The Air update to IOS6 on my iPhone 4, it errored out and I had to connect it to iTunes and select "Restore" from the summary screen after iTunes finds the phone is connected. If this works for you, it will go through a couple of reboots that take a few minutes to complete. It should then give you the option to start with a fresh new phone or to use one of your previous backups to load your contacts and other information, provided you have backed up the phone previously.
    I hope this helps you my friend!

  • How to read from and write into the same file from multiple threads?

    I need to read from and write into a same file multiple threads.
    How can we do that without any data contamination.
    Can u please provide coding for this type of task.
    Thanks in advance.

    Assuming you are using RandomAccessFile, you can use the locking functionality in the Java NIO library to lock sections of a file that you are reading/writing from each thread (or process).
    If you can't use NIO, and all your threads are in the same application, you can create your own in-process locking mechanism that each thread uses prior to accessing the file. That would take some development, and the OS already has the capability, so using NIO is the best way to go if you can use JDK 1.4 or higher.
    - K
    I need to read from and write into a same file
    multiple threads.
    How can we do that without any data contamination.
    Can u please provide coding for this type of task.
    Thanks in advance.

  • Copying files from same directory as *.java files and moving to WEB-INF/classes/ package name

    In our current application we have the following source directory structure:
              src -
              - com
              - edeploy
              - subdirs ... (many directories here)
              - jsp
              -subdirs ... (many directories here)
              In com.edeploy.subdirs, there exists *.java files, and *.gxq files (query
              files). I would like to modify my build.cmd script to copy the *.gxq files
              into the same directory as the class files.
              Here's my script so far:
              @REM Create list of files to compile
              DIR /S /B /A:-D src\com\*.java >class.list
              @REM Create list of query files
              DIR /S /B /A:-D src\com\*.gxq >query.list
              @REM Compile
              javac -d stage\WEB-INF\classes @class.list
              @REM Copy query files into class directory
              .......... code needed here ......
              Can anyone help me with this?
              Thanks,
              Matt
              

    You may want to check out:
              http://jakarta.apache.org/ant/index.html
              Gary
              "Matt Raible" <[email protected]> wrote in message
              news:[email protected]..
              > In our current application we have the following source directory
              structure:
              >
              > src -
              > - com
              > - edeploy
              > - subdirs ... (many directories here)
              > - jsp
              > -subdirs ... (many directories here)
              >
              >
              > In com.edeploy.subdirs, there exists *.java files, and *.gxq files (query
              > files). I would like to modify my build.cmd script to copy the *.gxq
              files
              > into the same directory as the class files.
              >
              > Here's my script so far:
              >
              > @REM Create list of files to compile
              > DIR /S /B /A:-D src\com\*.java >class.list
              >
              > @REM Create list of query files
              > DIR /S /B /A:-D src\com\*.gxq >query.list
              >
              > @REM Compile
              > javac -d stage\WEB-INF\classes @class.list
              >
              > @REM Copy query files into class directory
              > .......... code needed here ......
              >
              > Can anyone help me with this?
              >
              > Thanks,
              >
              > Matt
              >
              >
              

  • No SIM on iPad. Tried different cards, same thing. Updated and multiple reboots have solved the problem. IPad fault?

    No Sim on iPad. Tried different cards, same thing. Updated iOS and multiple reboots, no luck. iPad fault? What do I do now, ask for replacement?

    Apple has acknowledged that the "no sim card" message has been a problem for some users. iOS 5.1 is reported by MacWorld to resolve this issue. 5.1 is in development and a beta version has been seeded to developers. In the meant time I suggest contacting Apple.

Maybe you are looking for