EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: [Bug 1853148] Re: mingw compiler problem with printf/scanf formats
From: Dirk Zimoch via Core-talk <[email protected]>
To: [email protected]
Date: Thu, 21 Nov 2019 13:59:03 -0000
I have now installed mingw on my local PC (RHEL-7)
gcc version 4.9.3 20150626 (Fedora MinGW 4.9.3-1.el7) (GCC) 

I see the format problem here as well and adding
-D__USE_MINGW_ANSI_STDIO does not help. Same as in Andrews's case.

So I wrote at test program that uses those offending formats, compiled
it with mingw 32 and 64 bit and run it on Windows 10. No problem.
Formats are interpreted correctly.

So it seems that "only" the warnings are wrong. I suggest to add -Wno-
format to the mingw configurations to silence the warnings (optimally
dependent on the mingw version but that is a bit hard to do -- and has
some overhead cost).

-- 
You received this bug notification because you are a member of EPICS
Core Developers, which is subscribed to EPICS Base.
Matching subscriptions: epics-core-list-subscription
https://bugs.launchpad.net/bugs/1853148

Title:
  mingw compiler problem with printf/scanf formats

Status in EPICS Base:
  Triaged

Bug description:
  ../db/dbJLink.c: In function ‘dbjl_integer’:
  ../db/dbJLink.c:136:16: warning: unknown conversion type character ‘l’ in format [-Wformat=]
           printf("dbjl_integer(%s@%p, %lld)\n",
                  ^
  ../db/dbJLink.c:136:16: warning: too many arguments for format [-Wformat-extra-args]

  
  It seems that mingw does not like "%lld".

To manage notifications about this bug go to:
https://bugs.launchpad.net/epics-base/+bug/1853148/+subscriptions

References:
[Bug 1853148] [NEW] mingw compiler problem in dbJLink.c Dirk Zimoch via Core-talk

Navigate by Date:
Prev: [Bug 1853168] Re: undefined reference to `clock_gettime' Dirk Zimoch via Core-talk
Next: Build failed in Jenkins: epics-base-3.15-win32-test #250 APS Jenkins via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: [Bug 1853148] Re: mingw compiler problem with printf/scanf formats mdavidsaver via Core-talk
Next: [Bug 1853168] [NEW] undefined reference to `clock_gettime' Dirk Zimoch via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
ANJ, 21 Nov 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·