On 2/28/13 10:13 AM, Eric Sproul wrote:
Kent,
Do you mind if we review how you got to this point? I recall that
earlier you said you wanted to try building in someone else's KVM
branch for AMD hardware virtualization support. How are you getting
those code changes applied to what you're trying to build with the
OmniOS scripts?
How did you invoke the build that produced the log you've been showing us?
It might also be helpful to move the discussion to IRC if that's
something you're willing/able to do. It would allow for a more
interactive conversation about your setup and the goal(s) you're
working to achieve. The channels are either #omnios or #illumos on
Freenode.
Eric
This project got away from me, but now I'm at it again. As a
refresher to myself, I'm going to start over, documenting the steps
I take along the way. This way, if talking on IRC, I can quickly
link to this message...
0) Goal
To compile the
AMD fork of illumos-kvm, for which the build instructions
say "set the path for the KERNEL_SOURCE directory to
point to the root of a checked out and built illumos directory".
The email is about me trying to build the Illumos directory...
1) System Stats
root@san:~#
uname -a
SunOS san 5.11
omnios-33fdde4 i86pc i386 i86pc Solaris
root@san:~#
pkg update
No updates
available for this image. (already
updated to r151004r)
2) Create Zone to Play In
root@san:~#
cat compile-omnios-zone.cfg
create -b
set
zonepath=/zones/compile-omnios-zone
set brand=ipkg
set
autoboot=false
set
ip-type=exclusive
add net
set
physical=vnic3
end
root@san:~#
zonecfg -z compile-omnios-zone -f compile-omnios-zone.cfg
root@san:~#
zoneadm -z compile-omnios-zone install
A ZFS file
system has been created for this zone.
Publisher:
Using omnios (http://pkg.omniti.com/omnios/release/ ).
Image:
Preparing at /zones/compile-omnios-zone/root.
Cache:
Using /var/pkg/publisher.
Sanity Check:
Looking for 'entire' incorporation.
Installing:
Packages (output follows)
Packages to install: 388
Create
boot environment: No
Create backup
boot environment: No
Services to change: 4
DOWNLOAD
PKGS FILES XFER (MB)
Completed
388/388 40192/40192 307.1/307.1$<3>
PHASE
ACTIONS
Install
Phase 58682/58682
PHASE
ITEMS
Package State
Update Phase 388/388
Image State
Update Phase 2/2
Note:
Man pages can be obtained by installing pkg:/system/manual
Postinstall:
Copying SMF seed repository ... done.
Done:
Installation completed in 457.404 seconds.
Next Steps:
Boot the zone, then log into the zone console (zlogin -C)
to complete the configuration process.
root@san:~#
zoneadm -z compile-omnios-zone boot
3) Login as "root" and config zone
root@compile-omnios-zone:~#
echo "coz" > /etc/nodename
root@compile-omnios-zone:~#
echo "10.0.4.3/24" > /etc/hostname.vnic3
root@compile-omnios-zone:~#
echo "10.0.4.1" > /etc/defaultrouter
root@compile-omnios-zone:~#
echo "nameserver 10.0.2.2" > /etc/resolv.conf
root@compile-omnios-zone:~#
cp /etc/nsswitch.dns /etc/nsswitch.conf
root@compile-omnios-zone:~#
svcadm enable network/dns/client
root@compile-omnios-zone:~#
svcadm disable autofs
root@compile-omnios-zone~#
useradd -m -b /home -c "Kent Watsen" kent
64 blocks
root@compile-omnios-zone:~#
passwd kent
New Password:
Re-enter new
Password:
passwd:
password successfully changed for kent
root@compile-omnios-zone:~#
echo "kent ALL=(ALL) ALL" >> /etc/sudoers
4) Login as "kent" and try to compile "illumos"
kent@coz:/home/kent$
sudo pkg install developer/versioning/git developer/astdev
developer/build/onbld developer/java/jdk
developer/lexer/flex developer/parser/bison
library/nspr/header-nspr library/perl-5/xml-parser
runtime/perl-5142-64 system/library/install
system/library/dbus system/library/mozilla-nss/header-nss
sunstudio12.1
Packages to install: 17
Create
boot environment: No
Create backup
boot environment: No
Services to change: 1
DOWNLOAD
PKGS FILES XFER (MB)
Completed
18/18 9595/9595 317.8/317.8$<3>
PHASE
ACTIONS
Install
Phase 13644/13644
PHASE
ITEMS
Package State
Update Phase 18/18
Image State
Update Phase 2/2
Loading smf(5)
service descriptions: 2/2
Loading smf(5)
service descriptions: 1/1
kent@coz:/home/kent$
sudo mkdir /code
kent@coz:/home/kent$ sudo chown kent.other /code
kent@coz:/home/kent$
git clone -b r151004
a...@src.omniti.com:~omnios/core/omnios-build
Cloning into
'omnios-build'...
remote:
Counting objects: 6427, done.
remote:
Compressing objects: 100% (5291/5291), done.
remote: Total
6427 (delta 3034), reused 1442 (delta 679)
Receiving
objects: 100% (6427/6427), 25.85 MiB | 496 KiB/s, done.
Resolving
deltas: 100% (3034/3034), done.
kent@coz:/home/kent$
cd omnios-build/build/illumos
kent@coz:/home/kent/omnios-build/build/illumos$
./build.sh
You appear to
be missing some basic build requirements.
To fix this
run:
sudo pkg
install developer/gcc46 developer/object-file
developer/build/gnu-make system/header
system/library/math/header-math (Ooops,
looks like I missed a few....)
An Error
occured in the build. Do you wish to continue anyway? (y/n) n
===== Build
aborted =====
kent@coz:/home/kent/omnios-build/build/illumos$
sudo pkg install developer/gcc46 developer/object-file
developer/build/gnu-make system/header
system/library/math/header-math
Creating
Plan
Packages to install: 9
Create
boot environment: No
Create backup
boot environment: No
DOWNLOAD
PKGS FILES XFER (MB)
Completed
9/9 2732/2732 99.3/99.3$<3>
PHASE
ACTIONS
Install
Phase 3204/3204
PHASE
ITEMS
Package State
Update Phase 9/9
Image State
Update Phase 2/2
kent@coz:/home/kent/omnios-build/build/illumos$
./build.sh
===== Build
started at Tue Mar 19 16:57:53 UTC 2013 =====
Package name:
illumos-gate
Selected
flavor: None (use -f to specify a flavor)
Selected build
arch: both
Extra
dependency: None (use -d to specify a version)
The PKGSRVR
(http://omnios.int.omniti.net:10002/) isn't available. All is
doomed.
An Error
occured in the build. Do you wish to continue anyway? (y/n) y
===== User
elected to continue after prompt. =====
Verifying
dependencies
Preparing for
build
--- Creating
temporary install dir
Ensuring that
Sun Studio is where Illumos thinks it is...
--- making
fake SUNWspro directory
Creating build
dir /code/omnios-151004
Entering
/code/omnios-151004
Cloning OMNI
Illumos Source...
/code/omnios-151004/illumos-omnios
/code/omnios-151004 ~/omnios-build/build/illumos
VERSION=\'omnios\-4771cb5'
Leaving
/code/omnios-151004
Entering
/code/omnios-151004/illumos-omnios
Changing
illumos.sh variables to what we want them to be...
Leaving
/code/omnios-151004/illumos-omnios
Entering
/code/omnios-151004/illumos-omnios
Getting Closed
Source Bins...
Leaving
/code/omnios-151004/illumos-omnios
Entering
/code/omnios-151004/illumos-omnios
Building extra
tools needed for illumos pkgs...
Leaving
/code/omnios-151004/illumos-omnios
Entering
/code/omnios-151004/illumos-omnios
Building
illumos pkgs...
Nightly failed
An
Error occured in the build. Do you wish to continue anyway?
(y/n) y
===== User
elected to continue after prompt. =====
Leaving
/code/omnios-151004/illumos-omnios
Entering
/code/omnios-151004/illumos-omnios
Intentional
pause: Last chance to sanity-check before publication!
Pushing
illumos pkgs to http://omnios.int.omniti.net:10002/...
Do you wish to
continue anyway? (y/n) y
===== User
elected to continue after prompt. =====
Leaving
/code/omnios-151004/illumos-omnios
Cleaning up
--- Removing
temporary install directory /tmp/build_/illumos-gate_pkg
--- Cleaning
up temporary manifest and transform files
Done.
kent@coz:/home/kent/omnios-build/build/illumos$
cat
/code/omnios\-151004/illumos\-omnios/log/log.2013\-03\-19.17\:32/nightly.log
<SNIP/>
==== Find core
files ====
==== Check
lists of files ====
==== Nightly
distributed build completed: Tue Mar 19 17:32:25 UTC 2013 ====
==== Total
build time ====
real
0:27:14
kent@coz:/home/kent/omnios-build/build/illumos$
cat
/code/omnios\-151004/illumos\-omnios/log/log.2013\-03\-19.17\:32/mail_msg
==== Nightly
distributed build started: Tue Mar 19 17:05:10 UTC 2013 ====
==== Nightly
distributed build completed: Tue Mar 19 17:32:25 UTC 2013 ====
==== Total
build time ====
real
0:27:14
==== Build
environment ====
/usr/bin/uname
SunOS coz 5.11
omnios-33fdde4 i86pc i386 i86pc
/opt/SUNWspro/bin/dmake
dmake: Sun
Distributed Make 7.9 SunOS_i386 2009/06/03
number of
concurrent jobs = 14
32-bit
compiler
/opt/onbld/bin/i386/cw
-_gcc
cw version
1.29 (SHADOW MODE DISABLED)
primary:
/opt/gcc-4.4.4/bin/gcc
gcc (GCC)
4.4.4
64-bit
compiler
/opt/onbld/bin/i386/cw
-_gcc
cw version
1.29 (SHADOW MODE DISABLED)
primary:
/opt/gcc-4.4.4/bin/gcc
gcc (GCC)
4.4.4
/usr/java/bin/javac
java full
version "1.6.0_26-b03"
/usr/bin/as
as: Sun
Compiler Common 12 SunOS_i386 snv_121 08/03/2009
/usr/ccs/bin/ld
ld: Software
Generation Utilities - Solaris Link Editors: 5.11-1.1726
Build
project: default
Build
taskid: 438
==== Nightly
argument issues ====
==== Build
version ====
omnios-4771cb5
==== Make
clobber ERRORS ====
==== Make
tools clobber ERRORS ====
==== Tools
build errors ====
==== Build
errors (non-DEBUG) ====
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Utils/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Kstat/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Intrs/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Project/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target `Sun/Solaris/Task/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Exacct/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Privilege/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target `Sun/Solaris/Lgrp/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Ucred/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target `Sun/Solaris/BSM/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/PerlGcc/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target `Sun/Solaris/Pg/Makefile'
dmake:
Warning: Don't know how to make target `install'
dmake:
Warning: Target `install' not remade because of errors
dmake:
Warning: Target `install' not remade because of errors
The following
command caused the error:
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Utils/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Kstat/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Intrs/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Project/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target `Sun/Solaris/Task/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Privilege/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/PerlGcc/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target `Sun/Solaris/Lgrp/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target `Sun/Solaris/BSM/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Exacct/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target
`Sun/Solaris/Ucred/Makefile'
The following
command caused the error:
dmake:
Warning: Command failed for target `Sun/Solaris/Pg/Makefile'
dmake:
Warning: Don't know how to make target `install'
dmake:
Warning: Target `install' not remade because of errors
dmake:
Warning: Target `install' not remade because of errors
The following
command caused the error:
dmake:
Warning: Target `install' not remade because of errors
The following
command caused the error:
dmake:
Warning: Command failed for target `perl'
dmake:
Warning: Target `install' not remade because of errors
The following
command caused the error:
dmake:
Warning: Target `install' not remade because of errors
==== Build
warnings (non-DEBUG) ====
dmake:
Warning: Command failed for target
`Sun/Solaris/Utils/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/Kstat/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/Intrs/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/Project/Makefile'
dmake:
Warning: Command failed for target `Sun/Solaris/Task/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/Exacct/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/Privilege/Makefile'
dmake:
Warning: Command failed for target `Sun/Solaris/Lgrp/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/Ucred/Makefile'
dmake:
Warning: Command failed for target `Sun/Solaris/BSM/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/PerlGcc/Makefile'
dmake:
Warning: Command failed for target `Sun/Solaris/Pg/Makefile'
dmake:
Warning: Don't know how to make target `install'
dmake:
Warning: Target `install' not remade because of errors
dmake:
Warning: Target `install' not remade because of errors
dmake:
Warning: Command failed for target
`Sun/Solaris/Utils/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/Kstat/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/Intrs/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/Project/Makefile'
dmake:
Warning: Command failed for target `Sun/Solaris/Task/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/Privilege/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/PerlGcc/Makefile'
dmake:
Warning: Command failed for target `Sun/Solaris/Lgrp/Makefile'
dmake:
Warning: Command failed for target `Sun/Solaris/BSM/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/Exacct/Makefile'
dmake:
Warning: Command failed for target
`Sun/Solaris/Ucred/Makefile'
dmake:
Warning: Command failed for target `Sun/Solaris/Pg/Makefile'
dmake:
Warning: Don't know how to make target `install'
dmake:
Warning: Target `install' not remade because of errors
dmake:
Warning: Target `install' not remade because of errors
dmake:
Warning: Target `install' not remade because of errors
dmake:
Warning: Command failed for target `perl'
dmake:
Warning: Target `install' not remade because of errors
dmake:
Warning: Target `install' not remade because of errors
==== Elapsed
build time (non-DEBUG) ====
real
24:36.5
user
2:43:28.9
sys
18:37.0
==== Build
noise differences (non-DEBUG) ====
====
cstyle/hdrchk errors ====
==== Find core
files ====
==== Check
lists of files ====
Any ideas?
Thanks!
Kent
|
_______________________________________________
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss