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  <20142015  2016  2017  2018  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  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: compiling issues during building cothread
From: Jeong Han Lee <[email protected]>
To: tech-talk <[email protected]>
Date: Mon, 3 Nov 2014 20:54:17 +0900
Hi All,

   I'm trying to build the cothread-2-12 (gz and git) in my laptop,
I've got the following error:


@:~/cothread-2-12$ python setup.py build
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cothread
copying cothread/catools.py -> build/lib.linux-x86_64-2.7/cothread
copying cothread/poll_win32.py -> build/lib.linux-x86_64-2.7/cothread
copying cothread/cothread.py -> build/lib.linux-x86_64-2.7/cothread
copying cothread/load_ca.py -> build/lib.linux-x86_64-2.7/cothread
copying cothread/cadef.py -> build/lib.linux-x86_64-2.7/cothread
copying cothread/coserver.py -> build/lib.linux-x86_64-2.7/cothread
copying cothread/input_hook.py -> build/lib.linux-x86_64-2.7/cothread
copying cothread/cosocket.py -> build/lib.linux-x86_64-2.7/cothread
copying cothread/pv.py -> build/lib.linux-x86_64-2.7/cothread
copying cothread/__init__.py -> build/lib.linux-x86_64-2.7/cothread
copying cothread/dbr.py -> build/lib.linux-x86_64-2.7/cothread
copying cothread/coselect.py -> build/lib.linux-x86_64-2.7/cothread
creating build/lib.linux-x86_64-2.7/cothread/tools
copying cothread/tools/pvtree.py -> build/lib.linux-x86_64-2.7/cothread/tools
copying cothread/tools/__init__.py -> build/lib.linux-x86_64-2.7/cothread/tools
running build_ext
building 'cothread._coroutine' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/context
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c
context/_coroutine.c -o
build/temp.linux-x86_64-2.7/context/_coroutine.o -Werror -Wall -Wextra
-Wno-unused-parameter -Wno-missing-field-initializers -Wundef -Wshadow
-Wcast-align -Wwrite-strings -Wredundant-decls -Wmissing-prototypes
-Wmissing-declarations -Wstrict-prototypes
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c context/cocore.c
-o build/temp.linux-x86_64-2.7/context/cocore.o -Werror -Wall -Wextra
-Wno-unused-parameter -Wno-missing-field-initializers -Wundef -Wshadow
-Wcast-align -Wwrite-strings -Wredundant-decls -Wmissing-prototypes
-Wmissing-declarations -Wstrict-prototypes
context/cocore.c: In function ‘delete_stack’:
context/cocore.c:326:5: error: variable ‘_qzz_res’ set but not used
[-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
error: command 'gcc' failed with exit status 1

   Add the  the extra compile arguments in setup.py with
-Wno-unused-but-set-variable, then the building cothread process can
be done.

  I am not sure this is the right approach, because of -Werror arg in
setup.py. So please tell me it might be ok or not in order to use the
cothread in my machine. I am using the Debian stable with the most
up-to-date one and gcc is gcc (Debian 4.7.2-5) 4.7.2


  thanks,
  Han


-- 
Jeong Han Lee, Dr.rer.nat.
---------------------------
Accelerator Systems Division
Rare Isotope Science Project
Institute for Basic Science
Daejeon, South Korea
---------------------------
tel  : +82-42-878-8733
fax  : +82-42-878-8799


Replies:
RE: compiling issues during building cothread michael.abbott

Navigate by Date:
Prev: Re: galil softIOC lose the galil controller Mi Qingru
Next: RE: compiling issues during building cothread michael.abbott
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Problems with Dynamic Array population Benjamin Franksen
Next: RE: compiling issues during building cothread michael.abbott
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·