Cleaning temporary build tree failed

2011-04-09 Thread David Marec
Hi guys.


Since the release of FreeBSD 8.2, building world fails on the following
error:


--
david:/home/david#cd /usr/src
david:/usr/src#make -j4 buildworld  make kernel
--
 World build started on Sat Apr  9 09:16:50 CEST 2011
--
--
 Rebuilding the temporary build tree
--
rm -rf /usr/obj/usr/src/tmp
rm -rf /usr/obj/usr/src/lib32
rm: /usr/obj/usr/src/lib32/usr/lib32/libc.so.7: Operation not permitted
rm: /usr/obj/usr/src/lib32/usr/lib32/libcrypt.so.5: Operation not permitted
rm: /usr/obj/usr/src/lib32/usr/lib32/libthr.so.3: Operation not permitted
rm: /usr/obj/usr/src/lib32/usr/lib32/librt.so.1: Operation not permitted
rm: /usr/obj/usr/src/lib32/usr/lib32: Directory not empty
rm: /usr/obj/usr/src/lib32/usr: Directory not empty
rm: /usr/obj/usr/src/lib32: Directory not empty
*** Error code 1
1 error
*** Error code 2
1 error
david:/usr/src#ls -lo /usr/obj/usr/src/lib32/usr/lib32/
total 1262
-r--r--r--  1 root  wheel  schg 1143468 22 mar 21:19 libc.so.7
-r--r--r--  1 root  wheel  schg   32060 22 mar 21:19 libcrypt.so.5
-r--r--r--  1 root  wheel  schg   16412 22 mar 21:22 librt.so.1
-r--r--r--  1 root  wheel  schg   76412 22 mar 21:20 libthr.so.3
--

Im a running FreeBSD 8.2-Stable for amd64.

So, before building world, i have to change the flags for the files above.
There was no need to do this before.


Any idea to get rid of this issue ?


-- 
Cordialement,
-- 
David Marec: http://user.lamaiziere.net/david/Site/
http://www.freebsd.org/fr/ http://www.diablotins.org/



___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Cleaning temporary build tree failed

2011-04-09 Thread Zhihao Yuan
/usr/src is controlled by root. Use `sudo` to perform the system
management related works.

On Sat, Apr 9, 2011 at 2:25 AM, David Marec david.ma...@davenulle.org wrote:
 Hi guys.


 Since the release of FreeBSD 8.2, building world fails on the following
 error:


 --
 david:/home/david#cd /usr/src
 david:/usr/src#make -j4 buildworld  make kernel
 --
 World build started on Sat Apr  9 09:16:50 CEST 2011
 --
 --
 Rebuilding the temporary build tree
 --
 rm -rf /usr/obj/usr/src/tmp
 rm -rf /usr/obj/usr/src/lib32
 rm: /usr/obj/usr/src/lib32/usr/lib32/libc.so.7: Operation not permitted
 rm: /usr/obj/usr/src/lib32/usr/lib32/libcrypt.so.5: Operation not permitted
 rm: /usr/obj/usr/src/lib32/usr/lib32/libthr.so.3: Operation not permitted
 rm: /usr/obj/usr/src/lib32/usr/lib32/librt.so.1: Operation not permitted
 rm: /usr/obj/usr/src/lib32/usr/lib32: Directory not empty
 rm: /usr/obj/usr/src/lib32/usr: Directory not empty
 rm: /usr/obj/usr/src/lib32: Directory not empty
 *** Error code 1
 1 error
 *** Error code 2
 1 error
 david:/usr/src#ls -lo /usr/obj/usr/src/lib32/usr/lib32/
 total 1262
 -r--r--r--  1 root  wheel  schg 1143468 22 mar 21:19 libc.so.7
 -r--r--r--  1 root  wheel  schg   32060 22 mar 21:19 libcrypt.so.5
 -r--r--r--  1 root  wheel  schg   16412 22 mar 21:22 librt.so.1
 -r--r--r--  1 root  wheel  schg   76412 22 mar 21:20 libthr.so.3
 --

 Im a running FreeBSD 8.2-Stable for amd64.

 So, before building world, i have to change the flags for the files above.
 There was no need to do this before.


 Any idea to get rid of this issue ?


 --
 Cordialement,
 --
 David Marec: http://user.lamaiziere.net/david/Site/
 http://www.freebsd.org/fr/     http://www.diablotins.org/



 ___
 freebsd-stable@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


-- 
Zhihao Yuan
The best way to predict the future is to invent it.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Cleaning temporary build tree failed

2011-04-09 Thread Marat N.Afanasyev

David Marec wrote:

Hi guys.


Since the release of FreeBSD 8.2, building world fails on the following
error:


--
david:/home/david#cd /usr/src
david:/usr/src#make -j4 buildworld  make kernel
--

World build started on Sat Apr  9 09:16:50 CEST 2011

--
--

Rebuilding the temporary build tree

--
rm -rf /usr/obj/usr/src/tmp
rm -rf /usr/obj/usr/src/lib32
rm: /usr/obj/usr/src/lib32/usr/lib32/libc.so.7: Operation not permitted
rm: /usr/obj/usr/src/lib32/usr/lib32/libcrypt.so.5: Operation not permitted
rm: /usr/obj/usr/src/lib32/usr/lib32/libthr.so.3: Operation not permitted
rm: /usr/obj/usr/src/lib32/usr/lib32/librt.so.1: Operation not permitted
rm: /usr/obj/usr/src/lib32/usr/lib32: Directory not empty
rm: /usr/obj/usr/src/lib32/usr: Directory not empty
rm: /usr/obj/usr/src/lib32: Directory not empty
*** Error code 1
1 error
*** Error code 2
1 error
david:/usr/src#ls -lo /usr/obj/usr/src/lib32/usr/lib32/
total 1262
-r--r--r--  1 root  wheel  schg 1143468 22 mar 21:19 libc.so.7
-r--r--r--  1 root  wheel  schg   32060 22 mar 21:19 libcrypt.so.5
-r--r--r--  1 root  wheel  schg   16412 22 mar 21:22 librt.so.1
-r--r--r--  1 root  wheel  schg   76412 22 mar 21:20 libthr.so.3
--

Im a running FreeBSD 8.2-Stable for amd64.

So, before building world, i have to change the flags for the files above.
There was no need to do this before.


Any idea to get rid of this issue ?



man chflags

--
С уважением, Марат Афанасьев



Re: Cleaning temporary build tree failed

2011-04-09 Thread Damien Fleuriot


On 4/9/11 9:25 AM, David Marec wrote:
 Hi guys.
 
 
 Since the release of FreeBSD 8.2, building world fails on the following
 error:
 
 
 --
 david:/home/david#cd /usr/src
 david:/usr/src#make -j4 buildworld  make kernel
 --
 World build started on Sat Apr  9 09:16:50 CEST 2011
 --
 --
 Rebuilding the temporary build tree
 --
 rm -rf /usr/obj/usr/src/tmp
 rm -rf /usr/obj/usr/src/lib32
 rm: /usr/obj/usr/src/lib32/usr/lib32/libc.so.7: Operation not permitted
 rm: /usr/obj/usr/src/lib32/usr/lib32/libcrypt.so.5: Operation not permitted
 rm: /usr/obj/usr/src/lib32/usr/lib32/libthr.so.3: Operation not permitted
 rm: /usr/obj/usr/src/lib32/usr/lib32/librt.so.1: Operation not permitted
 rm: /usr/obj/usr/src/lib32/usr/lib32: Directory not empty
 rm: /usr/obj/usr/src/lib32/usr: Directory not empty
 rm: /usr/obj/usr/src/lib32: Directory not empty
 *** Error code 1
 1 error
 *** Error code 2
 1 error
 david:/usr/src#ls -lo /usr/obj/usr/src/lib32/usr/lib32/
 total 1262
 -r--r--r--  1 root  wheel  schg 1143468 22 mar 21:19 libc.so.7
 -r--r--r--  1 root  wheel  schg   32060 22 mar 21:19 libcrypt.so.5
 -r--r--r--  1 root  wheel  schg   16412 22 mar 21:22 librt.so.1
 -r--r--r--  1 root  wheel  schg   76412 22 mar 21:20 libthr.so.3
 --
 
 Im a running FreeBSD 8.2-Stable for amd64.
 
 So, before building world, i have to change the flags for the files above.
 There was no need to do this before.
 
 
 Any idea to get rid of this issue ?
 
 


I experience no such problems on *many* boxes running 8.2 at work here.

You will want to:

chflags -R noschg /usr/obj/  cd /usr/src  make -j4 buildworld 
make buildkernel
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Cleaning temporary build tree failed

2011-04-09 Thread Jeremy Chadwick
On Sat, Apr 09, 2011 at 09:25:50AM +0200, David Marec wrote:
 rm: /usr/obj/usr/src/lib32/usr/lib32/libc.so.7: Operation not permitted
 rm: /usr/obj/usr/src/lib32/usr/lib32/libcrypt.so.5: Operation not permitted
 rm: /usr/obj/usr/src/lib32/usr/lib32/libthr.so.3: Operation not permitted
 rm: /usr/obj/usr/src/lib32/usr/lib32/librt.so.1: Operation not permitted
 rm: /usr/obj/usr/src/lib32/usr/lib32: Directory not empty
 rm: /usr/obj/usr/src/lib32/usr: Directory not empty
 rm: /usr/obj/usr/src/lib32: Directory not empty
 *** Error code 1
 1 error
 *** Error code 2
 1 error
 david:/usr/src#ls -lo /usr/obj/usr/src/lib32/usr/lib32/
 total 1262
 -r--r--r--  1 root  wheel  schg 1143468 22 mar 21:19 libc.so.7
 -r--r--r--  1 root  wheel  schg   32060 22 mar 21:19 libcrypt.so.5
 -r--r--r--  1 root  wheel  schg   16412 22 mar 21:22 librt.so.1
 -r--r--r--  1 root  wheel  schg   76412 22 mar 21:20 libthr.so.3
 
 Any idea to get rid of this issue ?

chflags noschg /usr/obj/usr/src/lib32/usr/lib32/*

I would also strongly recommend rm -fr /usr/obj after doing the above,
just to make sure absolutely nothing is left.  I've seen make clean
not catch things before.

-- 
| Jeremy Chadwick   j...@parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.   PGP 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Cleaning temporary build tree failed

2011-04-09 Thread David Marec

Damien Fleuriot a écrit :

 I experience no such problems on *many* boxes running 8.2 at work here.

 You will want to:

 chflags -R noschg /usr/obj/  cd /usr/src  make -j4 buildworld 
 make buildkernel

You are right, that 's what i have to do *each time* i want to proceed to
a rebuild world.

Therefore, the issue is why; moreover, why since the 8.2 release ?

Is there any clue to avoid to change these flags, previously to a 'rebuild
world'

-- 
Cordialement,
-- 
David Marec: http://user.lamaiziere.net/david/Site/
http://www.freebsd.org/fr/ http://www.diablotins.org/



___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org