Project

General

Profile

Bug #6652

Error when building illumos kernel

Added by zheng cai over 4 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2016-02-14
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Hi, I am new to illumos. I try to build the illumos kernel using guide "http://wiki.illumos.org/display/illumos/How+To+Build+illumos".
But I met tons of error like this:

2918 /code/illumos-gate/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/cw -_gcc -o pkcs11_tpm.so.1 -G -hpkcs11_tpm.so.1 -ztext -zdefs -Bdirect  -M../common/mapfile-vers -M/code/illumos-gate/usr/src/common/mapfiles/common/map.pageal      ign -M/code/illumos-gate/usr/src/common/mapfiles/common/map.noexdata pics/api_interface.o  pics/apiutil.o  pics/asn1.o  pics/cert.o  pics/data_obj.o  pics/decr_mgr.o  pics/dig_mgr.o  pics/encr_mgr.o  pics/globals.o  pics/hwf_obj.o        pics/key.o  pics/key_mgr.o  pics/loadsave.o  pics/log.o  pics/mech_md5.o  pics/mech_rsa.o  pics/mech_sha.o  pics/new_host.o  pics/obj_mgr.o  pics/object.o  pics/sess_mgr.o  pics/sign_mgr.o  pics/template.o  pics/tpm_specific.o  pi      cs/utility.o  pics/verify_mgr.o  -L/code/illumos-gate/proto/root_i386/lib -L/code/illumos-gate/proto/root_i386/usr/lib    -L/usr/lib -L/lib -lc -luuid -lmd -ltspi -lcrypto
2919 + /opt/gcc/4.4.4/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -D__sun -o pkcs11_tpm.so.1 -shared -hpkcs11_tpm.so.1 -Wl,-ztext -Wl,-zdefs -Wl,-Bdirect -Wl,-M../common/      mapfile-vers -Wl,-M/code/illumos-gate/usr/src/common/mapfiles/common/map.pagealign -Wl,-M/code/illumos-gate/usr/src/common/mapfiles/common/map.noexdata pics/api_interface.o pics/apiutil.o pics/asn1.o pics/cert.o pics/data_obj.o pic      s/decr_mgr.o pics/dig_mgr.o pics/encr_mgr.o pics/globals.o pics/hwf_obj.o pics/key.o pics/key_mgr.o pics/loadsave.o pics/log.o pics/mech_md5.o pics/mech_rsa.o pics/mech_sha.o pics/new_host.o pics/obj_mgr.o pics/object.o pics/sess_m      gr.o pics/sign_mgr.o pics/template.o pics/tpm_specific.o pics/utility.o pics/verify_mgr.o -L/code/illumos-gate/proto/root_i386/lib -L/code/illumos-gate/proto/root_i386/usr/lib -L/usr/lib -L/lib -lc -luuid -lmd -ltspi -lcrypto
2920 ld: fatal: file /code/illumos-gate/proto/root_i386/lib/libc.so: version 'ILLUMOS_0.12' does not exist:
2921         required by file /usr/lib/libuuid.so
2922 ld: fatal: file /code/illumos-gate/proto/root_i386/lib/libavl.so.1: version 'ILLUMOS_1.0' does not exist:
2923         required by file /usr/lib/libsec.so.1
2924 ld: fatal: file /code/illumos-gate/proto/root_i386/lib/libavl.so.1: version 'ILLUMOS_1.0' does not exist:
2925         required by file /usr/lib/libidmap.so.1
2926 ld: fatal: file processing errors. No output written to pkcs11_tpm.so.1
2927 collect2: ld returned 1 exit status
2928 *** Error code 1
2929 /code/illumos-gate/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/cw -_gcc -o pkcs11_tpm.so.1 -G -hpkcs11_tpm.so.1 -ztext -zdefs -Bdirect  -M../common/mapfile-vers -M/code/illumos-gate/usr/src/common/mapfiles/common/map.pageal      ign -M/code/illumos-gate/usr/src/common/mapfiles/common/map.noexdata pics/api_interface.o  pics/apiutil.o  pics/asn1.o  pics/cert.o  pics/data_obj.o  pics/decr_mgr.o  pics/dig_mgr.o  pics/encr_mgr.o  pics/globals.o  pics/hwf_obj.o        pics/key.o  pics/key_mgr.o  pics/loadsave.o  pics/log.o  pics/mech_md5.o  pics/mech_rsa.o  pics/mech_sha.o  pics/new_host.o  pics/obj_mgr.o  pics/object.o  pics/sess_mgr.o  pics/sign_mgr.o  pics/template.o  pics/tpm_specific.o  pi      cs/utility.o  pics/verify_mgr.o  -L/code/illumos-gate/proto/root_i386/lib -L/code/illumos-gate/proto/root_i386/usr/lib    -L/usr/lib -L/lib -lc -luuid -lmd -ltspi -lcrypto
2930 + /opt/gcc/4.4.4/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -D__sun -o pkcs11_tpm.so.1 -shared -hpkcs11_tpm.so.1 -Wl,-ztext -Wl,-zdefs -Wl,-Bdirect -Wl,-M../common/      mapfile-vers -Wl,-M/code/illumos-gate/usr/src/common/mapfiles/common/map.pagealign -Wl,-M/code/illumos-gate/usr/src/common/mapfiles/common/map.noexdata pics/api_interface.o pics/apiutil.o pics/asn1.o pics/cert.o pics/data_obj.o pic      s/decr_mgr.o pics/dig_mgr.o pics/encr_mgr.o pics/globals.o pics/hwf_obj.o pics/key.o pics/key_mgr.o pics/loadsave.o pics/log.o pics/mech_md5.o pics/mech_rsa.o pics/mech_sha.o pics/new_host.o pics/obj_mgr.o pics/object.o pics/sess_m      gr.o pics/sign_mgr.o pics/template.o pics/tpm_specific.o pics/utility.o pics/verify_mgr.o -L/code/illumos-gate/proto/root_i386/lib -L/code/illumos-gate/proto/root_i386/usr/lib -L/usr/lib -L/lib -lc -luuid -lmd -ltspi -lcrypto
2931 ld: fatal: file /code/illumos-gate/proto/root_i386/lib/libc.so: version 'ILLUMOS_0.12' does not exist:
2932         required by file /usr/lib/libuuid.so
2933 ld: fatal: file /code/illumos-gate/proto/root_i386/lib/libavl.so.1: version 'ILLUMOS_1.0' does not exist:
2934         required by file /usr/lib/libsec.so.1
2935 ld: fatal: file /code/illumos-gate/proto/root_i386/lib/libavl.so.1: version 'ILLUMOS_1.0' does not exist:
2936         required by file /usr/lib/libidmap.so.1
2937 ld: fatal: file processing errors. No output written to pkcs11_tpm.so.1
2938 collect2: ld returned 1 exit status
2939 *** Error code 1
2940 /usr/bin/rm -f /code/illumos-gate/proto/root_i386/usr/lib/security/pkcs11_tpm.so; /usr/bin/ln -s pkcs11_tpm.so.1 /code/illumos-gate/proto/root_i386/usr/lib/security/pkcs11_tpm.so
2941 dmake: Warning: Target `install' not remade because of errors
2942 Current working directory /code/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/i386
2943 *** Error code 1
2944 The following command caused the error:
2945 cd i386; pwd; dmake install

Could anyone help have a look, thanks

History

#1

Updated by Josef Sipek over 4 years ago

  • Description updated (diff)
#2

Updated by Josef Sipek over 4 years ago

Which version (commit id) of illumos-gate are you trying to build? Which distro are you trying to build it on?

#3

Updated by Yuri Pankov over 4 years ago

Looks like another missing dependency in usr/src/lib/Makefile. The head commit would help, yes, thought I fixed most of those failures.

#4

Updated by zheng cai over 4 years ago

Josef Sipek wrote:

Which version (commit id) of illumos-gate are you trying to build? Which distro are you trying to build it on?

Sorry, not familiar with hg/git. I want to build illumos on openindiana. I cloned the project by "hg-2.7 clone http://hg.openindiana.org/illumos-gate" . Is it right???

root@openindiana:/code/illumos-gate# hg branch
default
root@openindiana:/code/illumos-gate# hg branches
default 14188:afe390b9f1e0
root@openindiana:/code/illumos-gate# hg heads
changeset: 14188:afe390b9f1e0
tag: tip
user: Joshua M. Clulow <>
date: Mon Mar 04 23:52:56 2013 +0000
summary: 4020 Make ldi_ev_remove_callbacks safe to use in LDI callbacks

changeset: 14177:26363f0dfb2e
user: Gordon Ross <>
date: Fri Aug 23 18:31:03 2013 -0400
summary: 4072 make clobber leaves trash

changeset: 14078:d07a59219ab7
parent: 14077:5bf115f4bbcd
parent: 14076:33e647072c73
user: Dan McDonald <>
date: Wed Jul 10 15:50:37 2013 -0400
summary: Merge branch 'master' of github.com:illumos/illumos-gate

root@openindiana:/code/illumos-gate# hg log
changeset: 14188:afe390b9f1e0
tag: tip
user: Joshua M. Clulow <>
date: Mon Mar 04 23:52:56 2013 +0000
summary: 4020 Make ldi_ev_remove_callbacks safe to use in LDI callbacks
.....

What should I do next?
Thanks a lot

#5

Updated by zheng cai over 4 years ago

Yuri Pankov wrote:

Looks like another missing dependency in usr/src/lib/Makefile. The head commit would help, yes, thought I fixed most of those failures.

Thank you, Yuri.
How to use the head commit?

#6

Updated by Gary Mills over 4 years ago

Did you notice all the 2013 dates? It looks like we need to make that old hg repository disappear, along with any instructions that still mention hg.

#7

Updated by Josef Sipek over 4 years ago

zheng cai wrote:

Josef Sipek wrote:

Which version (commit id) of illumos-gate are you trying to build? Which distro are you trying to build it on?

Sorry, not familiar with hg/git. I want to build illumos on openindiana. I cloned the project by "hg-2.7 clone http://hg.openindiana.org/illumos-gate" . Is it right???

Ah, I see the problem now. We used to use hg and then in 2013 we switched to git. At first the two repositories were sync'd but that stopped happening at some point. Unfortunately, the wiki page still contained the mercurial instructions. I removed them leaving only the git instructions. Please try it again with git.

Jeff.

#8

Updated by zheng cai over 4 years ago

Josef Sipek wrote:

zheng cai wrote:

Josef Sipek wrote:

Which version (commit id) of illumos-gate are you trying to build? Which distro are you trying to build it on?

Sorry, not familiar with hg/git. I want to build illumos on openindiana. I cloned the project by "hg-2.7 clone http://hg.openindiana.org/illumos-gate" . Is it right???

Ah, I see the problem now. We used to use hg and then in 2013 we switched to git. At first the two repositories were sync'd but that stopped happening at some point. Unfortunately, the wiki page still contained the mercurial instructions. I removed them leaving only the git instructions. Please try it again with git.

Jeff.

Thank you, Jeff. Problem is solved

#9

Updated by Josef Sipek over 4 years ago

  • Status changed from New to Rejected

Also available in: Atom PDF