EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: synApps_5_8 compilation error
From: Mark Rivers <[email protected]>
To: Mrinal Bera <[email protected]>, "[email protected]" <[email protected]>
Date: Tue, 21 Nov 2017 16:49:05 +0000

Hi Mrinal,

 

This was discussed recently in this tech-talk thread:

 

http://www.aps.anl.gov/epics/tech-talk/2017/msg01767.php

 

Andrew Johnson and I suggested to change

     motor_call->termstring = (char) NULL;

to this:

     motor_call->termstring = 0;

I think a new gcc-fix branch was created on github to address this issue, but so far it seems to not have any changes from master, and the problem you are having persists.

 

What version of gcc are you using?

 

Mark

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of Mrinal Kanti Bera
Sent: Tuesday, November 21, 2017 10:00 AM
To: [email protected]
Subject: synApps_5_8 compilation error

 

Hi,

I am trying to compile synApps_5_8 with epics_base (base-2.14.12.6). I am getting the following error which is coming from the compilation of motor module I think.

/usr/bin/g++ -c  -D_GNU_SOURCE -D_DEFAULT_SOURCE            -D_X86_64_  -DUNIX  -Dlinux     -O3 -g   -Wall       -m64     -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include    -I/home/mrinal/Downloads/synApps_5_8/support/asyn-4-26/include  -I/home/mrinal/Downloads/synApps_5_8/support/seq-2-2-1/include  -I/home/mrinal/Downloads/synApps_5_8/support/busy-1-6-1/include -I/home/mrinal/Downloads/base-3.14.12.6/include/os/Linux -I/home/mrinal/Downloads/base-3.14.12.6/include  -I/home/mrinal/Downloads/synApps_5_8/support/ipac-2-13/include        ../motordevCom.cc
In file included from /usr/include/bits/types/stack_t.h:23:0,
                 from /usr/include/signal.h:299,
                 from /usr/include/sys/param.h:28,
                 from /home/mrinal/Downloads/base-3.14.12.6/include/os/Linux/osdWireConfig.h:16,
                 from /home/mrinal/Downloads/base-3.14.12.6/include/epicsEndian.h:24,
                 from ../motor.h:66,
                 from ../motordevCom.cc:76:
../motordevCom.cc: In function ‘long int motor_start_trans_com(motorRecord*, board_stat**)’:
../motordevCom.cc:467:37: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
     motor_call->postmsgptr = (char) NULL;
                                     ^
../motordevCom.cc:468:37: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
     motor_call->termstring = (char) NULL;
                                     ^
make[4]: *** [/home/mrinal/Downloads/base-3.14.12.6/configure/RULES_BUILD:218: motordevCom.o] Error 1
make[4]: Leaving directory '/home/mrinal/Downloads/synApps_5_8/support/motor-6-9/motorApp/MotorSrc/O.linux-x86_64'
make[3]: *** [/home/mrinal/Downloads/base-3.14.12.6/configure/RULES_ARCHS:61: install.linux-x86_64] Error 2
make[3]: Leaving directory '/home/mrinal/Downloads/synApps_5_8/support/motor-6-9/motorApp/MotorSrc'
make[2]: *** [/home/mrinal/Downloads/base-3.14.12.6/configure/RULES_DIRS:83: MotorSrc.install] Error 2
make[2]: Leaving directory '/home/mrinal/Downloads/synApps_5_8/support/motor-6-9/motorApp'
make[1]: *** [/home/mrinal/Downloads/base-3.14.12.6/configure/RULES_DIRS:83: motorApp.install] Error 2
make[1]: Leaving directory '/home/mrinal/Downloads/synApps_5_8/support/motor-6-9'
make: *** [/home/mrinal/Downloads/base-3.14.12.6/configure/RULES_DIRS:83: /home/mrinal/Downloads/synApps_5_8/support/motor-6-9.install] Error 2

 

I would appreciate if anyone can help me out here.

Thanks and regards,

Mrinal

--
Mrinal Kanti Bera, PhD
Scientist


Center for Advanced Radiation Sources,
The University of Chicago,
9700 S Cass Ave Bldg 434D
Argonne, IL-60439
Phone: +1-630-252-0472
Fax: +1-630-252-0443



References:
synApps_5_8 compilation error Mrinal Kanti Bera

Navigate by Date:
Prev: synApps_5_8 compilation error Mrinal Kanti Bera
Next: areaDetector checkout fails Jörn Dreyer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: synApps_5_8 compilation error Mrinal Kanti Bera
Next: areaDetector checkout fails Jörn Dreyer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024