Re: [Xen-devel] [PATCH] mini-os: link to libgcc.a to fix build with gcc7

2017-06-30 Thread Olaf Hering
On Fri, Jun 30, Olaf Hering wrote: > On Fri, Jun 30, Wei Liu wrote: > > > On second thought I don't think we want to make this worse. So the > > change in this patch should be conditional on gcc. > > How whould I check for gcc in the Makefile? > In xen.git I see a conditional for clang. I dont h

Re: [Xen-devel] [PATCH] mini-os: link to libgcc.a to fix build with gcc7

2017-06-30 Thread Olaf Hering
On Fri, Jun 30, Wei Liu wrote: > On second thought I don't think we want to make this worse. So the > change in this patch should be conditional on gcc. How whould I check for gcc in the Makefile? In xen.git I see a conditional for clang. I dont have a clang at hand, perhaps it knows about "-prin

Re: [Xen-devel] [PATCH] mini-os: link to libgcc.a to fix build with gcc7

2017-06-30 Thread Wei Liu
On Fri, Jun 30, 2017 at 03:56:24PM +0100, Roger Pau Monné wrote: > On Fri, Jun 30, 2017 at 03:50:23PM +0100, Wei Liu wrote: > > On Fri, Jun 30, 2017 at 03:48:41PM +0100, Roger Pau Monné wrote: > > > On Fri, Jun 30, 2017 at 03:41:04PM +0100, Wei Liu wrote: > > > > CC minios-devel > > > > > > > > On

Re: [Xen-devel] [PATCH] mini-os: link to libgcc.a to fix build with gcc7

2017-06-30 Thread Roger Pau Monné
On Fri, Jun 30, 2017 at 03:50:23PM +0100, Wei Liu wrote: > On Fri, Jun 30, 2017 at 03:48:41PM +0100, Roger Pau Monné wrote: > > On Fri, Jun 30, 2017 at 03:41:04PM +0100, Wei Liu wrote: > > > CC minios-devel > > > > > > On Mon, Jun 26, 2017 at 03:28:35PM +0200, Olaf Hering wrote: > > > > gcc7 gener

Re: [Xen-devel] [PATCH] mini-os: link to libgcc.a to fix build with gcc7

2017-06-30 Thread Wei Liu
On Fri, Jun 30, 2017 at 03:48:41PM +0100, Roger Pau Monné wrote: > On Fri, Jun 30, 2017 at 03:41:04PM +0100, Wei Liu wrote: > > CC minios-devel > > > > On Mon, Jun 26, 2017 at 03:28:35PM +0200, Olaf Hering wrote: > > > gcc7 generates a call to __udivmoddi4 ... > > > > > > stubdom/mini-os-x86_32-g

Re: [Xen-devel] [PATCH] mini-os: link to libgcc.a to fix build with gcc7

2017-06-30 Thread Roger Pau Monné
On Fri, Jun 30, 2017 at 03:41:04PM +0100, Wei Liu wrote: > CC minios-devel > > On Mon, Jun 26, 2017 at 03:28:35PM +0200, Olaf Hering wrote: > > gcc7 generates a call to __udivmoddi4 ... > > > > stubdom/mini-os-x86_32-grub/mini-os.o: In function `_strtoll_r': > > stubdom/newlib-x86_32/i686-xen-elf

Re: [Xen-devel] [PATCH] mini-os: link to libgcc.a to fix build with gcc7

2017-06-30 Thread Wei Liu
CC minios-devel On Mon, Jun 26, 2017 at 03:28:35PM +0200, Olaf Hering wrote: > gcc7 generates a call to __udivmoddi4 ... > > stubdom/mini-os-x86_32-grub/mini-os.o: In function `_strtoll_r': > stubdom/newlib-x86_32/i686-xen-elf/newlib/libc/stdlib/../../../../../newlib-1.16.0/newlib/libc/stdlib/str