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  <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: FW: problem compiling edm
From: "Sinclair, John William" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 2 Feb 2017 17:03:10 +0000

-----Original Message-----
From: Sinclair, John William 
Sent: Thursday, February 02, 2017 11:13 AM
To: 'Pierrick Hanlet'
Subject: RE: problem compiling edm

I believe I added the following to the makefile locally for newer versions of gcc:

  USR_CXXFLAGS += -fpermissive -Wno-narrowing -Wno-write-strings -Wno-unused-but-set-variable

John Sinclair

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Pierrick Hanlet
Sent: Thursday, February 02, 2017 9:16 AM
To: [email protected]
Subject: problem compiling edm

I've a new pc on which I'm running Fedora release 25.  I'm using base 3.15.5.

I'm attempting to build edm, but whilst attempting to compile, I get:

make[2]: Entering directory
'/home/epics/epicsDEV/extensions/src/edm/lib/O.linux-x86_64'
/usr/bin/g++  -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_  -DUNIX  
-Dlinux     -O3 -g   -Wall -DSINGLE_THREADED=1 -D__epics__=1  
-mtune=generic     -m64 -fPIC -I. -I../O.Common -I. -I. -I.. 
-I../../../../include/edm/compiler/gcc
-I../../../../include/edm/os/Linux -I../../../../include/edm -I/home/epics/epicsDEV/base/include/compiler/gcc
-I/home/epics/epicsDEV/base/include/os/Linux
-I/home/epics/epicsDEV/base/include 
-I/home/epics/epicsDEV/extensions/include        -I../../util 
-I../../lib -I/usr/include -I/usr/include    -c ../cursor.cc
../cursor.cc: In member function ‘void cursorClass::create(Display*, Window, Colormap)’:
../cursor.cc:82:50: error: narrowing conversion of ‘224’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
                                                   ^
../cursor.cc:82:50: error: narrowing conversion of ‘224’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
../cursor.cc:82:50: error: narrowing conversion of ‘224’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] and many more lines of the same.

I can't find this problem in tech-talk, nor with a web search. Has anyone run into this problem and if so, how did you resolve it?
Many thanks,
Pierrick




References:
problem compiling edm Pierrick Hanlet

Navigate by Date:
Prev: Re: problem compiling edm S. Banerian
Next: Re: problem compiling edm Pierrick Hanlet
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: Re: problem compiling edm S. Banerian
Next: Re: problem compiling edm Pierrick Hanlet
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 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·