EPICS Controls Argonne National Laboratory

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  2017  2018  2019  2020  <20212022  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  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re:RE: motor module make error
From: 网易邮件中心 via Tech-talk <tech-talk at aps.anl.gov>
To: "Mark Rivers" <rivers at cars.uchicago.edu>
Cc: tech-talk <tech-talk at aps.anl.gov>
Date: Fri, 22 Oct 2021 18:10:59 +0800 (CST)
Hi all,
    Thank you for your kind answer.    
     It was good for centos 8,  base-7.0.6.1 and motor-master.   Sorry, I described the question wrongly.

    It was good motor-master.
    But i found that the file ( motor-master/module/)  was empty.
    So I copied "motorAMCI,motor* files" from synApps_6_1  to motor-master/module.
    Then the error came out.

    Today, I unzip the motor-master.zip and make, it was good.
     But how should i do it, to add the motorAMCI,motorKohzu in /module/ file?

Regards,
Liang
   
$ gcc --versiongcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ uname -r
4.18.0-305.19.1.el8_4.x86_64







At 2021-10-22 06:24:26, "Mark Rivers" <rivers at cars.uchicago.edu> wrote:

Hi Liang,

 

I just built that file on Centos 8 using gcc 8.4.1-1.  It builds fine for me.

 

/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/corvette/home/epics/devel/motor-7-0/include/compiler/gcc -I/corvette/home/epics/devel/motor-7-0/include/os/Linux -I/corvette/home/epics/devel/motor-7-0/include   -I/corvette/home/epics/devel/motor-7-0/include   -I/corvette/home/epics/devel/asyn-4-42/include   -I/corvette/home/epics/devel/seq-2-2-5/include   -I/corvette/home/epics/devel/busy-1-7-2/include   -I/corvette/home/epics/devel/ipac-2-15/include -I/corvette/usr/local/epics-devel/base-7.0.5/include/compiler/gcc -I/corvette/usr/local/epics-devel/base-7.0.5/include/os/Linux -I/corvette/usr/local/epics-devel/base-7.0.5/include           -c ../drvOmsPC68.cc

In file included from /corvette/usr/local/epics-devel/base-7.0.5/include/dbAccess.h:20,

                 from ../drvOmsPC68.cc:72:

/corvette/usr/local/epics-devel/base-7.0.5/include/dbBase.h:164:22: warning: ‘rset’ is deprecated [-Wdeprecated-declarations]

     rset            *prset;

                      ^~~~~

In file included from /corvette/usr/local/epics-devel/base-7.0.5/include/dbBase.h:22,

                 from /corvette/usr/local/epics-devel/base-7.0.5/include/dbAccess.h:20,

                from ../drvOmsPC68.cc:72:

/corvette/usr/local/epics-devel/base-7.0.5/include/recSup.h:89:21: note: declared here

typedef struct rset rset EPICS_DEPRECATED;

                     ^~~~

In file included from /corvette/usr/local/epics-devel/base-7.0.5/include/dbAccess.h:24,

                 from ../drvOmsPC68.cc:72:

/corvette/usr/local/epics-devel/base-7.0.5/include/dbAccessDefs.h:211:59: warning: ‘rset’ is deprecated [-Wdeprecated-declarations]

epicsShareFunc rset * dbGetRset(const struct dbAddr *paddr);

                                                           ^

In file included from /corvette/usr/local/epics-devel/base-7.0.5/include/dbBase.h:22,

                 from /corvette/usr/local/epics-devel/base-7.0.5/include/dbAccess.h:20,

                 from ../drvOmsPC68.cc:72:

/corvette/usr/local/epics-devel/base-7.0.5/include/recSup.h:89:21: note: declared here

typedef struct rset rset EPICS_DEPRECATED;

                     ^~~~

../drvOmsPC68.cc: In function ‘int omsGet(int, char*)’:

../drvOmsPC68.cc:660:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]

     asynStatus  status;

                 ^~~~~~

../drvOmsPC68.cc: In function ‘void asynCallback(void*, asynUser*, char*, size_t, int)’:

../drvOmsPC68.cc:687:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]

     if( stat & STAT_DONE )

 

What version of gcc are you using?  (gcc –version).

 

Mark

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of ?????? via Tech-talk
Sent: Wednesday, October 20, 2021 10:23 PM
To: tech-talk <tech-talk at aps.anl.gov>
Subject: motor module make error

 

Hi all,

     I use centos8, base 7.0.6.1, motor ( https://github.com/epics-modules/motor ), seq-2.2.6, and some other module from https://github.com/epics-modules/.

 

    I got the error message.

--------------------Error----------------------------------------

make -C ./modules install
make[1]: Entering directory '/home/liangyx/synApps/support/motor-master/modules'
make -C ./motorOms install
make[2]: Entering directory '/home/liangyx/synApps/support/motor-master/modules/motorOms'
make -C ./configure install
make[3]: Entering directory '/home/liangyx/synApps/support/motor-master/modules/motorOms/configure'
make -C O.linux-x86_64 -f ../Makefile TOP=../.. \
    T_A=linux-x86_64 install
make[4]: Entering directory '/home/liangyx/synApps/support/motor-master/modules/motorOms/configure/O.linux-x86_64'
perl -CSD /home/liangyx/base-7.0.6.1/bin/linux-x86_64/convertRelease.pl checkRelease
make[4]: Leaving directory '/home/liangyx/synApps/support/motor-master/modules/motorOms/configure/O.linux-x86_64'
make[3]: Leaving directory '/home/liangyx/synApps/support/motor-master/modules/motorOms/configure'
make -C ./omsApp install
make[3]: Entering directory '/home/liangyx/synApps/support/motor-master/modules/motorOms/omsApp'
make -C ./src install
make[4]: Entering directory '/home/liangyx/synApps/support/motor-master/modules/motorOms/omsApp/src'
make -C O.linux-x86_64 -f ../Makefile TOP=../../.. \
    T_A=linux-x86_64 install
make[5]: Entering directory '/home/liangyx/synApps/support/motor-master/modules/motorOms/omsApp/src/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/home/liangyx/synApps/support/motor-master/include/compiler/gcc -I/home/liangyx/synApps/support/motor-master/include/os/Linux -I/home/liangyx/synApps/support/motor-master/include   -I/home/liangyx/synApps/support/motor-master/include   -I/home/liangyx/synApps/support/asyn-master/include   -I/home/liangyx/synApps/support/seq-2.2.6/include   -I/home/liangyx/synApps/support/busy-master/include   -I/home/liangyx/synApps/support/ipac-master/include -I/home/liangyx/base-7.0.6.1/include/compiler/gcc -I/home/liangyx/base-7.0.6.1/include/os/Linux -I/home/liangyx/base-7.0.6.1/include           -c ../drvOmsPC68.cc
In file included from /home/liangyx/base-7.0.6.1/include/dbAccess.h:20,
                 from ../drvOmsPC68.cc:72:
/home/liangyx/base-7.0.6.1/include/dbBase.h:164:22: warning: ‘rset’ is deprecated [-Wdeprecated-declarations]
     rset            *prset;
                      ^~~~~
In file included from /home/liangyx/base-7.0.6.1/include/dbBase.h:22,
                 from /home/liangyx/base-7.0.6.1/include/dbAccess.h:20,
                 from ../drvOmsPC68.cc:72:
/home/liangyx/base-7.0.6.1/include/recSup.h:89:21: note: declared here
 typedef struct rset rset EPICS_DEPRECATED;
                     ^~~~
In file included from /home/liangyx/base-7.0.6.1/include/dbAccess.h:24,
                 from ../drvOmsPC68.cc:72:
/home/liangyx/base-7.0.6.1/include/dbAccessDefs.h:210:55: warning: ‘rset’ is deprecated [-Wdeprecated-declarations]
 DBCORE_API rset * dbGetRset(const struct dbAddr *paddr);
                                                       ^
In file included from /home/liangyx/base-7.0.6.1/include/dbBase.h:22,
                 from /home/liangyx/base-7.0.6.1/include/dbAccess.h:20,
                 from ../drvOmsPC68.cc:72:
/home/liangyx/base-7.0.6.1/include/recSup.h:89:21: note: declared here
 typedef struct rset rset EPICS_DEPRECATED;
                     ^~~~
../drvOmsPC68.cc:110:66: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
 static char *oms_axis[] = {"X", "Y", "Z", "T", "U", "V", "R", "S"};
                                                                  ^
../drvOmsPC68.cc:110:66: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
../drvOmsPC68.cc:110:66: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
../drvOmsPC68.cc:110:66: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
../drvOmsPC68.cc:110:66: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
../drvOmsPC68.cc:110:66: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
../drvOmsPC68.cc:110:66: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
../drvOmsPC68.cc:110:66: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
../drvOmsPC68.cc:148:1: error: invalid conversion from ‘RTN_STATUS (*)(int, const char*, char*)’ {aka ‘RTN_VALUES (*)(int, const char*, char*)’} to ‘RTN_STATUS (*)(int, const char*, const char*)’ {aka ‘RTN_VALUES (*)(int, const char*, const char*)’} [-fpermissive]
 };
 ^
../drvOmsPC68.cc:148:1: error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive]
../drvOmsPC68.cc: In function ‘void asynCallback(void*, asynUser*, char*, size_t, int)’:
../drvOmsPC68.cc:687:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]
     if( stat & STAT_DONE )
       ^
make[5]: *** [/home/liangyx/base-7.0.6.1/configure/RULES_BUILD:263: drvOmsPC68.o] Error 1
make[5]: Leaving directory '/home/liangyx/synApps/support/motor-master/modules/motorOms/omsApp/src/O.linux-x86_64'
make[4]: *** [/home/liangyx/base-7.0.6.1/configure/RULES_ARCHS:58: install.linux-x86_64] Error 2
make[4]: Leaving directory '/home/liangyx/synApps/support/motor-master/modules/motorOms/omsApp/src'
make[3]: *** [/home/liangyx/base-7.0.6.1/configure/RULES_DIRS:85: src.install] Error 2
make[3]: Leaving directory '/home/liangyx/synApps/support/motor-master/modules/motorOms/omsApp'
make[2]: *** [/home/liangyx/base-7.0.6.1/configure/RULES_DIRS:85: omsApp.install] Error 2
make[2]: Leaving directory '/home/liangyx/synApps/support/motor-master/modules/motorOms'
make[1]: *** [/home/liangyx/base-7.0.6.1/configure/RULES_DIRS:85: motorOms.install] Error 2
make[1]: Leaving directory '/home/liangyx/synApps/support/motor-master/modules'
make: *** [/home/liangyx/base-7.0.6.1/configure/RULES_DIRS:85: modules.install] Error 2
--------------------End----------------------------------------

 

I could not find the problem

Could someone give me some advice.

 

Regards,

Liang

    

 

 

 



 


Replies:
Re: motor module make error Torsten Bögershausen via Tech-talk
Re: Re:RE: motor module make error Mark Rivers via Tech-talk
References:
motor module make error 网易邮件中心 via Tech-talk

Navigate by Date:
Prev: Re: Measurement Computing USB-1608G_2AO support Dudley, David via Tech-talk
Next: Re: motor module make error 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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: motor module make error Kevin Peterson via Tech-talk
Next: Re: motor module make error 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  <20212022  2023  2024 
ANJ, 22 Oct 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·