The build succeeded; the messages you are seeing are warnings, which you
can ignore.
Kevin
On 9/18/19 9:44 AM, Sintschuk, Michael via Tech-talk wrote:
>
> Thanks Torsten, this helped with the ATHM field which is 0 now. So the
> MSTA bits are now 2338 that corresponds to this status.
>
> After commenting out the line "status.Bits.RA_HOME =
> status.Bits.RA_DONE;" in "drvPIE816.cc" i recompiled the motor-module
> and encountered this problem:
>
>
> make[3]: Entering directory
> '/soft/epics/modules/motor-R6-10-1/motorApp/PiSrc/O.linux-x86_64'
> /usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_
> -DUNIX -Dlinux -O3 -g -Wall -mtune=generic -m64 -fPIC
> -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc
> -I../../../include/os/Linux -I../../../include
> -I/usr/local/epics/base/../modules/asyn/include
> -I/usr/local/epics/base/include/compiler/gcc
> -I/usr/local/epics/base/include/os/Linux
> -I/usr/local/epics/base/include -MM -MF drvPIE816.d ../drvPIE816.cc
> /usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_
> -DUNIX -Dlinux -O3 -g -Wall -mtune=generic -m64 -fPIC
> -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc
> -I../../../include/os/Linux -I../../../include
> -I/usr/local/epics/base/../modules/asyn/include
> -I/usr/local/epics/base/include/compiler/gcc
> -I/usr/local/epics/base/include/os/Linux
> -I/usr/local/epics/base/include -c ../drvPIE816.cc
> ../drvPIE816.cc:94:39: warning: ISO C++ forbids converting a string
> constant to ‘char*’ [-Wwrite-strings]
> "K","L"};
> ^
> ../drvPIE816.cc:94:39: warning: ISO C++ forbids converting a string
> constant to ‘char*’ [-Wwrite-strings]
> ../drvPIE816.cc:94:39: warning: ISO C++ forbids converting a string
> constant to ‘char*’ [-Wwrite-strings]
> ../drvPIE816.cc:94:39: warning: ISO C++ forbids converting a string
> constant to ‘char*’ [-Wwrite-strings]
> ../drvPIE816.cc:94:39: warning: ISO C++ forbids converting a string
> constant to ‘char*’ [-Wwrite-strings]
> ../drvPIE816.cc:94:39: warning: ISO C++ forbids converting a string
> constant to ‘char*’ [-Wwrite-strings]
> ../drvPIE816.cc:94:39: warning: ISO C++ forbids converting a string
> constant to ‘char*’ [-Wwrite-strings]
> ../drvPIE816.cc:94:39: warning: ISO C++ forbids converting a string
> constant to ‘char*’ [-Wwrite-strings]
> ../drvPIE816.cc:94:39: warning: ISO C++ forbids converting a string
> constant to ‘char*’ [-Wwrite-strings]
> ../drvPIE816.cc:94:39: warning: ISO C++ forbids converting a string
> constant to ‘char*’ [-Wwrite-strings]
> ../drvPIE816.cc:94:39: warning: ISO C++ forbids converting a string
> constant to ‘char*’ [-Wwrite-strings]
> ../drvPIE816.cc:94:39: warning: ISO C++ forbids converting a string
> constant to ‘char*’ [-Wwrite-strings]
> ../drvPIE816.cc: In function ‘int set_status(int, int)’:
> ../drvPIE816.cc:233:25: warning: variable ‘mr’ set but not used
> [-Wunused-but-set-variable]
> struct motorRecord *mr;
> ^~
> ../drvPIE816.cc:237:66: warning: unused variable ‘online_status’
> [-Wunused-variable]
> unsigned int overflow_status, ontarget_status, servo_status,
> online_status;
>
> ^~~~~~~~~~~~~
> ../drvPIE816.cc: In function ‘int motor_init()’:
> ../drvPIE816.cc:584:10: warning: unused variable ‘retry’ [-Wunused-variable]
> int retry = 0;
> ^~~~~
> /usr/bin/ar -rc libPI.a devPIC844.o drvPIC844.o PiRegister.o
> devPIC630.o drvPIC630.o PIC630Register.o devPIC848.o drvPIC848.o
> PIC848Register.o devPIC662.o drvPIC662.o PIC662Register.o devPIC862.o
> drvPIC862.o PIC862Register.o devPIC663.o drvPIC663.o PIC663Register.o
> devPIE710.o drvPIE710.o PIE710Register.o devPIE516.o drvPIE516.o
> PIE516Register.o devPIE517.o drvPIE517.o PIE517Register.o devPIE816.o
> drvPIE816.o PIE816Register.o
> /usr/bin/ranlib libPI.a
> /usr/bin/g++ -o libPI.so -shared -fPIC -Wl,-hlibPI.so
> -L/soft/epics/modules/motor-R6-10-1/lib/linux-x86_64
> -L/soft/epics/modules/asyn4-32/lib/linux-x86_64
> -L/soft/epics/base-3.15.5/lib/linux-x86_64
> -Wl,-rpath,/soft/epics/modules/motor-R6-10-1/lib/linux-x86_64
> -Wl,-rpath,/soft/epics/modules/asyn4-32/lib/linux-x86_64
> -Wl,-rpath,/soft/epics/base-3.15.5/lib/linux-x86_64 -rdynamic
> -m64 devPIC844.o drvPIC844.o PiRegister.o devPIC630.o
> drvPIC630.o PIC630Register.o devPIC848.o drvPIC848.o PIC848Register.o
> devPIC662.o drvPIC662.o PIC662Register.o devPIC862.o drvPIC862.o
> PIC862Register.o devPIC663.o drvPIC663.o PIC663Register.o devPIE710.o
> drvPIE710.o PIE710Register.o devPIE516.o drvPIE516.o PIE516Register.o
> devPIE517.o drvPIE517.o PIE517Register.o devPIE816.o drvPIE816.o
> PIE816Register.o -lmotor -lasyn -ldbRecStd -ldbCore -lca -lCom
> -lpthread -lreadline -lm -lrt -ldl -lgcc
> Installing shared library ../../../lib/linux-x86_64/libPI.so
> Installing library ../../../lib/linux-x86_64/libPI.a
> make[3]: Leaving directory
> '/soft/epics/modules/motor-R6-10-1/motorApp/PiSrc/O.linux-x86_64'
>
> I think this has nothing to do with removing of the upper line because
> it is located in line 313.
> My C / C++ knowledge is poor, so i don't know if my drvPIE816.cc is
> corrupted... I always compile the whole motor-package and this is the
> only file causing errors.
> Maybe its because of my Linux-System, some missing package? Can someone
> tell?
- References:
- Correct Settings for PIE816 Controller Sintschuk, Michael via Tech-talk
- Re: Correct Settings for PIE816 Controller Torsten Bögershausen via Tech-talk
- AW: Correct Settings for PIE816 Controller Sintschuk, Michael via Tech-talk
- Navigate by Date:
- Prev:
AW: Correct Settings for PIE816 Controller Sintschuk, Michael via Tech-talk
- Next:
Re: AW: Correct Settings for PIE816 Controller Torsten Bögershausen via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
<2019>
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
AW: Correct Settings for PIE816 Controller Sintschuk, Michael via Tech-talk
- Next:
Re: AW: Correct Settings for PIE816 Controller Torsten Bögershausen via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
<2019>
2020
2021
2022
2023
2024
|