Hello,

> $ cd /usr/ports/lang/gcc/4.2
> $ FLAVOR="c++ fortran objc" make

thanks, it's compiling now... But... what is that supposed to do,
compared to simply "make"? Can you please elaborate a bit? What kind
(flavour) of gcc42 will I be "left with"? Remind that this is
"newbies" and not misc (this was the reason for posting here, because
I assumed there would be too many basic things to ask), and even if I
have been using openbsd for everything for three years already, there
are many things I still do not understand. "I am not a technician", I
am a Physicist, but I do not put this forward as a (ridiculous)
argument, I want to know and understand.

As for your other statements: I have already built openoffice 2.4.2
from ports from scratch, including java etc... It's good that I made a
20G (!) /usr partition, because openoffice 2.4.2 took something like
70% of it when building. Not bad. The compilation took some 8 hours,
yes.
Why do I need openoffice3, then, if I compiled successfully 2.4.2? I
found that it was buggy. Some pop-up menus were unclickeable (I
apologise for the barbarism.

Best,

Pau

2009/4/26 Stuart Henderson <[email protected]>:
> On 2009-04-25, Antoine Jacoutot <[email protected]> wrote:
>> On Sat, 25 Apr 2009, Pau wrote:
>>
>>> Hello,
>>>
>>> I tried to compile openoffice3 from ports in 4.5 after a fresh install
>>> from the CDs. It gave me the following problem:
>>>
>>> > ===>  Patching for gcc-4.2.20070307
>>> > cd 
>>> > /usr/ports/lang/gcc/4.2/w-gcc-4.2.20070307/gcc-4.2-20070307/libstdc++-v3
>>> > && AUTOCONF_VERSION=2.59 autoconf
>>> > ===>  Configuring for gcc-4.2.20070307
>>> > loading site script /usr/ports/infrastructure/db/config.site
>>> > creating cache ./config.cache
>>> > checking host system type... i386-unknown-openbsd4.5
>>> > checking target system type... i386-unknown-openbsd4.5
>>> > checking build system type... i386-unknown-openbsd4.5
>>> > checking for a BSD compatible install... /usr/bin/install -c -o root -g 
>>> > bin
>>> > checking whether ln works... yes
>>> > checking whether ln -s works... yes
>>> > checking for gcc... /usr/ports/lang/gcc/4.2/w-gcc-4.2.20070307/bin/egcc
>>> > checking whether the C compiler
>>> > (/usr/ports/lang/gcc/4.2/w-gcc-4.2.20070307/bin/egcc -O2 -g ) works...
>>> > no
>>> > configure: error: installation or configuration problem: C compiler
>>> > cannot create executables.
>>>
>>> I asked in ports@ and got the following answer:
>>>
>>> "You need /usr/lib/libc.so.42.0
>>> Of course, the doc says that you should use a package..."
>>
>> You either need to get and install /usr/lib/libc.so.42.0 from a previous
>> OpenBSD version because this lib was used to bootstrap ada.
>> Or, you can wait for 4.5 to came out and install gcc4 from package.
>>
>>
>
> openoffice3 is *huge*. it will probably take more than 12 hours to
> build, very much more if you don't have enough ram or have a slow cpu.
> that is on top of gcc 4.2, the JDK and other dependencies.
> it's definitely recommended to use the packages for this one if
> you possibly can.
>
> that said, and note that I haven't tested this, but you should be
> able to build gcc 4.2 like this:
>
> $ cd /usr/ports/lang/gcc/4.2
> $ FLAVOR="c++ fortran objc" make
>
> this is the default on cpu architectures other than i386 anyway so,
> for example, if you're trying to build on amd64 you won't run into
> this problem in the first place.
>
> you will also need to adjust the amount of memory that a process is
> permitted to use by adjusting the resource limits in login.conf.
> increase datasize-max for the class your login account uses, and
> either bump it up using "ulimit -d <number of K>", or by increasing
> datasize-cur as well. you will need to logout and log back in for
> this change to take effect. (if you're building ports as root,
> first look at the various ports tutorials and learn about setting
> SUDO in /etc/mk.conf, and if you still want to build as root,
> you need to adjust the login.conf entry for the class "daemon"
> which is also used for software run from /etc/rc.local).
>
>
> _______________________________________________
> Openbsd-newbies mailing list
> [email protected]
> http://mailman.theapt.org/listinfo/openbsd-newbies
>



-- 
Let there be peace on earth. And let it begin with misc
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to