Google Группы больше не поддерживают новые публикации и подписки в сети Usenet. Опубликованный ранее контент останется доступен.

Problems when runing make installworld.

0 просмотров
Перейти к первому непрочитанному сообщению

Ruslan Ermilov

не прочитано,
28 мая 2002 г., 03:21:0328.05.2002
– Mattias Bj?rk, sta...@freebsd.org
This is a known issue, for which there's no a quick solution.
Please see PR 30276 for details.

On Mon, May 27, 2002 at 10:52:23PM +0200, Mattias Bj?rk wrote:
> On Mon, 27 May 2002, Mattias Bj?rk wrote:
>
> > Hi,
> >
> > I have one dual celeron 400 MHz that i runed a make buildworld. And then i
> > export /usr/src and /usr/obj with nfs to my box that I world like to
> > upgrade. Its an p90 laptop, so that is why Im doing the build on my dual
> > 400. :)
> >
> > Any way when I run make installworld on the laptop, I get goes for about
> > 30 sec to one minute and then /usr/bin/install crashes with this error
> > message:
> >
> > mtree -deU -f /usr/src/include/../etc/mtree/BSD.include.dist -p
> > /usr/include
> > cd /usr/src/include/../sys; install -C -o root -g wheel -m 444 cam/*.h
> > /usr/include/cam
> > Illegal instruction - core dumped
> > *** Error code 132
> >
> > Stop in /usr/src/include.
> > *** Error code 1
> >
> > Stop in /usr/src.
> > *** Error code 1
> >
> > Stop in /usr/src.
> > *** Error code 1
> >
> > Stop in /usr/src.
> > *** Error code 1
> >
> > Stop in /usr/src.
> >
> > Any clues? I have attched the hole make installworld log. It seems that
> > there is something wrong with my install file or? I copyied it from
> > another machine that is a p120, but that did not help. Same problem, first
> > I thought that It hade something to do with that I was runing make
> > installworld in multiuser mode. But i rebooted and runed it with boot -s
> > but that did not help either.
> >
> > Any clues/tips/flames welcome, as you can see it is no fun at all (TM) to
> > run a make world on a p90. I have done it before and it worked but i
> > rather not do that... :)
> >
> > Perhaps you need more info, then do not hasitate to ask for it. Might take
> > some time to answer this mail because I have some mails to catch up in
> > my mbox...
> >
> > Sorry if i typ to mutch... I will do better next time...
> >
> > Mvh Mattias Bj?rk
> >
> > Real Programmers don't write in PL/I. PL/I is for programmers who
> > can't decide whether to write in COBOL or FORTRAN.
> >

> Script started on Mon May 27 22:36:18 2002
> # make installworld
> mkdir -p /tmp/install.2474
> for prog in [ awk cat chflags chmod chown date echo egrep find grep ln make makewhatis mtree mv perl rm sed sh sysctl test true uname wc zic; do cp `which $prog` /tmp/install.2474; done
> cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=i386 MACHINE=i386 OBJFORMAT_PATH=/usr/obj/usr/src/i386/usr/libexec PERL5LIB=/usr/obj/usr/src/i386/usr/libdata/perl/5.00503 GROFF_BIN_PATH=/usr/obj/usr/src/i386/usr/bin GROFF_FONT_PATH=/usr/obj/usr/src/i386/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/usr/src/i386/usr/share/tmac PATH=/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/tmp/install.2474 make -f Makefile.inc1 reinstall
> --------------------------------------------------------------
> >>> Making hierarchy
> --------------------------------------------------------------
> cd /usr/src; make -f Makefile.inc1 hierarchy
> cd /usr/src/etc; make distrib-dirs
> set - `grep "^[a-zA-Z]" /usr/src/etc/locale.deprecated`; while [ $# -gt 0 ] ; do for dir in /usr/share/locale /usr/share/nls /usr/local/share/nls; do test -d /${dir} && cd /${dir}; test -L "$2" && rm -rf "$2"; test \! -L "$1" && test -d "$1" && mv "$1" "$2"; done; shift; shift; done
> mtree -deU -f /usr/src/etc/mtree/BSD.root.dist -p /
> mtree -deU -f /usr/src/etc/mtree/BSD.var.dist -p /var
> mtree -deU -f /usr/src/etc/mtree/BSD.usr.dist -p /usr
> mtree -deU -f /usr/src/etc/mtree/BSD.include.dist -p /usr/include
> mtree -deU -f /usr/src/etc/mtree/BSD.include.dist -p /usr/libdata/perl/5.00503/mach
> cd /; rm -f /sys; ln -s usr/src/sys sys
> cd /usr/share/man/en.ISO8859-1; ln -sf ../man* .
> cd /usr/share/man; set - `grep "^[a-zA-Z]" /usr/src/etc/man.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; done
> cd /usr/share/locale; set - `grep "^[a-zA-Z]" /usr/src/etc/locale.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; done
> cd /usr/share/nls; set - `grep "^[a-zA-Z]" /usr/src/etc/nls.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; done
>
> --------------------------------------------------------------
> >>> Installing everything..
> --------------------------------------------------------------
> cd /usr/src; make -f Makefile.inc1 install
> ===> share/info
> ===> include
> if [ -h /usr/include/cam ]; then rm -f /usr/include/cam; fi
> if [ -h /usr/include/msdosfs ]; then rm -f /usr/include/msdosfs; fi
> if [ -h /usr/include/net ]; then rm -f /usr/include/net; fi
> if [ -h /usr/include/netatalk ]; then rm -f /usr/include/netatalk; fi
> if [ -h /usr/include/netatm ]; then rm -f /usr/include/netatm; fi
> if [ -h /usr/include/netgraph ]; then rm -f /usr/include/netgraph; fi
> if [ -h /usr/include/netinet ]; then rm -f /usr/include/netinet; fi
> if [ -h /usr/include/netinet6 ]; then rm -f /usr/include/netinet6; fi
> if [ -h /usr/include/netipx ]; then rm -f /usr/include/netipx; fi
> if [ -h /usr/include/netkey ]; then rm -f /usr/include/netkey; fi
> if [ -h /usr/include/netnatm ]; then rm -f /usr/include/netnatm; fi
> if [ -h /usr/include/netncp ]; then rm -f /usr/include/netncp; fi
> if [ -h /usr/include/netns ]; then rm -f /usr/include/netns; fi
> if [ -h /usr/include/netsmb ]; then rm -f /usr/include/netsmb; fi
> if [ -h /usr/include/nfs ]; then rm -f /usr/include/nfs; fi
> if [ -h /usr/include/ntfs ]; then rm -f /usr/include/ntfs; fi
> if [ -h /usr/include/nwfs ]; then rm -f /usr/include/nwfs; fi
> if [ -h /usr/include/pccard ]; then rm -f /usr/include/pccard; fi
> if [ -h /usr/include/posix4 ]; then rm -f /usr/include/posix4; fi
> if [ -h /usr/include/sys ]; then rm -f /usr/include/sys; fi
> if [ -h /usr/include/vm ]; then rm -f /usr/include/vm; fi
> if [ -h /usr/include/fs/smbfs ]; then rm -f /usr/include/fs/smbfs; fi
> if [ -h /usr/include/isofs/cd9660 ]; then rm -f /usr/include/isofs/cd9660; fi
> if [ -h /usr/include/ufs/ffs ]; then rm -f /usr/include/ufs/ffs; fi
> if [ -h /usr/include/ufs/mfs ]; then rm -f /usr/include/ufs/mfs; fi
> if [ -h /usr/include/ufs/ufs ]; then rm -f /usr/include/ufs/ufs; fi
> if [ -h /usr/include/dev/ppbus ]; then rm -f /usr/include/dev/ppbus; fi
> if [ -h /usr/include/dev/usb ]; then rm -f /usr/include/dev/usb; fi
> if [ -h /usr/include/machine ]; then rm -f /usr/include/machine; fi
> mtree -deU -f /usr/src/include/../etc/mtree/BSD.include.dist -p /usr/include
> cd /usr/src/include/../sys; install -C -o root -g wheel -m 444 cam/*.h /usr/include/cam
> Illegal instruction - core dumped
> *** Error code 132
>
> Stop in /usr/src/include.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
> # d


--
Ruslan Ermilov Sysadmin and DBA,
r...@sunbay.com Sunbay Software AG,
r...@FreeBSD.org FreeBSD committer,
+380.652.512.251 Simferopol, Ukraine

http://www.FreeBSD.org The Power To Serve
http://www.oracle.com Enabling The Information Age

Ruslan Ermilov

не прочитано,
31 мая 2002 г., 05:03:2831.05.2002
– Mattias Bj?rk, sta...@freebsd.org
On Fri, May 31, 2002 at 09:06:23AM +0200, Mattias Bj?rk wrote:
> Hi, Again, thanks for the answer, i read
> http://www.freebsd.org/cgi/query-pr.cgi?pr=30276.
>
> It says there that if you are building make world with a p3 and run
> make installworld on a 486 you get this error. But I don't have a
> p3 I have a dual celeron, I have also attached my make.conf from
> the building machine. And its a p90 that Im makeing the make
> worldinstall on. But any way the problem seams too be the same or
> am I wrong?
>
Did you set CPUTYPE=i586 just before doing a buildworld? Was it by
chance set to CPUTYPE=i686 before?

If that's the case, your /usr/lib stuff on the build box has some P6
CPU instructions, and some tools (like install(1) and strip(1)) that
are used during installworld on your Pentium box use these libraries
and fail. To work around this, you'll have to:

1. Rebuild and reinstall world/kernel on your build box with the
compatible (with your install box) CPUTYPE setting like
CPUTYPE=i586.

2. Reboot with the new kernel and world.

3. Build the world again (!).

4. Install this second world on a Pentium box.

> CPUTYPE=i586
> CFLAGS= -O -pipe -march=i586
^^^^^^^^^^^

This is bogus, CPUTYPE adds to CFLAGS as necessary. This is
not relevant to the problem though.


Cheers,

Stephen Hilton

не прочитано,
31 мая 2002 г., 12:57:3231.05.2002
– freebsd...@freebsd.org, r...@freebsd.org, thr...@linux.nu
On Fri, 31 May 2002 12:01:56 +0300
Ruslan Ermilov <r...@FreeBSD.ORG> wrote:

> On Fri, May 31, 2002 at 09:06:23AM +0200, Mattias Bj?rk wrote:
> > Hi, Again, thanks for the answer, i read
> > http://www.freebsd.org/cgi/query-pr.cgi?pr=30276.
> >
> > It says there that if you are building make world with a p3 and run
> > make installworld on a 486 you get this error. But I don't have a
> > p3 I have a dual celeron, I have also attached my make.conf from
> > the building machine. And its a p90 that Im makeing the make
> > worldinstall on. But any way the problem seams too be the same or
> > am I wrong?
> >
> Did you set CPUTYPE=i586 just before doing a buildworld? Was it by
> chance set to CPUTYPE=i686 before?
>
> If that's the case, your /usr/lib stuff on the build box has some P6
> CPU instructions, and some tools (like install(1) and strip(1)) that
> are used during installworld on your Pentium box use these libraries
> and fail. To work around this, you'll have to:
>
> 1. Rebuild and reinstall world/kernel on your build box with the
> compatible (with your install box) CPUTYPE setting like
> CPUTYPE=i586.
>
> 2. Reboot with the new kernel and world.
>
> 3. Build the world again (!).
>
> 4. Install this second world on a Pentium box.
>

Ruslan,

This is good information to have, but it brings to mind, how
do the release engineers build a release that will install
binaries, and then allow you to run a buildworld on machines
types from a Intel 386 to an AMD Athlon?

Is it a matter of using the lowest common denominator? and
the release building hardware is running the operating
system with out any optimizations?

P.S. and to keep this "On-Topic" for the stable list, my
buildworlds and systems have been running great on 4.6-Pre,
Great work and kudos to the Project members and contributers.

Regards,

Stephen Hilton
nos...@hiltonbsd.com

To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message

Kris Kennaway

не прочитано,
31 мая 2002 г., 13:21:5231.05.2002
– Mattias Björk, Ruslan Ermilov, sta...@freebsd.org
On Fri, May 31, 2002 at 09:06:23AM +0200, Mattias Björk wrote:
> Hi, Again, thanks for the answer, i read
> http://www.freebsd.org/cgi/query-pr.cgi?pr=30276.
>
> It says there that if you are building make world with a p3 and run make installworld on a 486
> you get this error. But I don't have a p3 I have a dual celeron, I have
> also attached my make.conf from the building machine. And its a p90 that
> Im makeing the make worldinstall on. But any way the problem seams too be
> the same or am I wrong?

The point is when you try and install a world built with different CPU
optimizations. I assume you have CPUTYPE set on your build machine;
this is what controls the optimizations that will be used when you
build world, so it's obviously not going to work when you compile your
binaries for a Pentium Pro and try and install them on a Pentium.

Kris

Ruslan Ermilov

не прочитано,
31 мая 2002 г., 13:31:5831.05.2002
– Kris Kennaway, Mattias Bj?rk, sta...@freebsd.org
On Fri, May 31, 2002 at 10:21:26AM -0700, Kris Kennaway wrote:
No, the problem is worse. Even if you set CPUTYPE for the target, some
tools (bootstrap-tools and cross-tools) are built with /usr/lib stuff.
And your /usr/lib stuff might be built with an incompatible CPU stuff.
This is much easier demonstrated with cross-arch builds/installs.
These simply do not work now. You can't build TARGET_ARCH=alpha world
on i386, then NFS mount /usr/src and /usr/obj on alpha, and install
world from there. For this to work, we must rebuild all bootstrap-
and cross-tools that we use during installworld on the target.

Ruslan Ermilov

не прочитано,
31 мая 2002 г., 13:33:1231.05.2002
– Stephen Hilton, freebsd...@freebsd.org, thr...@linux.nu
Yes. "make release" builds the world in a "pristine", chroot(8)
environment, where /etc/make.conf is empty. See release(7) for
details.

> P.S. and to keep this "On-Topic" for the stable list, my
> buildworlds and systems have been running great on 4.6-Pre,
> Great work and kudos to the Project members and contributers.
>

Thanks. :-)

Kris Kennaway

не прочитано,
31 мая 2002 г., 14:23:3431.05.2002
– Ruslan Ermilov, Kris Kennaway, Mattias Bj?rk, sta...@freebsd.org
On Fri, May 31, 2002 at 08:29:37PM +0300, Ruslan Ermilov wrote:
> On Fri, May 31, 2002 at 10:21:26AM -0700, Kris Kennaway wrote:
> > On Fri, May 31, 2002 at 09:06:23AM +0200, Mattias Bj?rk wrote:
> > > Hi, Again, thanks for the answer, i read
> > > http://www.freebsd.org/cgi/query-pr.cgi?pr=30276.
> > >
> > > It says there that if you are building make world with a p3 and run make installworld on a 486
> > > you get this error. But I don't have a p3 I have a dual celeron, I have
> > > also attached my make.conf from the building machine. And its a p90 that
> > > Im makeing the make worldinstall on. But any way the problem seams too be
> > > the same or am I wrong?
> >
> > The point is when you try and install a world built with different CPU
> > optimizations. I assume you have CPUTYPE set on your build machine;
> > this is what controls the optimizations that will be used when you
> > build world, so it's obviously not going to work when you compile your
> > binaries for a Pentium Pro and try and install them on a Pentium.
> >
> No, the problem is worse.

Oh, that's right; I'd forgotten the details of the problem. My point
still stands that it doesn't depend on the p3/486 combination but only
on installing on a different CPU type than the build system.

Kris

0 новых сообщений