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 in dbJLink.c
From: Dirk Zimoch via Core-talk <[email protected]>
To: [email protected]
Date: Tue, 19 Nov 2019 13:42:43 -0000
Also here:

../yajl/yajl_gen.c
../yajl/yajl_gen.c: In function ‘yajl_gen_integer’:
../yajl/yajl_gen.c:205:16: warning: unknown conversion type character ‘l’ in format [-Wformat=]
     sprintf(i, "%lld", number);
                ^
../yajl/yajl_gen.c:205:16: warning: too many arguments for format [-Wformat-extra-args]

and in several locations in dbUnitTest.c, lnkConst.c, lnkCalc.c line
131, lnkDebug.c line 112, testTimeStamp.cpp lines 36 and 52,
lazycounter.cpp line 172.

Also "%zu" does not work in testPVData.cpp:

../../testApp/pv/testPVData.cpp: In function ‘void testSizes()’:
../../testApp/pv/testPVData.cpp:43:58: warning: unknown conversion type character ‘z’ in format [-Wformat=]
 #define SHOW(T) testDiag("sizeof(" #T ")==%zu", sizeof(T))
                                                          ^
../../testApp/pv/testPVData.cpp:44:5: note: in expansion of macro ‘SHOW’
     SHOW(Field);
     ^
and in blockingUDPTransport.cpp:

In file included from ../../src/remote/blockingUDPTransport.cpp:29:0:
../../src/remote/blockingUDPTransport.cpp: In member function ‘bool epics::pvAccess::BlockingUDPTransport::send(const char*, size_t, const osiSockAddr&)’:
../../src/utils/pv/logger.h:48:73: warning: unknown conversion type character ‘z’ in format [-Wformat=]
 #define LOG(level, format, ...) pvAccessLog(level, format, ##__VA_ARGS__)
                                                                         ^
../../src/remote/blockingUDPTransport.cpp:437:9: note: in expansion of macro ‘LOG’
         LOG(logLevelDebug, "UDP Tx (%zu) %s -> %s.",
         ^

as well as in transportRegistry.cpp line 48, codec.cpp line 1610,
responseHandlers.cpp line 2029, pvlist.cpp several lines, testpdb.cpp
line 310.


It seems we have a problem with mingw.

-- 
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:
  New

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 1853148] [NEW] mingw compiler problem in dbJLink.c Dirk Zimoch via Core-talk
Next: [Bug 1853148] Re: mingw compiler problem in dbJLink.c 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 
Navigate by Thread:
Prev: [Bug 1853148] [NEW] mingw compiler problem in dbJLink.c Dirk Zimoch via Core-talk
Next: [Bug 1853148] Re: mingw compiler problem in dbJLink.c 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, 19 Nov 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·