OSX 10.9 PharoVM build failure workarounds

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

OSX 10.9 PharoVM build failure workarounds

Ben Coman

I followed the instructions at https://github.com/pharo-project/pharo-vm
to build the Pharo VM. In generator.image I evaluated...
     PharoVMBuilder buildMacOSX32.
then
     cd ../build
     bash build.sh

After cmake finished its checks, it tried to compile freetype (2.4.9)
but gets errors...

*Generating
/Users/ben/Repos/pharo-vm/results/Pharo.app/Contents/MacOS/Plugins/libfreetype.6.dylib*

clang: warning: no such sysroot directory:
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk'

**fatal error: **'math.h' file not found*


And indeed, I don't have
   ../MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
I have
   ../MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

So updating CMakeLists.txt as follows...
+ set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
+ set(CMAKE_OSX_SYSROOT
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)

- set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
- set(CMAKE_OSX_SYSROOT
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk)

allowed the build to progress further.

=========

Then the build failed getting "too many errors" that looked somewhat
like this...
/Users/ben/Repos/pharo-vm/platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m:208:18:
error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB'
         glTexParameteri(GL_TEXTURE_RECTANGLE_ARB,
GL_TEXTURE_MIN_FILTER, GL_NEAREST);

Tracked down a likely suspect here...
https://codereview.chromium.org/587193005/diff/1/content/browser/compositor/io_surface_layer_mac.mm

And indeed editing...
     platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m

to add...
     #import <OpenGL/gl.h>

gave me a working VM.


=========

Should I log these somewhere ?
cheers -ben

Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] OSX 10.9 PharoVM build failure workarounds

EstebanLM
Hi, 

you have to check the README of https://github.com/pharo-project/pharo-vm :)

Esteban



On 17 Nov 2014, at 16:58, Ben Coman <[hidden email]> wrote:


I followed the instructions at https://github.com/pharo-project/pharo-vm
to build the Pharo VM. In generator.image I evaluated...
   PharoVMBuilder buildMacOSX32.
then
   cd ../build
   bash build.sh

After cmake finished its checks, it tried to compile freetype (2.4.9) but gets errors...

*Generating /Users/ben/Repos/pharo-vm/results/Pharo.app/Contents/MacOS/Plugins/libfreetype.6.dylib*

clang: warning: no such sysroot directory:
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk'

**fatal error: **'math.h' file not found*


And indeed, I don't have
 ../MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
I have
 ../MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

So updating CMakeLists.txt as follows...
+ set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
+ set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)

- set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
- set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk)

allowed the build to progress further.

=========

Then the build failed getting "too many errors" that looked somewhat like this...
/Users/ben/Repos/pharo-vm/platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m:208:18: error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB'
       glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

Tracked down a likely suspect here...
https://codereview.chromium.org/587193005/diff/1/content/browser/compositor/io_surface_layer_mac.mm

And indeed editing...
   platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m

to add...
   #import <OpenGL/gl.h>

gave me a working VM.


=========

Should I log these somewhere ?
cheers -ben

Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] OSX 10.9 PharoVM build failure workarounds

Ben Coman
You've lost me.  That README.md were the instructions I used. Did I miss
something, or do you mean I should add notes to it ?
cheers -ben

Esteban Lorenzano wrote:

> Hi,
>
> you have to check the README of https://github.com/pharo-project/pharo-vm :)
>
> Esteban
>
>
>
>> On 17 Nov 2014, at 16:58, Ben Coman <[hidden email]
>> <mailto:[hidden email]>> wrote:
>>
>>
>> I followed the instructions at https://github.com/pharo-project/pharo-vm
>> to build the Pharo VM. In generator.image I evaluated...
>>    PharoVMBuilder buildMacOSX32.
>> then
>>    cd ../build
>>    bash build.sh
>>
>> After cmake finished its checks, it tried to compile freetype (2.4.9)
>> but gets errors...
>>
>> *Generating
>> /Users/ben/Repos/pharo-vm/results/Pharo.app/Contents/MacOS/Plugins/libfreetype.6.dylib*
>>
>> clang: warning: no such sysroot directory:
>> '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk'
>>
>> **fatal error: **'math.h' file not found*
>>
>>
>> And indeed, I don't have
>>  ../MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
>> I have
>>  ../MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
>>
>> So updating CMakeLists.txt as follows...
>> + set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
>> + set(CMAKE_OSX_SYSROOT
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)
>>
>> - set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
>> - set(CMAKE_OSX_SYSROOT
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk)
>>
>> allowed the build to progress further.
>>
>> =========
>>
>> Then the build failed getting "too many errors" that looked somewhat
>> like this...
>> /Users/ben/Repos/pharo-vm/platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m:208:18:
>> error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB'
>>        glTexParameteri(GL_TEXTURE_RECTANGLE_ARB,
>> GL_TEXTURE_MIN_FILTER, GL_NEAREST);
>>
>> Tracked down a likely suspect here...
>> https://codereview.chromium.org/587193005/diff/1/content/browser/compositor/io_surface_layer_mac.mm
>>
>> And indeed editing...
>>    platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m
>>
>> to add...
>>    #import <OpenGL/gl.h>
>>
>> gave me a working VM.
>>
>>
>> =========
>>
>> Should I log these somewhere ?
>> cheers -ben
>


Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] OSX 10.9 PharoVM build failure workarounds

Ben Coman
Whoops. I need to read it more carefully.  But there is a discrepancy,
it says "Download the latest" and references 10.6.

Ben Coman wrote:

>
> You've lost me.  That README.md were the instructions I used. Did I miss
> something, or do you mean I should add notes to it ?
> cheers -ben
>
> Esteban Lorenzano wrote:
>> Hi,
>> you have to check the README of
>> https://github.com/pharo-project/pharo-vm :)
>>
>> Esteban
>>
>>
>>
>>> On 17 Nov 2014, at 16:58, Ben Coman <[hidden email]
>>> <mailto:[hidden email]>> wrote:
>>>
>>>
>>> I followed the instructions at https://github.com/pharo-project/pharo-vm
>>> to build the Pharo VM. In generator.image I evaluated...
>>>    PharoVMBuilder buildMacOSX32.
>>> then
>>>    cd ../build
>>>    bash build.sh
>>>
>>> After cmake finished its checks, it tried to compile freetype (2.4.9)
>>> but gets errors...
>>>
>>> *Generating
>>> /Users/ben/Repos/pharo-vm/results/Pharo.app/Contents/MacOS/Plugins/libfreetype.6.dylib*
>>>
>>>
>>> clang: warning: no such sysroot directory:
>>> '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk'
>>>
>>>
>>> **fatal error: **'math.h' file not found*
>>>
>>>
>>> And indeed, I don't have
>>>  ../MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
>>> I have
>>>  ../MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
>>>
>>> So updating CMakeLists.txt as follows...
>>> + set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
>>> + set(CMAKE_OSX_SYSROOT
>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)
>>>
>>>
>>> - set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
>>> - set(CMAKE_OSX_SYSROOT
>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk)
>>>
>>>
>>> allowed the build to progress further.
>>>
>>> =========
>>>
>>> Then the build failed getting "too many errors" that looked somewhat
>>> like this...
>>> /Users/ben/Repos/pharo-vm/platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m:208:18:
>>> error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB'
>>>        glTexParameteri(GL_TEXTURE_RECTANGLE_ARB,
>>> GL_TEXTURE_MIN_FILTER, GL_NEAREST);
>>>
>>> Tracked down a likely suspect here...
>>> https://codereview.chromium.org/587193005/diff/1/content/browser/compositor/io_surface_layer_mac.mm 
>>>
>>>
>>> And indeed editing...
>>>    platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m
>>>
>>> to add...
>>>    #import <OpenGL/gl.h>
>>>
>>> gave me a working VM.
>>>
>>>
>>> =========
>>>
>>> Should I log these somewhere ?
>>> cheers -ben
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] OSX 10.9 PharoVM build failure workarounds

EstebanLM
In reply to this post by Ben Coman
well, you missed all the part where it says: 

Install the latest version of XCode and XCode command line tools. Download MacOSX10.6.sdk.zipand put in Xcode SDK folder:

# make sure you're root: sudo su
cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
wget http://files.pharo.org/vm/src/lib/MacOSX10.6.sdk.zip
unzip MacOSX10.6.sdk.zip
rm MacOSX10.6.sdk.zip
cheers, 
Esteban



On 17 Nov 2014, at 17:14, Ben Coman <[hidden email]> wrote:

You've lost me.  That README.md were the instructions I used. Did I miss something, or do you mean I should add notes to it ?
cheers -ben

Esteban Lorenzano wrote:
Hi, you have to check the README of https://github.com/pharo-project/pharo-vm :)
Esteban
On 17 Nov 2014, at 16:58, Ben Coman <[hidden email] <[hidden email]>> wrote:


I followed the instructions at https://github.com/pharo-project/pharo-vm
to build the Pharo VM. In generator.image I evaluated...
  PharoVMBuilder buildMacOSX32.
then
  cd ../build
  bash build.sh

After cmake finished its checks, it tried to compile freetype (2.4.9) but gets errors...

*Generating /Users/ben/Repos/pharo-vm/results/Pharo.app/Contents/MacOS/Plugins/libfreetype.6.dylib*

clang: warning: no such sysroot directory:
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk'

**fatal error: **'math.h' file not found*


And indeed, I don't have
../MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
I have
../MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

So updating CMakeLists.txt as follows...
+ set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
+ set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)

- set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
- set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk)

allowed the build to progress further.

=========

Then the build failed getting "too many errors" that looked somewhat like this...
/Users/ben/Repos/pharo-vm/platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m:208:18: error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB'
      glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

Tracked down a likely suspect here...
https://codereview.chromium.org/587193005/diff/1/content/browser/compositor/io_surface_layer_mac.mm

And indeed editing...
  platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m

to add...
  #import <OpenGL/gl.h>

gave me a working VM.


=========

Should I log these somewhere ?
cheers -ben


Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] OSX 10.9 PharoVM build failure workarounds

EstebanLM
In reply to this post by Ben Coman
it is not a discrepancy, is two different things

1) Install latest Xcode.
2) Download SDL 10.6

:)

Esteban

> On 17 Nov 2014, at 17:17, Ben Coman <[hidden email]> wrote:
>
> Whoops. I need to read it more carefully.  But there is a discrepancy, it says "Download the latest" and references 10.6.
>
> Ben Coman wrote:
>> You've lost me.  That README.md were the instructions I used. Did I miss something, or do you mean I should add notes to it ?
>> cheers -ben
>> Esteban Lorenzano wrote:
>>> Hi,
>>> you have to check the README of https://github.com/pharo-project/pharo-vm :)
>>>
>>> Esteban
>>>
>>>
>>>
>>>> On 17 Nov 2014, at 16:58, Ben Coman <[hidden email] <mailto:[hidden email]>> wrote:
>>>>
>>>>
>>>> I followed the instructions at https://github.com/pharo-project/pharo-vm
>>>> to build the Pharo VM. In generator.image I evaluated...
>>>>   PharoVMBuilder buildMacOSX32.
>>>> then
>>>>   cd ../build
>>>>   bash build.sh
>>>>
>>>> After cmake finished its checks, it tried to compile freetype (2.4.9) but gets errors...
>>>>
>>>> *Generating /Users/ben/Repos/pharo-vm/results/Pharo.app/Contents/MacOS/Plugins/libfreetype.6.dylib*
>>>>
>>>> clang: warning: no such sysroot directory:
>>>> '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk'
>>>>
>>>> **fatal error: **'math.h' file not found*
>>>>
>>>>
>>>> And indeed, I don't have
>>>> ../MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
>>>> I have
>>>> ../MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
>>>>
>>>> So updating CMakeLists.txt as follows...
>>>> + set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
>>>> + set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)
>>>>
>>>> - set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
>>>> - set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk)
>>>>
>>>> allowed the build to progress further.
>>>>
>>>> =========
>>>>
>>>> Then the build failed getting "too many errors" that looked somewhat like this...
>>>> /Users/ben/Repos/pharo-vm/platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m:208:18: error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB'
>>>>       glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
>>>>
>>>> Tracked down a likely suspect here...
>>>> https://codereview.chromium.org/587193005/diff/1/content/browser/compositor/io_surface_layer_mac.mm 
>>>>
>>>> And indeed editing...
>>>>   platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m
>>>>
>>>> to add...
>>>>   #import <OpenGL/gl.h>
>>>>
>>>> gave me a working VM.
>>>>
>>>>
>>>> =========
>>>>
>>>> Should I log these somewhere ?
>>>> cheers -ben
>>>
>


Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] OSX 10.9 PharoVM build failure workarounds

EstebanLM

> On 17 Nov 2014, at 17:20, Esteban Lorenzano <[hidden email]> wrote:
>
> it is not a discrepancy, is two different things
>
> 1) Install latest Xcode.
> 2) Download SDL 10.6
*SDK (typo)


>
> :)
>
> Esteban
>
>> On 17 Nov 2014, at 17:17, Ben Coman <[hidden email]> wrote:
>>
>> Whoops. I need to read it more carefully.  But there is a discrepancy, it says "Download the latest" and references 10.6.
>>
>> Ben Coman wrote:
>>> You've lost me.  That README.md were the instructions I used. Did I miss something, or do you mean I should add notes to it ?
>>> cheers -ben
>>> Esteban Lorenzano wrote:
>>>> Hi,
>>>> you have to check the README of https://github.com/pharo-project/pharo-vm :)
>>>>
>>>> Esteban
>>>>
>>>>
>>>>
>>>>> On 17 Nov 2014, at 16:58, Ben Coman <[hidden email] <mailto:[hidden email]>> wrote:
>>>>>
>>>>>
>>>>> I followed the instructions at https://github.com/pharo-project/pharo-vm
>>>>> to build the Pharo VM. In generator.image I evaluated...
>>>>>  PharoVMBuilder buildMacOSX32.
>>>>> then
>>>>>  cd ../build
>>>>>  bash build.sh
>>>>>
>>>>> After cmake finished its checks, it tried to compile freetype (2.4.9) but gets errors...
>>>>>
>>>>> *Generating /Users/ben/Repos/pharo-vm/results/Pharo.app/Contents/MacOS/Plugins/libfreetype.6.dylib*
>>>>>
>>>>> clang: warning: no such sysroot directory:
>>>>> '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk'
>>>>>
>>>>> **fatal error: **'math.h' file not found*
>>>>>
>>>>>
>>>>> And indeed, I don't have
>>>>> ../MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
>>>>> I have
>>>>> ../MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
>>>>>
>>>>> So updating CMakeLists.txt as follows...
>>>>> + set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
>>>>> + set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)
>>>>>
>>>>> - set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
>>>>> - set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk)
>>>>>
>>>>> allowed the build to progress further.
>>>>>
>>>>> =========
>>>>>
>>>>> Then the build failed getting "too many errors" that looked somewhat like this...
>>>>> /Users/ben/Repos/pharo-vm/platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m:208:18: error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB'
>>>>>      glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
>>>>>
>>>>> Tracked down a likely suspect here...
>>>>> https://codereview.chromium.org/587193005/diff/1/content/browser/compositor/io_surface_layer_mac.mm 
>>>>>
>>>>> And indeed editing...
>>>>>  platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m
>>>>>
>>>>> to add...
>>>>>  #import <OpenGL/gl.h>
>>>>>
>>>>> gave me a working VM.
>>>>>
>>>>>
>>>>> =========
>>>>>
>>>>> Should I log these somewhere ?
>>>>> cheers -ben
>>>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] OSX 10.9 PharoVM build failure workarounds

Ben Coman
In reply to this post by EstebanLM
Okay, got it.  I don't remember installing SDK 10.9 so I had assume it
came as part of XCode (but that could be my failing memory)
Thanks for the clarification.

Now even with my deviation from the instructions, it was fairly straight
forward. Nice setup.
cheers -ben

Esteban Lorenzano wrote:

>  
> it is not a discrepancy, is two different things
>
> 1) Install latest Xcode.
> 2) Download SDK 10.6
>
> :)
>
> Esteban
>
>> On 17 Nov 2014, at 17:17, Ben Coman <[hidden email]> wrote:
>>
>> Whoops. I need to read it more carefully.  But there is a discrepancy, it says "Download the latest" and references 10.6.
>>
>> Ben Coman wrote:
>>> You've lost me.  That README.md were the instructions I used. Did I miss something, or do you mean I should add notes to it ?
>>> cheers -ben
>>> Esteban Lorenzano wrote:
>>>> Hi,
>>>> you have to check the README of https://github.com/pharo-project/pharo-vm :)
>>>>
>>>> Esteban
>>>>
>>>>
>>>>
>>>>> On 17 Nov 2014, at 16:58, Ben Coman <[hidden email] <mailto:[hidden email]>> wrote:
>>>>>
>>>>>
>>>>> I followed the instructions at https://github.com/pharo-project/pharo-vm
>>>>> to build the Pharo VM. In generator.image I evaluated...
>>>>>   PharoVMBuilder buildMacOSX32.
>>>>> then
>>>>>   cd ../build
>>>>>   bash build.sh
>>>>>
>>>>> After cmake finished its checks, it tried to compile freetype (2.4.9) but gets errors...
>>>>>
>>>>> *Generating /Users/ben/Repos/pharo-vm/results/Pharo.app/Contents/MacOS/Plugins/libfreetype.6.dylib*
>>>>>
>>>>> clang: warning: no such sysroot directory:
>>>>> '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk'
>>>>>
>>>>> **fatal error: **'math.h' file not found*
>>>>>
>>>>>
>>>>> And indeed, I don't have
>>>>> ../MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
>>>>> I have
>>>>> ../MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
>>>>>
>>>>> So updating CMakeLists.txt as follows...
>>>>> + set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
>>>>> + set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)
>>>>>
>>>>> - set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
>>>>> - set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk)
>>>>>
>>>>> allowed the build to progress further.
>>>>>
>>>>> =========
>>>>>
>>>>> Then the build failed getting "too many errors" that looked somewhat like this...
>>>>> /Users/ben/Repos/pharo-vm/platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m:208:18: error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB'
>>>>>       glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
>>>>>
>>>>> Tracked down a likely suspect here...
>>>>> https://codereview.chromium.org/587193005/diff/1/content/browser/compositor/io_surface_layer_mac.mm 
>>>>>
>>>>> And indeed editing...
>>>>>   platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m
>>>>>
>>>>> to add...
>>>>>   #import <OpenGL/gl.h>
>>>>>
>>>>> gave me a working VM.
>>>>>
>>>>>
>>>>> =========
>>>>>
>>>>> Should I log these somewhere ?
>>>>> cheers -ben
>
>


Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] OSX 10.9 PharoVM build failure workarounds

Max Leske
You can use my scripts if you like: http://github.com/theseion/stuff.git

I use them to build and update my VMs for libgit2.

On 17.11.2014, at 17:28, Ben Coman <[hidden email]> wrote:

Okay, got it.  I don't remember installing SDK 10.9 so I had assume it came as part of XCode (but that could be my failing memory)
Thanks for the clarification.

Now even with my deviation from the instructions, it was fairly straight forward. Nice setup.
cheers -ben

Esteban Lorenzano wrote:
it is not a discrepancy, is two different things
1) Install latest Xcode. 2) Download SDK 10.6
:)
Esteban
On 17 Nov 2014, at 17:17, Ben Coman <[hidden email]> wrote:

Whoops. I need to read it more carefully.  But there is a discrepancy, it says "Download the latest" and references 10.6.

Ben Coman wrote:
You've lost me.  That README.md were the instructions I used. Did I miss something, or do you mean I should add notes to it ?
cheers -ben
Esteban Lorenzano wrote:
Hi,
you have to check the README of https://github.com/pharo-project/pharo-vm :)

Esteban



On 17 Nov 2014, at 16:58, Ben Coman <[hidden email] <[hidden email]>> wrote:


I followed the instructions at https://github.com/pharo-project/pharo-vm
to build the Pharo VM. In generator.image I evaluated...
 PharoVMBuilder buildMacOSX32.
then
 cd ../build
 bash build.sh

After cmake finished its checks, it tried to compile freetype (2.4.9) but gets errors...

*Generating /Users/ben/Repos/pharo-vm/results/Pharo.app/Contents/MacOS/Plugins/libfreetype.6.dylib*
clang: warning: no such sysroot directory:
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk'
**fatal error: **'math.h' file not found*


And indeed, I don't have
../MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
I have
../MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

So updating CMakeLists.txt as follows...
+ set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
+ set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)
- set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
- set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk)
allowed the build to progress further.

=========

Then the build failed getting "too many errors" that looked somewhat like this...
/Users/ben/Repos/pharo-vm/platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m:208:18: error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB'
     glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

Tracked down a likely suspect here...
https://codereview.chromium.org/587193005/diff/1/content/browser/compositor/io_surface_layer_mac.mm
And indeed editing...
 platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m

to add...
 #import <OpenGL/gl.h>

gave me a working VM.


=========

Should I log these somewhere ?
cheers -ben



Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] OSX 10.9 PharoVM build failure workarounds

stepharo
Could we put a pointer on them in the readme?

Le 17/11/14 18:49, Max Leske a écrit :
You can use my scripts if you like: http://github.com/theseion/stuff.git

I use them to build and update my VMs for libgit2.

On 17.11.2014, at 17:28, Ben Coman <[hidden email]> wrote:

Okay, got it.  I don't remember installing SDK 10.9 so I had assume it came as part of XCode (but that could be my failing memory)
Thanks for the clarification.

Now even with my deviation from the instructions, it was fairly straight forward. Nice setup.
cheers -ben

Esteban Lorenzano wrote:
it is not a discrepancy, is two different things
1) Install latest Xcode. 2) Download SDK 10.6
:)
Esteban
On 17 Nov 2014, at 17:17, Ben Coman <[hidden email]> wrote:

Whoops. I need to read it more carefully.  But there is a discrepancy, it says "Download the latest" and references 10.6.

Ben Coman wrote:
You've lost me.  That README.md were the instructions I used. Did I miss something, or do you mean I should add notes to it ?
cheers -ben
Esteban Lorenzano wrote:
Hi,
you have to check the README of https://github.com/pharo-project/pharo-vm :)

Esteban



On 17 Nov 2014, at 16:58, Ben Coman <[hidden email] <[hidden email]>> wrote:


I followed the instructions at https://github.com/pharo-project/pharo-vm
to build the Pharo VM. In generator.image I evaluated...
 PharoVMBuilder buildMacOSX32.
then
 cd ../build
 bash build.sh

After cmake finished its checks, it tried to compile freetype (2.4.9) but gets errors...

*Generating /Users/ben/Repos/pharo-vm/results/Pharo.app/Contents/MacOS/Plugins/libfreetype.6.dylib*
clang: warning: no such sysroot directory:
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk'
**fatal error: **'math.h' file not found*


And indeed, I don't have
../MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
I have
../MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

So updating CMakeLists.txt as follows...
+ set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
+ set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)
- set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
- set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk)
allowed the build to progress further.

=========

Then the build failed getting "too many errors" that looked somewhat like this...
/Users/ben/Repos/pharo-vm/platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m:208:18: error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB'
     glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

Tracked down a likely suspect here...
https://codereview.chromium.org/587193005/diff/1/content/browser/compositor/io_surface_layer_mac.mm
And indeed editing...
 platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m

to add...
 #import <OpenGL/gl.h>

gave me a working VM.


=========

Should I log these somewhere ?
cheers -ben




Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] OSX 10.9 PharoVM build failure workarounds

Max Leske

On 27.11.2014, at 08:13, stepharo <[hidden email]> wrote:

Could we put a pointer on them in the readme?

Sure. You can also move them to the vm repo if you want. They would probably make more sense there.


Le 17/11/14 18:49, Max Leske a écrit :
You can use my scripts if you like: http://github.com/theseion/stuff.git

I use them to build and update my VMs for libgit2.

On 17.11.2014, at 17:28, Ben Coman <[hidden email]> wrote:

Okay, got it.  I don't remember installing SDK 10.9 so I had assume it came as part of XCode (but that could be my failing memory)
Thanks for the clarification.

Now even with my deviation from the instructions, it was fairly straight forward. Nice setup.
cheers -ben

Esteban Lorenzano wrote:
it is not a discrepancy, is two different things
1) Install latest Xcode. 2) Download SDK 10.6
:)
Esteban
On 17 Nov 2014, at 17:17, Ben Coman <[hidden email]> wrote:

Whoops. I need to read it more carefully.  But there is a discrepancy, it says "Download the latest" and references 10.6.

Ben Coman wrote:
You've lost me.  That README.md were the instructions I used. Did I miss something, or do you mean I should add notes to it ?
cheers -ben
Esteban Lorenzano wrote:
Hi,
you have to check the README of https://github.com/pharo-project/pharo-vm :)

Esteban



On 17 Nov 2014, at 16:58, Ben Coman <[hidden email] <[hidden email]>> wrote:


I followed the instructions at https://github.com/pharo-project/pharo-vm
to build the Pharo VM. In generator.image I evaluated...
 PharoVMBuilder buildMacOSX32.
then
 cd ../build
 bash build.sh

After cmake finished its checks, it tried to compile freetype (2.4.9) but gets errors...

*Generating /Users/ben/Repos/pharo-vm/results/Pharo.app/Contents/MacOS/Plugins/libfreetype.6.dylib*
clang: warning: no such sysroot directory:
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk'
**fatal error: **'math.h' file not found*


And indeed, I don't have
../MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
I have
../MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

So updating CMakeLists.txt as follows...
+ set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
+ set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)
- set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
- set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk)
allowed the build to progress further.

=========

Then the build failed getting "too many errors" that looked somewhat like this...
/Users/ben/Repos/pharo-vm/platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m:208:18: error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB'
     glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

Tracked down a likely suspect here...
https://codereview.chromium.org/587193005/diff/1/content/browser/compositor/io_surface_layer_mac.mm
And indeed editing...
 platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m

to add...
 #import <OpenGL/gl.h>

gave me a working VM.


=========

Should I log these somewhere ?
cheers -ben





Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] OSX 10.9 PharoVM build failure workarounds

EstebanLM
most of your scripts do not have sense anymore :)

- libgit2 is already 0.21 by default, and it is being correctly build 
- same for libssh2
- path links for libraries should be working now
- I would prefer you to make a pull request with the obsolete flags removal. 
- only script that looks relevant in the latests sources is the one for download 10.6 sdk

so no, better not add them (nor adding them to the README)… they where useful 6 months ago, not anymore :)

cheers, 
Esteban


On 28 Nov 2014, at 10:47, Max Leske <[hidden email]> wrote:


On 27.11.2014, at 08:13, stepharo <[hidden email]> wrote:

Could we put a pointer on them in the readme?

Sure. You can also move them to the vm repo if you want. They would probably make more sense there.


Le 17/11/14 18:49, Max Leske a écrit :
You can use my scripts if you like: http://github.com/theseion/stuff.git

I use them to build and update my VMs for libgit2.

On 17.11.2014, at 17:28, Ben Coman <[hidden email]> wrote:

Okay, got it.  I don't remember installing SDK 10.9 so I had assume it came as part of XCode (but that could be my failing memory)
Thanks for the clarification.

Now even with my deviation from the instructions, it was fairly straight forward. Nice setup.
cheers -ben

Esteban Lorenzano wrote:
it is not a discrepancy, is two different things
1) Install latest Xcode. 2) Download SDK 10.6
:)
Esteban
On 17 Nov 2014, at 17:17, Ben Coman <[hidden email]> wrote:

Whoops. I need to read it more carefully.  But there is a discrepancy, it says "Download the latest" and references 10.6.

Ben Coman wrote:
You've lost me.  That README.md were the instructions I used. Did I miss something, or do you mean I should add notes to it ?
cheers -ben
Esteban Lorenzano wrote:
Hi,
you have to check the README of https://github.com/pharo-project/pharo-vm :)

Esteban



On 17 Nov 2014, at 16:58, Ben Coman <[hidden email] <[hidden email]>> wrote:


I followed the instructions at https://github.com/pharo-project/pharo-vm
to build the Pharo VM. In generator.image I evaluated...
 PharoVMBuilder buildMacOSX32.
then
 cd ../build
 bash build.sh

After cmake finished its checks, it tried to compile freetype (2.4.9) but gets errors...

*Generating /Users/ben/Repos/pharo-vm/results/Pharo.app/Contents/MacOS/Plugins/libfreetype.6.dylib*
clang: warning: no such sysroot directory:
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk'
**fatal error: **'math.h' file not found*


And indeed, I don't have
../MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
I have
../MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

So updating CMakeLists.txt as follows...
+ set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
+ set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)
- set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
- set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk)
allowed the build to progress further.

=========

Then the build failed getting "too many errors" that looked somewhat like this...
/Users/ben/Repos/pharo-vm/platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m:208:18: error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB'
     glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

Tracked down a likely suspect here...
https://codereview.chromium.org/587193005/diff/1/content/browser/compositor/io_surface_layer_mac.mm
And indeed editing...
 platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m

to add...
 #import <OpenGL/gl.h>

gave me a working VM.


=========

Should I log these somewhere ?
cheers -ben