From: Andy W. <abw...@gm...> - 2018-02-19 00:35:26
|
I had not previously tried building with OpenWatcom, I had been building with GCC 4.9.2 and the change to ilog2.h are needed for it. I can build with OW with or without the changes to ilog2.h. With OpenWatcom (after changing the directory separators from forward slashes to back slashes in openwcom.mak) I was able to successfully build nasm with or without the below changes. Cyrill Gorcunov wrote: > On Fri, Feb 16, 2018 at 10:40:21AM +0300, Cyrill Gorcunov wrote: >> On Thu, Feb 15, 2018 at 12:09:17AM -0600, Andy Willis wrote: >>> I receive the following error building latest trunk: >>> ./include/ilog2.h:84:30: error: no previous declaration for 'ilog2_32' >>> [-Werror= >>> missing-declarations] >>> extern_inline int const_func ilog2_32(uint32_t v) >> >> I'll take a look on the weekend. Thanks for report, Andy! > > Andy, could you please try the following change? I don't > have any of OS/2 compilers to test myself. > --- > diff --git a/Mkfiles/openwcom.mak b/Mkfiles/openwcom.mak > index 9acb50a9..1647ba18 100644 > --- a/Mkfiles/openwcom.mak > +++ b/Mkfiles/openwcom.mak > @@ -136,7 +136,7 @@ NASMLIB = nasm.lib > nasm$(X): $(NASM) $(NASMLIB) > $(LD) $(LDFLAGS) name nasm$(X) libr {$(NASMLIB) $(LIBS)} file {$(NASM)} > > -ndisasm$(X): $(NDISASM) $(LIBOBJ) > +ndisasm$(X): $(NDISASM) $(NASMLIB) > $(LD) $(LDFLAGS) name ndisasm$(X) libr {$(NASMLIB) $(LIBS)} file {$(NDISASM)} > > nasm.lib: $(LIBOBJ) > |