NetBSD-Users archive

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

Re: release 5.0.1 - build userland fails on libc ??



I recently managed to build userland and a GENERIC kernel on 5.0.1.
After all it was a pretty simple issue...cleaning /usr/obj completely did
the trick.

I still wonder why when one build "distribution" without the update "-u"
option, some things are not cleaned...
I should probably add a "rm -rf /usr/obj/*" in my upgrade script...

Anyway, many thanks for the help, and thanks to Martin for pointing out to
me the obvious :-)

Now I have to move on to other upgrade stuff...

Cheers,

--
AlexV

2010/1/13 Asmodehn Shade <asmodehn%gmail.com@localhost>

> Well,
> I thought I previously deleted all existing /usr/obj/, in order to make a
> clean build...
> I also do not use the update option in order to do the cleandir step, just
> in case.
>
> But anyway, always worth a try ;-)
> So I did :
>
> # find . -name "libc"
> ./src/common/lib/libc
> ./src/compat/lib/libc
> ./src/lib/libc
> ./src/regress/lib/libc
> ./obj/lib/libc
> ./obj/regress/lib/libc
> ./obj/compat/lib/libc
> # rm -rf ./obj/lib/libc ./obj/regress/lib/libc ./obj/compat/lib/libc
>
> and ran again.
>
> It seems it worked... should I understand that "./build.sh cleandir" doesnt
> clean one of those ?
> ./obj/lib/libc
> ./obj/regress/lib/libc
> ./obj/compat/lib/libc
>
> Worked until :
>
> #   install  /usr/src/obj/destdir.amd64/
> usr/lib/i386/libldap_pic.a
> /usr/src/tooldir.sysupdate/bin/x86_64--netbsd-install  -N /usr/src/etc -c
> -r -o root -g wheel -m 444  -a
> "/usr/src/tooldir.sysupdate/bin/x86_64--netbsd-ranlib -t" libldap_pic.a
> /usr/src/obj/destdir.amd64/usr/lib/i386/libldap_pic.a
> /usr/src/tooldir.sysupdate/bin/x86_64--netbsd-ranlib:
> /usr/src/obj/destdir.amd64/usr/lib/i386/inst.22969a: no archive map to
> update
> x86_64--netbsd-install: running after install command on
> /usr/src/obj/destdir.amd64/usr/lib/i386/inst.22969a: No such file or
> directory
>
> *** Failed target:  /usr/src/obj/destdir.amd64/usr/lib/i386/libldap_pic.a
> *** Failed command: /usr/src/tooldir.sysupdate/bin/x86_64--netbsd-install
> -N /usr/src/etc -c -r -o root -g wheel -m 444 -a
> "/usr/src/tooldir.sysupdate/bin/x86_64--netbsd-ranlib -t" libldap_pic.a
> /usr/src/obj/destdir.amd64/usr/lib/i386/libldap_pic.a
> *** Error code 1
>
> Stop.
>
> nbmake: stopped in /usr/src/compat/external/bsd/openldap/lib/libldap
>
> Well I guess I ll completely "rm -rf /usr/obj" and start again, I must have
> some things there not really clean....
>
> --
> AlexV
>
>
> 2010/1/13 Martin Husemann <martin%duskware.de@localhost>
>
>> On Tue, Jan 12, 2010 at 12:08:30PM +0100, Asmodehn Shade wrote:
>>
>> >
>> /usr/src/tooldir.sysupdate/lib/gcc/x86_64--netbsd/4.1.3/../../../../x86_64--netbsd/bin/ld:
>> > libc_pic.a(posix_fadvise.so): relocation R_X86_64_32 against
>> > `SYS_posix_fadvise' can not be used when making a shared object;
>> recompile
>> > with -fPIC
>> > libc_pic.a(posix_fadvise.so): could not read symbols: Bad value
>> > collect2: ld returned 1 exit status
>>
>> Do you, by chance, have old object files (from a previous build) lying
>> around
>> in your object directory? If so, try removing the whole $OBJDIR/lib/libc
>> directory and try again.
>>
>> Martin


Home | Main Index | Thread Index | Old Index