Al Zick | 8 May 2012 00:17
Favicon

updating from source, building optimized code, and...

Hi,

I am trying to update a system running NetBSD 4 beta.

My first question is about CVS.

I tried to download 4.0.1 with: cvs checkout -r netbsd-4-0-1 -P src

This doesn't work. I then download the src tar files for 4.0.1 and  
then did:
cd /usr/src
cvs update -Pd

This worked, but I am not sure if it is right.

I am now trying to build userland. What should my mk.conf look like?  
I can't seem to find any documentation on this, except what I have  
found in some emails.

I have a 68060. I have added:
M68060=YES
COPTS+=-O2 -m68060 -Wa,-m68060, -m68851
CFLAGS+=-O2 -m68060 -Wa,-m68060, -m68851
COPTFLAGS+=-O2 -m68060 -Wa,-m68060, -m68851

Is this correct? What does CFLAGS and COPTFLAGS change?

Also, building the kernel, I added this:

maxusers        64
(Continue reading)

John Klos | 16 May 2012 04:11

textproc/expat on netbsd-6 on Amiga

Hmmm... Any clues?

checking whether c++ accepts -g... no
checking how to run the C++ preprocessor... cpp
configure: error: in `/usr/pkgsrc/textproc/expat/work/expat-2.1.0':
configure: error: C++ preprocessor "cpp" fails sanity check
See `config.log' for more details
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/textproc/expat
WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package 
Makefile.
*** Error code 1

...

There are plenty of warnings like:

PKGSRC-WARNING: Something is trying to run the c++ compiler,
PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.

But the real problem appears to be here, even while unlimited on a machine 
with 256 megs:

...
configure:11828: result: no
configure:11869: checking how to run the C++ preprocessor
configure:11935: result: cpp
configure:11955: cpp  conftest.cpp
(Continue reading)

Frank Wille | 16 May 2012 19:49
Picon

Re: textproc/expat on netbsd-6 on Amiga

John Klos wrote:

> Hmmm... Any clues?
>
> checking whether c++ accepts -g... no
> [...]

Does not accept "-g"? That's irritating.

> configure: error: C++ preprocessor "cpp" fails sanity check
> See `config.log' for more details

Is this failure a result of runing out of memory, which you found in the
config.log?

> There are plenty of warnings like:
>
> PKGSRC-WARNING: Something is trying to run the c++ compiler,
> PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package
> Makefile.

You're probably talking about pkgsrc2012Q1?

I see exactly the same problems on a NetBSD/i386 system. They don't really
matter.

> But the real problem appears to be here, even while unlimited on a
> machine with 256 megs:
>
> ...
(Continue reading)

Frank Wille | 16 May 2012 22:39
Picon

Re: textproc/expat on netbsd-6 on Amiga

John Klos wrote:

> But the real problem appears to be here, even while unlimited on a
> machine with 256 megs:
>
> ...
> configure:11828: result: no
> configure:11869: checking how to run the C++ preprocessor
> configure:11935: result: cpp
> configure:11955: cpp  conftest.cpp
> cpp: error trying to exec '/usr/libexec/cc1plus': execv: Cannot
> allocate memory configure:11955: $? = 1

I have successfully built expat-2.0.1 from pkgsrc2012Q1 on my A3000 with
68060 and 128MB. I'm running 6.0beta.

--

-- 
Frank Wille

Frank Wille | 20 May 2012 13:02
Picon

Re: textproc/expat on netbsd-6 on Amiga

John Klos wrote:

On 19.05.12 22:55:03 you wrote:

>>> configure:11828: result: no
>>> configure:11869: checking how to run the C++ preprocessor
>>> configure:11935: result: cpp
>>> configure:11955: cpp  conftest.cpp
>>> cpp: error trying to exec '/usr/libexec/cc1plus': execv: Cannot
>>> allocate memory configure:11955: $? = 1
>> [...]
> cc (NetBSD nb2 20110806) 4.5.3
>
> This was tested with netbsd-6 from the end of March and with netbsd-6
> from today - same results.

And with pkgsrc2012Q1 or the current one?

It is a bit strange that I can compile it with a 128MB machine, while it
fails with your 256MB one. How large is your swap space?

--

-- 
Frank Wille

John Klos | 20 May 2012 17:51

Re: textproc/expat on netbsd-6 on Amiga

>> cc (NetBSD nb2 20110806) 4.5.3
>>
>> This was tested with netbsd-6 from the end of March and with netbsd-6
>> from today - same results.
>
> And with pkgsrc2012Q1 or the current one?

Current.

> It is a bit strange that I can compile it with a 128MB machine, while it
> fails with your 256MB one. How large is your swap space?

It works on a netbsd-6 mac68k machine with 64 megs, too.

The swap on the 256 meg Amiga is 512 megs. I removed swap and tried 
compiling expat again and ran into the same issue. Next I'll make a kernel 
which uses just 128 megs and try again.

John


Gmane