Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to build netbsd with pcc?

On Sun, 22 May 2011, Iain Hibbert wrote:

> On Sat, 21 May 2011, Rhialto wrote:
> > x86_64--netbsd-install: x86_64--netbsd-cpp: stat: No such file or directory
> >
> > What am I missing? I removed my obj and destdirs but not the tooldir.
> this looks like a nbmake issue that was fixed a while ago, what source
> versions was this?

Hm, ok.. I see it also on i386-current with a clean tools dir. It seems
to be that the following happens when using -j1

        ==> top
        cd cc && make all
        ====> cc
        cd cc && make all
        ======> cc/cc
        <builds ok>
        ====> cc
        ==> top
        cd cc && make install
        ====> cc
        cd cc && make install
        ======> cc
        <install ok>
        ====> cc
        cd cpp && make install
        ======> cc/cpp
        <fails, have not actually built here>

so you should be able to work around it in the meantime by using -j2 (even
with UP machines, I think nbmake handles things slightly differently),
though as I noted before that version of pcc is a year old and much work
was done in the meantime, including that the pcc Makefiles were tweaked
since that pcc version was imported and the newer ones don't seem to have
the same issue with nbmake..

to update to a newer version of pcc, try the following

 cd src/external/bsd/pcc
 cvs -d -f checkout -P -d 
work -N pcc pcc-libs
 sh ./
 make && make install

that should get you a useable /usr/bin/pcc which make will use if you
supply CC=pcc, and/or if you remove the /var/obj/tools/pcc directory and
rebuild tools with -V HAVE_PCC= then you get a tool version.


Home | Main Index | Thread Index | Old Index