You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Tal Daniel <ta...@gmail.com> on 2013/09/26 22:21:18 UTC

Building for MAC OS, gcc 4.0

Following the Building guide for MAC, I need help.
My gcc version is 4.2, and the configure script outputs a warning that it
needs 4.0.
Is it a blocker? Do I need to install another gcc?

> ...

checking the GNU gcc compiler version... configure: error: You need to use
> the gcc-4.0 compiler (gcc 4.2.1 won't work with the MacOSX10.4u.sdk) - set
> CC accordingly
>

Guide I'm following step-by-step:
http://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_MacOSX


I'd be glad if someone can be a guide on the build process, because I'm a
bit lost from the autoconf step onwards.

Thanks,
Tal

Re: Building for MAC OS, gcc 4.0

Posted by Herbert Duerr <hd...@apache.org>.
On 27.09.2013 13:39, Tal Daniel wrote:
> Thank you Herbert, I'm using Xcode 3.2.6, with gcc 4.2, so I'll wait with
> your branch.

Oh, if you already XCode 3 then you're probably almost all set: Please check
	ls -l /usr/bin/gcc*
AFAIK on a typical XCode3 system there should be gcc-4.0 and gcc-4.2. I 
can't remember whether there was an install option to install the older 
version.

If I read the configure script correctly it tries to find this gcc-4.0 
version and would use it if it was there.

Regarding the 10.4 SDK I'm quite sure it was optional with XCode3's 
package installer. That one defaults to only install SDK 10.5 and 10.6. 
I you'll have 10.4 you are probably only two hours away from your own 
AOO build! :-)

> Thanks for the invite.
> Today I've managed to install & switch to gcc 4.0 using MacPorts

I'm not sure if the MacPorts gcc 4.0 will work. Better check whether the 
older compiler version was an optional part of XCode3 and use that if 
possible.

> (I'll update the Guide, when I'm done).

Wonderful, thanks in advance!

Herbert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: Building for MAC OS, gcc 4.0

Posted by Tal Daniel <ta...@gmail.com>.
Thank you Herbert, I'm using Xcode 3.2.6, with gcc 4.2, so I'll wait with
your branch.
Thanks for the invite.
Today I've managed to install & switch to gcc 4.0 using MacPorts (I'll
update the Guide, when I'm done).


On Fri, Sep 27, 2013 at 12:30 PM, Herbert Duerr <hd...@apache.org> wrote:

> Hi Tal,
>
>
> On 26.09.2013 22:21, Tal Daniel wrote:
>
>> Following the Building guide for MAC, I need help.
>> My gcc version is 4.2, and the configure script outputs a warning that it
>> needs 4.0.
>> Is it a blocker? Do I need to install another gcc?
>>
>>  ...
>>>
>>
>> checking the GNU gcc compiler version... configure: error: You need to use
>>
>>> the gcc-4.0 compiler (gcc 4.2.1 won't work with the MacOSX10.4u.sdk) -
>>> set
>>> CC accordingly
>>>
>>
> GCC 4.2 on Mac means that you are probably using XCode4. Building our
> official releases still requires XCode3 with its gcc4.0. If installing the
> older XCode3 with the OSX10.4 SDK is possible for you then this would be
> the fastest solution to get a build.
>
> We/Me are working on supporting newer MacOSX build environments. If you
> are adventurous you might want to try out my "rejuventate01" branch [1]. As
> you saw the build requirements for our current OSX release are so ancient
> that there are very few developers left with such an old environment. The
> rejuvenation of the OSX platform support is really needed. Be warned: The
> branch is experimental, unfinished and has some rough edges. It already
> produces quite usable binaries [2]. Having other developers work on the
> branch too would be great. I hope I'll find the time to get back into it
> again soon.
>
> [1] http://svn.apache.org/repos/**asf/openoffice/branches/**rejuvenate01/<http://svn.apache.org/repos/asf/openoffice/branches/rejuvenate01/>
> [2] http:http://people.apache.org/**~hdu/AOO_Mac64_rejuv.dmg<http://people.apache.org/~hdu/AOO_Mac64_rejuv.dmg>
>
> If you're interested I suggest to check this branch out, set the
> environment variables
>         CC=`xcrun -f clang` -arch x86_64
>         CXX=`xcrun -f clang++` -arch x86_64
> and then continue with [3]
>
> [3] http://wiki.openoffice.org/**wiki/Documentation/Building_**
> Guide/Building_on_MacOSX#**Build_environment_with_**enabled_category-b_**
> dependencies<http://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_MacOSX#Build_environment_with_enabled_category-b_dependencies>
>
>  Guide I'm following step-by-step:
>> http://wiki.openoffice.org/**wiki/Documentation/Building_**
>> Guide/Building_on_MacOSX<http://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_MacOSX>
>> I'd be glad if someone can be a guide on the build process, because I'm a
>> bit lost from the autoconf step onwards.
>>
>
> The building guide is good. I updated it to make the XCode3/SDK10.4
> requirement more prominent.
>
> Herbert
>


-- 
טל

Re: Building for MAC OS, gcc 4.0

Posted by Herbert Duerr <hd...@apache.org>.
Hi Tal,

On 26.09.2013 22:21, Tal Daniel wrote:
> Following the Building guide for MAC, I need help.
> My gcc version is 4.2, and the configure script outputs a warning that it
> needs 4.0.
> Is it a blocker? Do I need to install another gcc?
>
>> ...
>
> checking the GNU gcc compiler version... configure: error: You need to use
>> the gcc-4.0 compiler (gcc 4.2.1 won't work with the MacOSX10.4u.sdk) - set
>> CC accordingly

GCC 4.2 on Mac means that you are probably using XCode4. Building our 
official releases still requires XCode3 with its gcc4.0. If installing 
the older XCode3 with the OSX10.4 SDK is possible for you then this 
would be the fastest solution to get a build.

We/Me are working on supporting newer MacOSX build environments. If you 
are adventurous you might want to try out my "rejuventate01" branch [1]. 
As you saw the build requirements for our current OSX release are so 
ancient that there are very few developers left with such an old 
environment. The rejuvenation of the OSX platform support is really 
needed. Be warned: The branch is experimental, unfinished and has some 
rough edges. It already produces quite usable binaries [2]. Having other 
developers work on the branch too would be great. I hope I'll find the 
time to get back into it again soon.

[1] http://svn.apache.org/repos/asf/openoffice/branches/rejuvenate01/
[2] http:http://people.apache.org/~hdu/AOO_Mac64_rejuv.dmg

If you're interested I suggest to check this branch out, set the 
environment variables
	CC=`xcrun -f clang` -arch x86_64
	CXX=`xcrun -f clang++` -arch x86_64
and then continue with [3]

[3] 
http://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_MacOSX#Build_environment_with_enabled_category-b_dependencies

> Guide I'm following step-by-step:
> http://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_MacOSX
>
>
> I'd be glad if someone can be a guide on the build process, because I'm a
> bit lost from the autoconf step onwards.

The building guide is good. I updated it to make the XCode3/SDK10.4 
requirement more prominent.

Herbert


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org