libftdi Archives

Subject: Re: libftdi 1.1 release candidate (rc1)

From: Matthias Janke <matthias.janke@xxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 28 Jan 2014 15:39:20 +0100
Hi Xiaofan,

seems like the example programs use C99 format specifiers so compiling with
--std=c99 should fix these warnings. According to stackoverflow
(http://stackoverflow.com/questions/4089174/printf-and-long-double) it seems 
that
windows maps long double onto a double, so maybe one should include the fix
proposed by Jason Huntley.

Cheers,
Matthias

Am Tue, 28 Jan 2014 17:43:37 +0800
schrieb Xiaofan Chen <xiaofanc@xxxxxxxxx>:

> On Tue, Jan 28, 2014 at 5:29 PM, Xiaofan Chen <xiaofanc@xxxxxxxxx> wrote:
> > On Tue, Jan 28, 2014 at 11:36 AM, Xiaofan Chen <xiaofanc@xxxxxxxxx> wrote:
> >> On Fri, Jan 24, 2014 at 12:31 AM, Thomas Jarosch
> >> <thomas.jarosch@xxxxxxxxxxxxx> wrote:
> >>> Hello,
> >>>
> >>> I'm pleased to announce the release candidate of libftdi 1.1.
> >>>
> >>>
> >>> Please give it some good testing. Final release is planned for late next
> >>> week.
> >>
> >> There are a few warnings when building under MinGW-w64 with Boost
> >> from nuwen.net (I am not building the Python binding, ftdi-eeprom).
> >> I am not so sure if the warnings are worth being fixed or not.
> >> http://nuwen.net/mingw.html
> >> I think the unit-test program build problem is with nuwen's Boost library.
> >> I will try to build it with another version (MinGW.org and my own Boost
> >> build). There I should be able to build the unit-test program. I think
> >> I can build the Python binding there as well.
> >>
> >> For ftdi-eeprom, I have problems with LIBINTL_INCLUDE_DIR
> >> and LIBINTL_LIB_FOUND. It seems to me the script is not
> >> compatible with either MingW.org or MinGW-w64. Can
> >> we have the option to disable it?
> >>
> >
> > When building under official MinGW.org 32bit toolchain,
> > there are also some warnings. In this case, I am not
> > building the Boost binding, the unit test program and
> > ftdi-eeprom.
> >
> > Again I am not so sure if the warnings need to be fixed.
> > I am using MinGW.org gcc 4.8.1, Doxygen 1.8.6,
> > Python 2.7.5 and CMake 2.8.12.2.
> >
> 
> The following is the build log for the MinGW-w64
> 4.8.1 toolchain from their official web site. I am
> not building the Boost binding, the unit test
> program, ftdi-eeprom and Python binding here.
> 
> C:\work\libftdi\libftdi1-1.1\build_mingw64>mingw32-make
> Scanning dependencies of target docs
> [  6%] Generating doc/html/index.html
> Warning: Tag `SYMBOL_CACHE_SIZE' at line 341 of file 
> C:/work/libftdi/libftdi1-1.
> 1/build_mingw64/Doxyfile has become obsolete.
> To avoid this warning please remove this line from your configuration file or 
> up
> grade it using "doxygen -u"
> [  6%] Built target docs
> Scanning dependencies of target ftdi1
> [ 13%] Building C object src/CMakeFiles/ftdi1.dir/ftdi.c.obj
> [ 20%] Building C object src/CMakeFiles/ftdi1.dir/ftdi_stream.c.obj
> Linking C shared library libftdi1.dll
> [ 20%] Built target ftdi1
> Scanning dependencies of target ftdi1-static
> [ 26%] Building C object src/CMakeFiles/ftdi1-static.dir/ftdi.c.obj
> [ 33%] Building C object src/CMakeFiles/ftdi1-static.dir/ftdi_stream.c.obj
> Linking C static library libftdi1.a
> [ 33%] Built target ftdi1-static
> Scanning dependencies of target baud_test
> [ 40%] Building C object examples/CMakeFiles/baud_test.dir/baud_test.c.obj
> Linking C executable baud_test.exe
> [ 40%] Built target baud_test
> Scanning dependencies of target bitbang
> [ 46%] Building C object examples/CMakeFiles/bitbang.dir/bitbang.c.obj
> C:\work\libftdi\libftdi1-1.1\examples\bitbang.c: In function 'main':
> C:\work\libftdi\libftdi1-1.1\examples\bitbang.c:64:9: warning: unknown 
> conversio
> n type character 'h' in format [-Wformat=]
>          printf("%02hhx ",buf[0]);
>          ^
> C:\work\libftdi\libftdi1-1.1\examples\bitbang.c:64:9: warning: too many 
> argument
> s for format [-Wformat-extra-args]
> Linking C executable bitbang.exe
> [ 46%] Built target bitbang
> Scanning dependencies of target bitbang2
> [ 53%] Building C object examples/CMakeFiles/bitbang2.dir/bitbang2.c.obj
> Linking C executable bitbang2.exe
> [ 53%] Built target bitbang2
> Scanning dependencies of target bitbang_cbus
> [ 60%] Building C object 
> examples/CMakeFiles/bitbang_cbus.dir/bitbang_cbus.c.obj
> 
> Linking C executable bitbang_cbus.exe
> [ 60%] Built target bitbang_cbus
> Scanning dependencies of target bitbang_ft2232
> [ 66%] Building C object 
> examples/CMakeFiles/bitbang_ft2232.dir/bitbang_ft2232.c
> .obj
> Linking C executable bitbang_ft2232.exe
> [ 66%] Built target bitbang_ft2232
> Scanning dependencies of target eeprom
> [ 73%] Building C object examples/CMakeFiles/eeprom.dir/eeprom.c.obj
> Linking C executable eeprom.exe
> [ 73%] Built target eeprom
> Scanning dependencies of target find_all
> [ 80%] Building C object examples/CMakeFiles/find_all.dir/find_all.c.obj
> Linking C executable find_all.exe
> [ 80%] Built target find_all
> Scanning dependencies of target serial_test
> [ 86%] Building C object examples/CMakeFiles/serial_test.dir/serial_test.c.obj
> Linking C executable serial_test.exe
> [ 86%] Built target serial_test
> Scanning dependencies of target simple
> [ 93%] Building C object examples/CMakeFiles/simple.dir/simple.c.obj
> Linking C executable simple.exe
> [ 93%] Built target simple
> Scanning dependencies of target stream_test
> [100%] Building C object examples/CMakeFiles/stream_test.dir/stream_test.c.obj
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c: In function 
> 'readCallback':
> 
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:87:28: warning: unknown 
> conv
> ersion type character 'l' in format [-Wformat=]
>                             delta, start -0x4000, num, (unsigned long 
> long)block
> s);
>                             ^
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:87:28: warning: too many 
> arg
> uments for format [-Wformat-extra-args]
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:102:28: warning: unknown 
> con
> version type character 'l' in format [-Wformat=]
>                             delta, start -0x4000, num, (unsigned long long) 
> bloc
> ks);
>                             ^
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:102:28: warning: too many 
> ar
> guments for format [-Wformat-extra-args]
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c: In function 'main':
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:252:16: warning: unknown 
> con
> version type character 'l' in format [-Wformat=]
>                 skips, (long double)skips/(long double) blocks);
>                 ^
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:252:16: warning: unknown 
> con
> version type character 'L' in format [-Wformat=]
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:252:16: warning: format 
> '%d'
>  expects argument of type 'int', but argument 4 has type 'uint64_t' 
> [-Wformat=]
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:252:16: warning: unknown 
> con
> version type character 'L' in format [-Wformat=]
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:252:16: warning: too many 
> ar
> guments for format [-Wformat-extra-args]
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c: In function 
> 'check_outfile'
> :
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:340:29: warning: unknown 
> con
> version type character 'l' in format [-Wformat=]
>                              (nread-start)/0x4000, start -0x4000, nread, 
> (unsign
> ed long long) blocks);
>                              ^
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:340:29: warning: too many 
> ar
> guments for format [-Wformat-extra-args]
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:354:21: warning: unknown 
> con
> version type character 'l' in format [-Wformat=]
>                      n_errors, (unsigned long long) blocks);
>                      ^
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:354:21: warning: too many 
> ar
> guments for format [-Wformat-extra-args]
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:356:13: warning: unknown 
> con
> version type character 'l' in format [-Wformat=]
>              fprintf(stderr, "%llu blocks all fine\n", (unsigned long long) 
> bloc
> ks);
>              ^
> C:\work\libftdi\libftdi1-1.1\examples\stream_test.c:356:13: warning: too many 
> ar
> guments for format [-Wformat-extra-args]
> Linking C executable stream_test.exe
> [100%] Built target stream_test
> 
> 
> 
> 


-- 
---------------------------------------------------------------------
 Dipl.-Phys. Matthias Janke

 Physikalisches Institut der Universität Heidelberg
 Im Neunheimer Feld 226
 69120 Heidelberg
 Deutschland

 Tel:    +49 (6221) 54 19 45 6
 Fax:    +49 (6221) 54 19 54 0
 E-Mail: matthias.janke@xxxxxxxxxxxxxxxxxxxxxxx

 Büro: 02.209
---------------------------------------------------------------------

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx

Current Thread