Skip to contentSkip to conversation

Processed: Re: [Xen-users] Error compiling Xen in configuring stubdom/gmp with glibc-2.23 on Arch Linux

DISCUSSION [email protected] 2 participants 4 messages Mar 9, 2016 – Oct 31, 2016 4 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1457311127.3237075.541322218.485CFC99@webmail.messagingengine.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Processing commands for [email protected]:

Quoted 1 line

create ^

Created new bug #53 rooted at `<1457311127.3237075.541322218.485CFC99@webmail.messagingengine.com>'
Title: `Re: [Xen-users] Error compiling Xen in configuring stubdom/gmp with glibc-2.23 on Arch Linux'

Quoted 1 line

thanks

Finished processing.

Modified/created Bugs:
- 53: http://bugs.xenproject.org/xen/bug/53 (new)

---
Xen Hypervisor Bug Tracker
See http://wiki.xen.org/wiki/Reporting_Bugs_against_Xen for information on reporting bugs Contact [email protected] with any infrastructure issues

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw

Re: [Xen-users] Error compiling Xen in configuring stubdom/gmp with glibc-2.23 on Arch Linux

In reply to a message not in the archive

graft 53 !
thanks

Post this message to xen-devel so that bug tracker can pick it up.

Quoted 40 lines · John Thomson

Hi,

I am encountering an error compiling Xen (4.6.1) in configuring stubdom/gmp on x86_64 Arch Linux.
I think it may be due to the system's glibc-2.23. System gcc is 5.3.0. Compiling was working fine before these system packages were updated. Other packages were updated at the same time, so I am not sure which to blame.

Error:
checking size of unsigned short... configure: error: cannot compute sizeof (unsigned short)
See `config.log' for more details.
Makefile:170: recipe for target 'gmp-x86_64' failed make[1]: *** [gmp-x86_64] Error 77

Analysing the error in the configure test program, ferror after fprintf always returns 1.
The program still appears to function as intended, and outputs the unsigned short size to conftest.val.
Appending a clearerr(f) after the fprintf (f, ...) calls appears to workaround.

When compiling the test program using system includes and libraries, ferror returns 0.

My guess is that this may be due to using newlib cross-root includes and the system’s glibc libraries.
I have not yet worked out how to resolve this. I have not been able to work out how to use -nostdlib and the cross-root libraries. I get errors for undefined functions.
Could I get some help resolving this, or where can I go from here?

The source for the configure test program and the gcc command configure used to compile should be here:
https://gitlab.com/johnth/aur-xen/issues/1

NixOS also appears to have run into this error:
https://github.com/NixOS/nixpkgs/issues/13590

Quoted 8 lines

Thank you,
--
John Thomson

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xen.org/xen-users

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#4 lore raw

Processing commands for [email protected]:

Quoted 1 line

graft 53 !

Graft `<[email protected]>' onto #53

Quoted 1 line

thanks

Finished processing.

Modified/created Bugs:
- 53: http://bugs.xenproject.org/xen/bug/53

---
Xen Hypervisor Bug Tracker
See http://wiki.xen.org/wiki/Reporting_Bugs_against_Xen for information on reporting bugs Contact [email protected] with any infrastructure issues

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw

Processing commands for [email protected]:

Quoted 1 line

close 53

Closing bug #53

Quoted 2 lines

thanks

Finished processing.

Modified/created Bugs:
- 53: http://bugs.xenproject.org/xen/bug/53

---
Xen Hypervisor Bug Tracker
See http://wiki.xen.org/wiki/Reporting_Bugs_against_Xen for information on reporting bugs Contact [email protected] with any infrastructure issues

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel