All of lore.kernel.org
 help / color / mirror / Atom feed
* Stubdom GMP build failure for gcc 6
@ 2016-10-28 12:10 Wei Liu
  2016-10-28 12:29 ` Jan Beulich
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Wei Liu @ 2016-10-28 12:10 UTC (permalink / raw)
  To: Xen-devel; +Cc: jgross, xuquan8, Wei Liu, Ian Jackson, samuel.thibault, dgdegra

Hi all

There have been a few reports on stubdom build failure with gcc 6
toolchain. I spent some time yesterday to figure what went wrong. Here
is what I found.

When building GMP library, its configure script generates small C
programs to determine various aspects of the system. Unfortunately the
build rune for it is incorrect, so the test program ends up consuming
newlib headers while linking against the host glibc. It's amazing that
this even worked in the past few years! :-)

Unfortunately my attempt to fix it by providing LDFLAGS="-nostdlib
-LXXX" doesn't work. It turns out that there is no crt generated in
newlib. I'm not sure if that's because the newlib port is incomplete or
I haven't discovered a way to teach it to generate one.

So what should we do with this? I'm not sure if I can come up with a
non-intrusive patch quickly.  GMP is only used by tpm emulator, so for
the imminent 4.8 release I can write a patch to disable building that.

Ultimately we need to have a proper solution, because there can be other
breakages in the future. And I do wish users who need tpm emulator can
continue to use it. I don't have a clear answer as to how many people
care about this and how can we fix it.

Thoughts?

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Stubdom GMP build failure for gcc 6
@ 2016-10-29  5:16 Pry Mar
  2016-10-29 17:28 ` Wei Liu
  0 siblings, 1 reply; 13+ messages in thread
From: Pry Mar @ 2016-10-29  5:16 UTC (permalink / raw)
  To: xen-devel, Wei Liu


[-- Attachment #1.1: Type: text/plain, Size: 460 bytes --]

Wei,

[PATCH] glibc 223 fix gmp-crosslib config error
http://paste.fedoraproject.org/462654/14777176/

I've used this patch since last spring. This is a configure bug which stops
the Stubdom build. The bug first appeared in Ubuntu 16.04 when they went to
libc6 2.23+. Next, Stretch followed with the same upgrade. It has nothing
to do with gcc version.

In the above patch, I posted a link to the developer on the aur-xen list
that saw the solution.

PryMar56

[-- Attachment #1.2: Type: text/html, Size: 610 bytes --]

[-- Attachment #2: Type: text/plain, Size: 127 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-10-29 17:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-28 12:10 Stubdom GMP build failure for gcc 6 Wei Liu
2016-10-28 12:29 ` Jan Beulich
2016-10-28 12:50   ` Wei Liu
2016-10-28 12:56     ` Jan Beulich
2016-10-28 12:59       ` Wei Liu
2016-10-29 17:19     ` Wei Liu
2016-10-28 13:30 ` Ian Jackson
2016-10-28 13:36   ` Wei Liu
2016-10-28 15:42     ` Ian Jackson
2016-10-28 14:44 ` Juergen Gross
2016-10-28 15:38   ` Wei Liu
2016-10-29  5:16 Pry Mar
2016-10-29 17:28 ` Wei Liu

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.