From: Daniel De Graaf <dgdegra@tycho.nsa.gov>
To: Bei Guan <gbtju85@gmail.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
xen-devel <xen-devel@lists.xen.org>
Subject: Re: Install vTPM on Xen-4.2.2
Date: Mon, 03 Jun 2013 11:19:54 -0400 [thread overview]
Message-ID: <51ACB41A.40006@tycho.nsa.gov> (raw)
In-Reply-To: <CAEQjb-RcwqhNyT3OF3+BrG5apCaQokwwNTLfjhpmx1ntKMQ-Dg@mail.gmail.com>
On 06/03/2013 03:45 AM, Bei Guan wrote:
> Additional information:
>
> My environment is Centos6.3 64bit and the my gcc version is like this:
> [root@localhost newlib-x86_64]# gcc -v
> Using built-in specs.
> Target: x86_64-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info
> --with-bugurl=http://bugzilla.redhat.com/bugzilla--enable-bootstrap
> --enable-shared --enable-threads=posix
> --enable-checking=release --with-system-zlib --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-gnu-unique-object
> --enable-languages=c,c++,objc,obj-c++,java,fortran,ada
> --enable-java-awt=gtk --disable-dssi
> --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
> --enable-libgcj-multifile --enable-java-maintainer-mode
> --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
> --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
> --build=x86_64-redhat-linux
> Thread model: posix
> gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
>
> Thank you.
>
>
>
> 2013/6/3 Bei Guan <gbtju85@gmail.com>
>
>> Hi,
>>
>> I compile the stubdom when I install xen-4.3-unstable, but there is an
>> error about the newlibc linked library. Do you have any ideas to solved
>> this problem? The output of "make install" is attached below.
>>
>> According to the functions "__ctype_ptr" and "__getreent" in the output
>> that are very very basic ones, maybe the problem is something related to
>> the environment. However, with several days' work, I still have no idea.
>> If this problem cannot be solved, can I just make "newlib" not to compile
>> the doc? Maybe makedoc is not so important. But, how to do it?
>> Any suggestions is appreciated. Thank you very much.
>>
>>
>> # make install-stubdom
>> ...
>> gcc -g -O2 -o makedoc makedoc.o
>> makedoc.o: In function `at':
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:125: undefined
>> reference to `__ctype_ptr'
>> makedoc.o: In function `nextword':
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:1067: undefined
>> reference to `__ctype_ptr'
>> makedoc.o: In function `quickref':
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:470: undefined
>> reference to `__getreent'
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:477: undefined
>> reference to `__getreent'
>> makedoc.o: In function `kill_bogus_lines':
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:867: undefined
>> reference to `__ctype_ptr'
>> makedoc.o: In function `bulletize':
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:679: undefined
>> reference to `__ctype_ptr'
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:679: undefined
>> reference to `__ctype_ptr'
>> makedoc.o: In function `do_fancy_stuff':
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:735: undefined
>> reference to `__ctype_ptr'
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:744: undefined
>> reference to `__ctype_ptr'
>> makedoc.o:/root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/
>> newlib/doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:378: more
>> undefined references to `__ctype_ptr' follow
>> makedoc.o: In function `lookup_word':
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:1151: undefined
>> reference to `__getreent'
>> makedoc.o: In function `compile':
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:1332: undefined
>> reference to `__getreent'
>> makedoc.o: In function `main':
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:1431: undefined
>> reference to `__getreent'
>> makedoc.o: In function `write_buffer':
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:103: undefined
>> reference to `__getreent'
>> makedoc.o: In function `remove_noncomments':
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:311: undefined
>> reference to `__ctype_ptr'
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:328: undefined
>> reference to `__ctype_ptr'
>> makedoc.o: In function `perform':
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:1185: undefined
>> reference to `__getreent'
>> makedoc.o: In function `main':
>> /root/Xen/xen-4.3-unstable/stubdom/newlib-x86_64/x86_64-xen-elf/newlib
>> /doc/../../../../newlib-1.16.0/newlib/doc/makedoc.c:1446: undefined
>> reference to `__getreent'
>> collect2: ld returned 1 exit status
>> make[5]: *** [makedoc] Error 1
>> make[5]: Leaving directory `/root/Xen/xen-4.3-unstable/stubdom/newlib
>> -x86_64/x86_64-xen-elf/newlib/doc'
>> make[4]: *** [all-recursive] Error 1
>> make[4]: Leaving directory `/root/Xen/xen-4.3-unstable/stubdom/newlib
>> -x86_64/x86_64-xen-elf/newlib'
>> make[3]: *** [all] Error 2
>> make[3]: Leaving directory `/root/Xen/xen-4.3-unstable/stubdom/newlib
>> -x86_64/x86_64-xen-elf/newlib'
>> make[2]: *** [all-target-newlib] Error 2
>> make[2]: Leaving directory `/root/Xen/xen-4.3-unstable/stubdom/newlib
>> -x86_64'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory `/root/Xen/xen-4.3-unstable/stubdom/newlib
>> -x86_64'
>> make: *** [cross-root-x86_64/x86_64-xen-elf/lib/libc.a] Error 2
>>
>>
Your issue seems to be unrelated to the TPM code; newlib is also used in
other stub domains. My Centos6.4 test system does not have this problem,
although I don't think the release matters - it's likely a package you
have installed that I do not. You may want to try cleaning out the entire
stubdom directory (with rm) and force everything to re-unpack.
--
Daniel De Graaf
National Security Agency
prev parent reply other threads:[~2013-06-03 15:19 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-22 13:56 Install vTPM on Xen-4.2.2 Bei Guan
2013-05-28 20:00 ` Daniel De Graaf
2013-05-29 9:56 ` George Dunlap
2013-05-29 11:23 ` Bei Guan
2013-05-29 11:59 ` Daniel De Graaf
2013-06-04 9:03 ` Bei Guan
2013-06-04 14:02 ` Daniel De Graaf
2013-06-05 8:36 ` Bei Guan
2013-06-05 12:53 ` Bei Guan
2013-06-05 15:19 ` Daniel De Graaf
2013-06-06 2:44 ` Bei Guan
2013-06-06 2:57 ` Bei Guan
2013-06-06 13:53 ` Daniel De Graaf
2013-06-06 16:25 ` Bei Guan
2013-06-06 16:54 ` Daniel De Graaf
2013-05-29 11:56 ` Daniel De Graaf
2013-05-29 12:01 ` George Dunlap
2013-06-03 7:43 ` Bei Guan
2013-06-03 7:45 ` Bei Guan
2013-06-03 15:19 ` Daniel De Graaf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51ACB41A.40006@tycho.nsa.gov \
--to=dgdegra@tycho.nsa.gov \
--cc=gbtju85@gmail.com \
--cc=george.dunlap@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.