Building PharoVM on Windows - Failure with freetype2

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Building PharoVM on Windows - Failure with freetype2

philippeback
 
Hello,

I am trying to build the pharo vm from the github sources.

The toolchain is okay and built quite a significant part of the VM.

It now fails at building freetype with:

In file included from c:\mingw\include\unistd.h:36:0,
                 from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/
freetype2/freetype-2.4.9/src/gzip/zconf.h:245,
                 from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/
freetype2/freetype-2.4.9/src/gzip/zlib.h:34,
                 from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/
freetype2/freetype-2.4.9/src/gzip/ftgzip.c:66:
c:\mingw\include\io.h:301:1: error: unknown type name 'off64_t'
 __CRT_INLINE off64_t lseek64 (int, off64_t, int);
 ^
c:\mingw\include\io.h:301:36: error: unknown type name 'off64_t'
 __CRT_INLINE off64_t lseek64 (int, off64_t, int);
                                    ^
c:\mingw\include\io.h:302:1: error: unknown type name 'off64_t'
 __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
 ^
c:\mingw\include\io.h:302:39: error: unknown type name 'off64_t'
 __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
                                       ^
In file included from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/
freetype2/freetype-2.4.9/src/gzip/zconf.h:245:0,
                 from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/
freetype2/freetype-2.4.9/src/gzip/zlib.h:34,
                 from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/
freetype2/freetype-2.4.9/src/gzip/ftgzip.c:66:
c:\mingw\include\unistd.h:65:20: error: unknown type name 'off_t'
 int ftruncate(int, off_t);
                    ^
make[3]: *** [/C/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/freetype
2/freetype-2.4.9/objs/ftgzip.lo] Error 1
make[2]: *** [thirdparty/out/lib/libfreetype.dll.a] Error 2
make[1]: *** [thirdParty/freetype2/CMakeFiles/freetype2.dir/all] Error 2
make: *** [all] Error 2


Clues?

Phil
Reply | Threaded
Open this post in threaded view
|

Re: Building PharoVM on Windows - Failure with freetype2

Henrik Sperre Johansen
 
http://sourceforge.net/p/mingw/bugs/2104/

In other words, FreeType probably specifies -std=c99 somewhere.
The MinGW folks have recently decided strict means strict, so in newer versions no longer allows doing that and still use off_t.

To build currently without doing any manual code changes, you’d currently need to  download an older version of MinGW.
I seem to recall there being other bugs requiring manual changes anyhow though.
(Or check if there’s a newer release of Freetype with the usage changed)

Cheers,
Henry

On 19 Nov 2013, at 12:25 , [hidden email] wrote:

Hello,

I am trying to build the pharo vm from the github sources.

The toolchain is okay and built quite a significant part of the VM.

It now fails at building freetype with:

In file included from c:\mingw\include\unistd.h:36:0,
                 from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/
freetype2/freetype-2.4.9/src/gzip/zconf.h:245,
                 from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/
freetype2/freetype-2.4.9/src/gzip/zlib.h:34,
                 from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/
freetype2/freetype-2.4.9/src/gzip/ftgzip.c:66:
c:\mingw\include\io.h:301:1: error: unknown type name 'off64_t'
 __CRT_INLINE off64_t lseek64 (int, off64_t, int);
 ^
c:\mingw\include\io.h:301:36: error: unknown type name 'off64_t'
 __CRT_INLINE off64_t lseek64 (int, off64_t, int);
                                    ^
c:\mingw\include\io.h:302:1: error: unknown type name 'off64_t'
 __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
 ^
c:\mingw\include\io.h:302:39: error: unknown type name 'off64_t'
 __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
                                       ^
In file included from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/
freetype2/freetype-2.4.9/src/gzip/zconf.h:245:0,
                 from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/
freetype2/freetype-2.4.9/src/gzip/zlib.h:34,
                 from c:/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/
freetype2/freetype-2.4.9/src/gzip/ftgzip.c:66:
c:\mingw\include\unistd.h:65:20: error: unknown type name 'off_t'
 int ftruncate(int, off_t);
                    ^
make[3]: *** [/C/MinGW/msys/1.0/home/Philippe/pharo-vm/build/thirdparty/freetype
2/freetype-2.4.9/objs/ftgzip.lo] Error 1
make[2]: *** [thirdparty/out/lib/libfreetype.dll.a] Error 2
make[1]: *** [thirdParty/freetype2/CMakeFiles/freetype2.dir/all] Error 2
make: *** [all] Error 2


Clues?

Phil


signature.asc (859 bytes) Download Attachment