Question about OS X build scripts

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about OS X build scripts

Richard Taylor-2
Hi

I was just wanting to do a bit of hacking on Gramps again (it has been a
few years). I tried to follow the instructions for getting a build
environment running under OS X at
http://http://www.gramps-project.org/wiki/index.php?title=Using_Gramps_on_Apple_Mac.


Things start to go wrong quite early on in these instructions on OS X
10.6.6. I spent a couple of hours trying to hack my way through but to
no avail, which made me wonder if these instructions are out of date. It
looks like they were written for a 10.5 build.

Before I sink any more time into it can someone tell me if there are
some more up to date instructions somewhere? If someone can walk me
through a successful build I will happily update the website instructions.

Many thanks

Richard

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question about OS X build scripts

John Ralls-2

On Feb 28, 2011, at 1:22 AM, Richard Taylor wrote:

Hi

I was just wanting to do a bit of hacking on Gramps again (it has been a
few years). I tried to follow the instructions for getting a build
environment running under OS X at
http://http://www.gramps-project.org/wiki/index.php?title=Using_Gramps_on_Apple_Mac.


Things start to go wrong quite early on in these instructions on OS X
10.6.6. I spent a couple of hours trying to hack my way through but to
no avail, which made me wonder if these instructions are out of date. It
looks like they were written for a 10.5 build.

Before I sink any more time into it can someone tell me if there are
some more up to date instructions somewhere? If someone can walk me
through a successful build I will happily update the website instructions.

The instructions are quite up-to-date and reflect the procedure used to make the distribution binaries (on a fully up to date 10.6.6 Mac Pro), but a better place to ask for support is at https://lists.sourceforge.net/lists/listinfo/gtk-osx-users.

Regards,
John Ralls

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question about OS X build scripts

Richard Taylor-2
On 28/02/2011 16:16, John Ralls wrote:

>
> On Feb 28, 2011, at 1:22 AM, Richard Taylor wrote:
>
>> Hi
>>
>> I was just wanting to do a bit of hacking on Gramps again (it has been a
>> few years). I tried to follow the instructions for getting a build
>> environment running under OS X at
>> http://http://www.gramps-project.org/wiki/index.php?title=Using_Gramps_on_Apple_Mac.
>>
>>
>> Things start to go wrong quite early on in these instructions on OS X
>> 10.6.6. I spent a couple of hours trying to hack my way through but to
>> no avail, which made me wonder if these instructions are out of date. It
>> looks like they were written for a 10.5 build.
>>
>> Before I sink any more time into it can someone tell me if there are
>> some more up to date instructions somewhere? If someone can walk me
>> through a successful build I will happily update the website instructions.
>
> The instructions are quite up-to-date and reflect the procedure used to
> make the distribution binaries (on a fully up to date 10.6.6 Mac Pro),
> but a better place to ask for support is
> at https://lists.sourceforge.net/lists/listinfo/gtk-osx-users.
>
> Regards,
> John Ralls

John I don't think the problem is with building gtk+ it looks to be more
with the way that the instructions are telling me to use the jhbuild
script.

I followed the instructions to set:

setup_sdk(target="10.5", sdk_version="10.5", architectures=["i386"])

At the end of the initial 'jhbuild bootstrap' I get:

I: some modules (python) were automatically ignored as a sufficient
enough version was found installed on your system. Use --ignore-system
if you want to build them nevertheless.

This is a little worrying as I would have thought that a new version
Python would be needed.

I then get the following:

Bee-2:~ build$ jhbuild build gettext-fw
W: Duplicate repository: ftp.gnu.org
jhbuild build: module "gettext-fw" not found
Usage: jhbuild [ -f config ] command [ options ... ]

This looks like the instructions are suggesting to build something that
is not there, or there is a typo.

If I ignore this problem and press on with the instructions: 'jhbuild
--moduleset=~/gramps-mac/gramps.modules build berkeleydb' builds OK.

Then we do: 'jhbuild build python' which I guess is meant to rebuild
Python with the berkeleydb support:

Bee-2:~ build$ jhbuild build python
W: Duplicate repository: ftp.gnu.org
I: requested module is in the ignore list, nothing to do.

I expect that this is not want is meant to happen.

The next step is:
jhbuild --moduleset=~/gramps-mac/gramps.modules build
meta-gtk-osx-bootstrap meta-gtk-osx-core meta-gtk-osx-python gramps-svn

This gives me:

Bee-2:~ build$ jhbuild --moduleset=gramps-mac/gramps.modules build
meta-gtk-osx-bootstrap meta-gtk-osx-core meta-gtk-osx-python gramps-svn
W: Duplicate repository: ftp.gnu.org
jhbuild build: librsvg2 has a dependency on unknown "libxml2" module
Usage: jhbuild [ -f config ] command [ options ... ]

So now I am stumped.

Regards

Richard


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question about OS X build scripts

John Ralls-2

On Feb 28, 2011, at 9:06 AM, Richard Taylor wrote:

> On 28/02/2011 16:16, John Ralls wrote:
>>
>> On Feb 28, 2011, at 1:22 AM, Richard Taylor wrote:
>>
>>> Hi
>>>
>>> I was just wanting to do a bit of hacking on Gramps again (it has been a
>>> few years). I tried to follow the instructions for getting a build
>>> environment running under OS X at
>>> http://http://www.gramps-project.org/wiki/index.php?title=Using_Gramps_on_Apple_Mac.
>>>
>>>
>>> Things start to go wrong quite early on in these instructions on OS X
>>> 10.6.6. I spent a couple of hours trying to hack my way through but to
>>> no avail, which made me wonder if these instructions are out of date. It
>>> looks like they were written for a 10.5 build.
>>>
>>> Before I sink any more time into it can someone tell me if there are
>>> some more up to date instructions somewhere? If someone can walk me
>>> through a successful build I will happily update the website instructions.
>>
>> The instructions are quite up-to-date and reflect the procedure used to
>> make the distribution binaries (on a fully up to date 10.6.6 Mac Pro),
>> but a better place to ask for support is
>> at https://lists.sourceforge.net/lists/listinfo/gtk-osx-users.
>>
>> Regards,
>> John Ralls
>
> John I don't think the problem is with building gtk+ it looks to be more
> with the way that the instructions are telling me to use the jhbuild
> script.
>
> I followed the instructions to set:
>
> setup_sdk(target="10.5", sdk_version="10.5", architectures=["i386"])
>
> At the end of the initial 'jhbuild bootstrap' I get:
>
> I: some modules (python) were automatically ignored as a sufficient
> enough version was found installed on your system. Use --ignore-system
> if you want to build them nevertheless.
>
> This is a little worrying as I would have thought that a new version
> Python would be needed.
>
> I then get the following:
>
> Bee-2:~ build$ jhbuild build gettext-fw
> W: Duplicate repository: ftp.gnu.org
> jhbuild build: module "gettext-fw" not found
> Usage: jhbuild [ -f config ] command [ options ... ]
>
> This looks like the instructions are suggesting to build something that
> is not there, or there is a typo.
>
> If I ignore this problem and press on with the instructions: 'jhbuild
> --moduleset=~/gramps-mac/gramps.modules build berkeleydb' builds OK.
>
> Then we do: 'jhbuild build python' which I guess is meant to rebuild
> Python with the berkeleydb support:
>
> Bee-2:~ build$ jhbuild build python
> W: Duplicate repository: ftp.gnu.org
> I: requested module is in the ignore list, nothing to do.
>
> I expect that this is not want is meant to happen.
>
> The next step is:
> jhbuild --moduleset=~/gramps-mac/gramps.modules build
> meta-gtk-osx-bootstrap meta-gtk-osx-core meta-gtk-osx-python gramps-svn
>
> This gives me:
>
> Bee-2:~ build$ jhbuild --moduleset=gramps-mac/gramps.modules build
> meta-gtk-osx-bootstrap meta-gtk-osx-core meta-gtk-osx-python gramps-svn
> W: Duplicate repository: ftp.gnu.org
> jhbuild build: librsvg2 has a dependency on unknown "libxml2" module
> Usage: jhbuild [ -f config ] command [ options ... ]
>
> So now I am stumped.

OK, I guess they are a bit out of date. I updated the modulesets a month ago and forgot that I had such detailed instructions on the Gramps wiki page. Bootstrap now builds the right version of gettext, so gettext-fw isn't needed anymore.

If you're building for your own use with OSX 10.6, the included python is good enough and includes bdb.

The lisbrsvg2 dependency on libxml2 needs to be softened to an "after", I think, because libxml2 is provided by bootstrap (which jhbuild doesn't consult when processing later modulesets). Libxml2 is on the skip list for 10.6 because the one provided by OS X is good enough... but that's not germane to librsvg2; the moduleset is now broken. I'll fix that all up this afternoon.

If you want to work on Gramps, though, there's actually no need to build all of the dependencies. Just download Gramps 3.2.5 from sourceforge, checkout Gramps from subversion, and set up your environment (PYTHON_PATH, LD_LOAD_PATH, DYLD_LIBRARY_PATH, and perhaps one or two others that aren't coming immediately to mind) to point at Gramps.app/Contents/Resources, and go to work. Hmm. I should write a little shell script for that...

Regards,
John Ralls
 
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question about OS X build scripts

Richard Taylor-2
On 28/02/2011 17:40, John Ralls wrote:

>
> On Feb 28, 2011, at 9:06 AM, Richard Taylor wrote:
>
>> On 28/02/2011 16:16, John Ralls wrote:
>> [snip]
>>
>> So now I am stumped.
>
> OK, I guess they are a bit out of date. I updated the modulesets a month ago and forgot that I had such detailed instructions on the Gramps wiki page. Bootstrap now builds the right version of gettext, so gettext-fw isn't needed anymore.
>
> If you're building for your own use with OSX 10.6, the included python is good enough and includes bdb.
>
> The lisbrsvg2 dependency on libxml2 needs to be softened to an "after", I think, because libxml2 is provided by bootstrap (which jhbuild doesn't consult when processing later modulesets). Libxml2 is on the skip list for 10.6 because the one provided by OS X is good enough... but that's not germane to librsvg2; the moduleset is now broken. I'll fix that all up this afternoon.
>
> If you want to work on Gramps, though, there's actually no need to build all of the dependencies. Just download Gramps 3.2.5 from sourceforge, checkout Gramps from subversion, and set up your environment (PYTHON_PATH, LD_LOAD_PATH, DYLD_LIBRARY_PATH, and perhaps one or two others that aren't coming immediately to mind) to point at Gramps.app/Contents/Resources, and go to work. Hmm. I should write a little shell script for that...
>

That is probably all I need but it does not appear to be so simple. The
trunk requires autoconf to be run and that appears to need much of the
build system to have been built.

There might be some way around this but I can't see it immediately.

Thanks

Richard




------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question about OS X build scripts

Benny Malengier


2011/2/28 Richard Taylor <[hidden email]>
On 28/02/2011 17:40, John Ralls wrote:
>
> On Feb 28, 2011, at 9:06 AM, Richard Taylor wrote:
>
>> On 28/02/2011 16:16, John Ralls wrote:
>> [snip]
>>
>> So now I am stumped.
>
> OK, I guess they are a bit out of date. I updated the modulesets a month ago and forgot that I had such detailed instructions on the Gramps wiki page. Bootstrap now builds the right version of gettext, so gettext-fw isn't needed anymore.
>
> If you're building for your own use with OSX 10.6, the included python is good enough and includes bdb.
>
> The lisbrsvg2 dependency on libxml2 needs to be softened to an "after", I think, because libxml2 is provided by bootstrap (which jhbuild doesn't consult when processing later modulesets). Libxml2 is on the skip list for 10.6 because the one provided by OS X is good enough... but that's not germane to librsvg2; the moduleset is now broken. I'll fix that all up this afternoon.
>
> If you want to work on Gramps, though, there's actually no need to build all of the dependencies. Just download Gramps 3.2.5 from sourceforge, checkout Gramps from subversion, and set up your environment (PYTHON_PATH, LD_LOAD_PATH, DYLD_LIBRARY_PATH, and perhaps one or two others that aren't coming immediately to mind) to point at Gramps.app/Contents/Resources, and go to work. Hmm. I should write a little shell script for that...
>

That is probably all I need but it does not appear to be so simple. The
trunk requires autoconf to be run and that appears to need much of the
build system to have been built.

There might be some way around this but I can't see it immediately.

If you rename const.py.in into const.py, then you don't need autoconf. At least, on windows that is how they do it.

Benny

Thanks

Richard




------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question about OS X build scripts

John Ralls-2
In reply to this post by Richard Taylor-2

On Feb 28, 2011, at 11:21 AM, Richard Taylor wrote:

> On 28/02/2011 17:40, John Ralls wrote:
>>
>> On Feb 28, 2011, at 9:06 AM, Richard Taylor wrote:
>>
>>> On 28/02/2011 16:16, John Ralls wrote:
>>> [snip]
>>>
>>> So now I am stumped.
>>
>> OK, I guess they are a bit out of date. I updated the modulesets a month ago and forgot that I had such detailed instructions on the Gramps wiki page. Bootstrap now builds the right version of gettext, so gettext-fw isn't needed anymore.
>>
>> If you're building for your own use with OSX 10.6, the included python is good enough and includes bdb.
>>
>> The lisbrsvg2 dependency on libxml2 needs to be softened to an "after", I think, because libxml2 is provided by bootstrap (which jhbuild doesn't consult when processing later modulesets). Libxml2 is on the skip list for 10.6 because the one provided by OS X is good enough... but that's not germane to librsvg2; the moduleset is now broken. I'll fix that all up this afternoon.
>>
>> If you want to work on Gramps, though, there's actually no need to build all of the dependencies. Just download Gramps 3.2.5 from sourceforge, checkout Gramps from subversion, and set up your environment (PYTHON_PATH, LD_LOAD_PATH, DYLD_LIBRARY_PATH, and perhaps one or two others that aren't coming immediately to mind) to point at Gramps.app/Contents/Resources, and go to work. Hmm. I should write a little shell script for that...
>>
>
> That is probably all I need but it does not appear to be so simple. The
> trunk requires autoconf to be run and that appears to need much of the
> build system to have been built.
>
> There might be some way around this but I can't see it immediately.
>

OSX includes autoconf 2.6.1 if you have XCode installed (which you must, or you wouldn't have gcc either), so you should be covered for that.

Anyway, I ran through a clean build and made sure that everything works the way it should -- there were a couple of problems, which I've fixed, and I've fixed up the wiki page to reflect the current modulesets.

Since it looks like a release is coming soon, it's been a useful test to make sure that I'm ready.

Regards,
John Ralls



------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question about OS X build scripts

Richard Taylor-2
On 01/03/2011 05:29, John Ralls wrote:

>
> On Feb 28, 2011, at 11:21 AM, Richard Taylor wrote:
>
>> On 28/02/2011 17:40, John Ralls wrote:
>>>
>>> On Feb 28, 2011, at 9:06 AM, Richard Taylor wrote:
>>>
>>>> On 28/02/2011 16:16, John Ralls wrote:
>>>> [snip]
>>>>
>>>> So now I am stumped.
>>>
>>> OK, I guess they are a bit out of date. I updated the modulesets a month ago and forgot that I had such detailed instructions on the Gramps wiki page. Bootstrap now builds the right version of gettext, so gettext-fw isn't needed anymore.
>>>
>>> If you're building for your own use with OSX 10.6, the included python is good enough and includes bdb.
>>>
>>> The lisbrsvg2 dependency on libxml2 needs to be softened to an "after", I think, because libxml2 is provided by bootstrap (which jhbuild doesn't consult when processing later modulesets). Libxml2 is on the skip list for 10.6 because the one provided by OS X is good enough... but that's not germane to librsvg2; the moduleset is now broken. I'll fix that all up this afternoon.
>>>
>>> If you want to work on Gramps, though, there's actually no need to build all of the dependencies. Just download Gramps 3.2.5 from sourceforge, checkout Gramps from subversion, and set up your environment (PYTHON_PATH, LD_LOAD_PATH, DYLD_LIBRARY_PATH, and perhaps one or two others that aren't coming immediately to mind) to point at Gramps.app/Contents/Resources, and go to work. Hmm. I should write a little shell script for that...
>>>
>>
>> That is probably all I need but it does not appear to be so simple. The
>> trunk requires autoconf to be run and that appears to need much of the
>> build system to have been built.
>>
>> There might be some way around this but I can't see it immediately.
>>
>
> OSX includes autoconf 2.6.1 if you have XCode installed (which you must, or you wouldn't have gcc either), so you should be covered for that.
>
> Anyway, I ran through a clean build and made sure that everything works the way it should -- there were a couple of problems, which I've fixed, and I've fixed up the wiki page to reflect the current modulesets.
>
> Since it looks like a release is coming soon, it's been a useful test to make sure that I'm ready.
>

John

Thanks for your efforts, unfortunately I am still having problems. I
wiped my build user and started again from your updated instructions on
the wiki.

I get as far as the Python build, then I get:

*** Building python *** [1/1]
make
gcc -c -arch i386 -I/Developer/SDKs/MacOSX10.5.sdk/usr/include -isysroot
/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude
-I./Include -I/Users/build/gtk/inst/include
-I/Developer/SDKs/MacOSX10.5.sdk/usr/include  -DPy_BUILD_CORE -o
Modules/python.o ./Modules/python.c
cc1: error: unrecognized command line option "-Wno-long-double"
make: *** [Modules/python.o] Error 1


I did some digging and found some people suggesting that I should be
using gcc-4.0 rather than gcc-4.2. I also found this page that suggests
that a build problem of this nature has been seen before:
http://bugs.python.org/issue6802

Clearly you are not having a problem building Python-2.5.5 so I was
wondering if you have had to do anything to you build environment to fix
this issue?

Thanks

Richard

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question about OS X build scripts

John Ralls-2

On Mar 1, 2011, at 8:42 AM, Richard Taylor wrote:

> On 01/03/2011 05:29, John Ralls wrote:
>>
>> On Feb 28, 2011, at 11:21 AM, Richard Taylor wrote:
>>
>>> On 28/02/2011 17:40, John Ralls wrote:
>>>>
>>>> On Feb 28, 2011, at 9:06 AM, Richard Taylor wrote:
>>>>
>>>>> On 28/02/2011 16:16, John Ralls wrote:
>>>>> [snip]
>>>>>
>>>>> So now I am stumped.
>>>>
>>>> OK, I guess they are a bit out of date. I updated the modulesets a month ago and forgot that I had such detailed instructions on the Gramps wiki page. Bootstrap now builds the right version of gettext, so gettext-fw isn't needed anymore.
>>>>
>>>> If you're building for your own use with OSX 10.6, the included python is good enough and includes bdb.
>>>>
>>>> The lisbrsvg2 dependency on libxml2 needs to be softened to an "after", I think, because libxml2 is provided by bootstrap (which jhbuild doesn't consult when processing later modulesets). Libxml2 is on the skip list for 10.6 because the one provided by OS X is good enough... but that's not germane to librsvg2; the moduleset is now broken. I'll fix that all up this afternoon.
>>>>
>>>> If you want to work on Gramps, though, there's actually no need to build all of the dependencies. Just download Gramps 3.2.5 from sourceforge, checkout Gramps from subversion, and set up your environment (PYTHON_PATH, LD_LOAD_PATH, DYLD_LIBRARY_PATH, and perhaps one or two others that aren't coming immediately to mind) to point at Gramps.app/Contents/Resources, and go to work. Hmm. I should write a little shell script for that...
>>>>
>>>
>>> That is probably all I need but it does not appear to be so simple. The
>>> trunk requires autoconf to be run and that appears to need much of the
>>> build system to have been built.
>>>
>>> There might be some way around this but I can't see it immediately.
>>>
>>
>> OSX includes autoconf 2.6.1 if you have XCode installed (which you must, or you wouldn't have gcc either), so you should be covered for that.
>>
>> Anyway, I ran through a clean build and made sure that everything works the way it should -- there were a couple of problems, which I've fixed, and I've fixed up the wiki page to reflect the current modulesets.
>>
>> Since it looks like a release is coming soon, it's been a useful test to make sure that I'm ready.
>>
>
> John
>
> Thanks for your efforts, unfortunately I am still having problems. I
> wiped my build user and started again from your updated instructions on
> the wiki.
>
> I get as far as the Python build, then I get:
>
> *** Building python *** [1/1]
> make
> gcc -c -arch i386 -I/Developer/SDKs/MacOSX10.5.sdk/usr/include -isysroot
> /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
> -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude
> -I./Include -I/Users/build/gtk/inst/include
> -I/Developer/SDKs/MacOSX10.5.sdk/usr/include  -DPy_BUILD_CORE -o
> Modules/python.o ./Modules/python.c
> cc1: error: unrecognized command line option "-Wno-long-double"
> make: *** [Modules/python.o] Error 1
>
>
> I did some digging and found some people suggesting that I should be
> using gcc-4.0 rather than gcc-4.2. I also found this page that suggests
> that a build problem of this nature has been seen before:
> http://bugs.python.org/issue6802
>
> Clearly you are not having a problem building Python-2.5.5 so I was
> wondering if you have had to do anything to you build environment to fix
> this issue?

Umm, when did you last download and run gtk-osx-build-setup.sh, and from whence did you get it? You should be building Python 2.6.3, not 2.5.5.

Regards,
John Ralls


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question about OS X build scripts

John Ralls-2

On Mar 1, 2011, at 10:38 AM, John Ralls wrote:

>
> On Mar 1, 2011, at 8:42 AM, Richard Taylor wrote:
>
>>
>> John
>>
>> Thanks for your efforts, unfortunately I am still having problems. I
>> wiped my build user and started again from your updated instructions on
>> the wiki.
>>
>> I get as far as the Python build, then I get:
>>
>> *** Building python *** [1/1]
>> make
>> gcc -c -arch i386 -I/Developer/SDKs/MacOSX10.5.sdk/usr/include -isysroot
>> /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
>> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
>> -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude
>> -I./Include -I/Users/build/gtk/inst/include
>> -I/Developer/SDKs/MacOSX10.5.sdk/usr/include  -DPy_BUILD_CORE -o
>> Modules/python.o ./Modules/python.c
>> cc1: error: unrecognized command line option "-Wno-long-double"
>> make: *** [Modules/python.o] Error 1
>>
>>
>> I did some digging and found some people suggesting that I should be
>> using gcc-4.0 rather than gcc-4.2. I also found this page that suggests
>> that a build problem of this nature has been seen before:
>> http://bugs.python.org/issue6802
>>
>> Clearly you are not having a problem building Python-2.5.5 so I was
>> wondering if you have had to do anything to you build environment to fix
>> this issue?
>
> Umm, when did you last download and run gtk-osx-build-setup.sh, and from whence did you get it? You should be building Python 2.6.3, not 2.5.5.
>

Oops, that should be Python 2.6.6 in the current modulesets.

Regards,
John Ralls


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question about OS X build scripts - Success!

Richard Taylor-2
On 01/03/2011 18:52, John Ralls wrote:

>
> On Mar 1, 2011, at 10:38 AM, John Ralls wrote:
>
>>
>> On Mar 1, 2011, at 8:42 AM, Richard Taylor wrote:
>>
>>>
>>> John
>>>
>>> Thanks for your efforts, unfortunately I am still having problems. I
>>> wiped my build user and started again from your updated instructions on
>>> the wiki.
>>>
>>> I get as far as the Python build, then I get:
>>>
>>> *** Building python *** [1/1]
>>> make
>>> gcc -c -arch i386 -I/Developer/SDKs/MacOSX10.5.sdk/usr/include -isysroot
>>> /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
>>> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
>>> -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude
>>> -I./Include -I/Users/build/gtk/inst/include
>>> -I/Developer/SDKs/MacOSX10.5.sdk/usr/include  -DPy_BUILD_CORE -o
>>> Modules/python.o ./Modules/python.c
>>> cc1: error: unrecognized command line option "-Wno-long-double"
>>> make: *** [Modules/python.o] Error 1
>>>
>>>
>>> I did some digging and found some people suggesting that I should be
>>> using gcc-4.0 rather than gcc-4.2. I also found this page that suggests
>>> that a build problem of this nature has been seen before:
>>> http://bugs.python.org/issue6802
>>>
>>> Clearly you are not having a problem building Python-2.5.5 so I was
>>> wondering if you have had to do anything to you build environment to fix
>>> this issue?
>>
>> Umm, when did you last download and run gtk-osx-build-setup.sh, and from whence did you get it? You should be building Python 2.6.3, not 2.5.5.
>>
>
> Oops, that should be Python 2.6.6 in the current modulesets.

I thought that I had downloaded gtk-osx-build-setup.sh on the 28th of
Feb, but grabbing it again clearly shows that it must have been an old
one from last time I did some gramps hacking.

Now when running the bootstrap I get the following:

Making install in python
Making install in .
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh /Users/build/gtk/source/libxslt-1.1.26/install-sh -d
/Library/Python/2.6/site-packages
/Users/build/.local/bin/install-check -m 0644 libxslt.py
/Library/Python/2.6/site-packages
install: /Library/Python/2.6/site-packages/libxslt.py: Permission denied
make[3]: *** [install-data-local] Error 71
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
*** Error during phase install of libxslt: ########## Error running make
install *** [12/13]

This looks like it it using the system python because it has skipped
building python locally.

So I ran:  jhbuild --moduleset=bootstrap.modules buildone --force python
before the bootstrap and that has appeared to solve the problem.

Now everything has built successfully and gramps-svn is running.

Thank you for all your help.

Richard


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel