bugCERTI - Bugs: bug #40977, compilation of cvs head fails:...

 
 

bug #40977: compilation of cvs head fails: fedtime.hh not found

Submitter:  Christopher Brooks <cxbrooks>
Submitted:  Fri 20 Dec 2013 12:44:27 AM UTC
   
 
Category:  CERTI Severity:  * 3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  erk
Open/Closed:  Closed Release:  * CVS
Reproducibility:  None Fixed Release:  * 3.5.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 19 Dec 2017 12:00:21 PM UTC, comment #3: 

Issue fixed.
Closing this one.

JbCh <jb_ch>
Group administrator
Mon 06 Jan 2014 05:58:56 PM UTC, comment #2: 

Thanks, I can compile 3.4.2 under Mac OS X 10.7.5 (Lion) and RHEL 6.

I was prompted to download the CVS HEAD by the instructions in
the Ptolemy II tree.

I'm fine with using 3.4.2 instead of the CVS HEAD.

Christopher Brooks <cxbrooks>
Mon 06 Jan 2014 04:22:59 PM UTC, comment #1: 

Current CVS HEAD is under a relatively big rework
in order to introduce 1516-2010 API so it may have
such compilation glitch.

I'll try to fix all these when 1516-2010 API is settled.

Does 3.4.2 work in your case?
Why did you try CVS HEAD?

Eric NOULARD <erk>
Group administrator
Fri 20 Dec 2013 12:44:27 AM UTC, original submission:  

Under RHEL 6.1, I run the following commands:

cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/certi co certi
mkdir build
cd build
cmake ../certi/
make

The error is:

[ 75%] Building CXX object RTIA/CMakeFiles/rtia.dir/Statistics.cc.o
[ 76%] Building CXX object RTIA/CMakeFiles/rtia.dir/TimeManagement.cc.o
Linking CXX executable rtia
[ 76%] Built target rtia
Scanning dependencies of target FedTime
[ 77%] Building CXX object libRTI/CMakeFiles/FedTime.dir/RTIfedTime.cc.o
/home/hudson/src/tmp/certi/libRTI/RTIfedTime.cc:25:22: fatal error: fedtime.hh: No such file or directory
 #include "fedtime.hh"
                      ^
compilation terminated.
make[2]: * [libRTI/CMakeFiles/FedTime.dir/RTIfedTime.cc.o] Error 1
make[1]: * [libRTI/CMakeFiles/FedTime.dir/all] Error 2
make: * [all] Error 2

I ran make VERBOSE=1

[ 77%] Building CXX object libRTI/CMakeFiles/FedTime.dir/RTIfedTime.cc.o
cd /home/hudson/src/tmp/build/libRTI && /usr/local/gcc-4.8.2/bin/c++   -DFedTime_EXPORTS -DHOST_IS_64BITS -DHAVE_CONFIG_H=1 -DHAVE_XML -DRTI_USES_STD_FSTREAM -fmessage-length=0 -fvisibility=hidden -std=c++98 -Wall -Woverloaded-virtual -Wno-unused-function -Wno-long-long -g -fPIC -I/usr/include/libxml2 -I/home/hudson/src/tmp/certi/include -I/home/hudson/src/tmp/build/include -I/home/hudson/src/tmp/build -I/home/hudson/src/tmp/certi/libCERTI -I/home/hudson/src/tmp/certi/libHLA    -o CMakeFiles/FedTime.dir/RTIfedTime.cc.o -c /home/hudson/src/tmp/certi/libRTI/RTIfedTime.cc
/home/hudson/src/tmp/certi/libRTI/RTIfedTime.cc:25:22: fatal error: fedtime.hh: No such file or directory
 #include "fedtime.hh"
                      ^
fedtime.hh is present:

bash-4.1$ find ../certi/ -name "fedtime.hh"
../certi/include/hla-1_3/fedtime.hh
bash-4.1$

but that directory is not included on the command line executed by make.

To get a succesful build, I had to copy these files
cp ../certi/include/hla-1_3/*.hh include
cp include/hla-1_3/* include/
cp ../certi/include/ieee1516-2000/RTI/*.h include/RTI/

It appears that the cmake configuration is not including the correct directories.

I'm running:

bash-4.1$ uname -a
Linux sisyphus.eecs.berkeley.edu 2.6.32-431.1.2.el6.x86_64 #1 SMP Sun Nov 24 09:37:37 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
bash-4.1$ cmake --version
cmake version 2.8.7
bash-4.1$ make --version
GNU Make 3.81

Christopher Brooks <cxbrooks>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jb_ch (Posted a comment)
  • -email is unavailable- added by bussenot (Updated the item)
  • -email is unavailable- added by erk (Posted a comment)
  • -email is unavailable- added by cxbrooks (Submitted the item)
  •  

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-12-19 jb_ch Open/ClosedOpen Closed
    2015-05-07 bussenot StatusIn Progress Fixed
        Fixed ReleaseUnknown 3.5.0
    2014-01-06 erk StatusNone In Progress
        Assigned toNone erk

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code