[tex-live] compilation error when compiling TeX Live on Windows 64 bits

Angelo Graziosi angelo.graziosi at alice.it
Sat Jul 9 17:05:14 CEST 2016


This patch seems to fix the issue:

--- lcdf-typetools/lcdf-typetools-src/liblcdf/error.cc.orig 
2016-06-22 08:25:09.000000000 +0200
+++ lcdf-typetools/lcdf-typetools-src/liblcdf/error.cc  2016-07-09 
16:48:14.693359300 +0200
@@ -681,7 +681,12 @@
             }
             void* v = va_arg(val, void*);
             s2 = numbuf + NUMBUF_SIZE;
+#ifdef __MINGW32__
+           s1 = do_number((size_t) v, (char*) s2, 16, flags);
+#else
             s1 = do_number((unsigned long) v, (char*) s2, 16, flags);
+#endif /* __MINGW32__ */
+
             s1 = do_number_flags((char*) s1, (char*) s2, 16, flags | 
cf_alternate_form, precision, field_width);
             break;
         }

Let's see now when the build stops.. :)


Angelo



Il 09/07/2016 16:22, Angelo Graziosi ha scritto:
> Ciao Martin,
>
> Martin Gieseking wrote:
>> As a quick workaround, it should be enough to rename dvisvgm's Process.h
>> and to adapt the #includes in FileFinder.cpp, MetafontWrapper.cpp, and
>> Process.cpp accordingly.
>
> I have applied these suggestions and indeed they fix that build error,
> the build continues and then stops at:
>
> [...]
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo error.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -Wreturn-type -Wno-unknown-pragmas -Wno-write-strings
> -DHAVE_CONFIG_H -I.
> -I../../../../../texk/lcdf-typetools/lcdf-typetools-src/liblcdf -I../..
> -I../../../../../texk/lcdf-typetools/lcdf-typetools-src/liblcdf/../include
> -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1  -march=x86-64
> -mtune=generic -O2 -pipe -MT error.o -MD -MP -MF $depbase.Tpo -c -o
> error.o
> ../../../../../texk/lcdf-typetools/lcdf-typetools-src/liblcdf/error.cc &&\
> mv -f $depbase.Tpo $depbase.Po
> ../../../../../texk/lcdf-typetools/lcdf-typetools-src/liblcdf/error.cc:
> In static member function 'static String ErrorHandler::vxformat(int,
> const char*, va_list)':
> ../../../../../texk/lcdf-typetools/lcdf-typetools-src/liblcdf/error.cc:684:37:
> error: cast from 'void*' to 'long unsigned int' loses precision
> [-fpermissive]
>       s1 = do_number((unsigned long) v, (char*) s2, 16, flags);
>                                      ^
> depbase=`echo filename.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -Wreturn-type -Wno-unknown-pragmas -Wno-write-strings
> -DHAVE_CONFIG_H -I.
> -I../../../../../texk/lcdf-typetools/lcdf-typetools-src/liblcdf -I../..
> -I../../../../../texk/lcdf-typetools/lcdf-typetools-src/liblcdf/../include
> -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1  -march=x86-64
> -mtune=generic -O2 -pipe -MT filename.o -MD -MP -MF $depbase.Tpo -c -o
> filename.o
> ../../../../../texk/lcdf-typetools/lcdf-typetools-src/liblcdf/filename.cc &&\
>
> mv -f $depbase.Tpo $depbase.Po
> make[6]: *** [Makefile:451: error.o] Error 1
>
>
> Ciao,
>  Angelo.


More information about the tex-live mailing list