[Nasm-bugs] [Bug 3392372] New: "insnsa.c", line 8: warning: initializer will be sign-extended: -1

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Tue Nov 15 10:14:06 PST 2016


https://bugzilla.nasm.us/show_bug.cgi?id=3392372

            Bug ID: 3392372
           Summary: "insnsa.c", line 8: warning: initializer will be
                    sign-extended: -1
           Product: NASM
           Version: 2.12.xx
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: noloader at gmail.com
                CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us

I'm working on Solaris 11.3 with Intel hardware. It looks like char is signed
on this platform, while NASM sources expect it to be unsigned.

I'm happy to provide remote access to the machine, if desired. All I need is an
SSH public key or authorized_keys file.

**********

solaris:nasm-2.12.02$ CC=/opt/solarisstudio12.4/bin/cc MAKE=gmake ./configure 
checking for prefix by checking for nasm... /usr/local/bin/nasm
checking for gcc... /opt/solarisstudio12.4/bin/cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether /opt/solarisstudio12.4/bin/cc accepts -g... yes
checking for /opt/solarisstudio12.4/bin/cc option to accept ISO C89... none
needed
checking how to run the C preprocessor... /opt/solarisstudio12.4/bin/cc -E
checking for grep that handles long lines and -e... /bin/ggrep
checking for egrep... /bin/ggrep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for gcc... (cached) /opt/solarisstudio12.4/bin/cc
checking whether we are using the GNU C compiler... (cached) no
checking whether /opt/solarisstudio12.4/bin/cc accepts -g... (cached) yes
checking for /opt/solarisstudio12.4/bin/cc option to accept ISO C89... (cached)
none needed
checking whether ln -s works... yes
checking whether gmake sets $(MAKE)... yes
checking for a BSD-compatible install... /bin/ginstall -c
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict__
checking for size_t... yes
checking if /opt/solarisstudio12.4/bin/cc has a working bool type... yes
checking whether byte ordering is bigendian... no
checking if /opt/solarisstudio12.4/bin/cc accepts -W... no
checking if /opt/solarisstudio12.4/bin/cc accepts -Wall... no
checking if /opt/solarisstudio12.4/bin/cc accepts -std=c99... yes
checking if /opt/solarisstudio12.4/bin/cc accepts -fwrapv... no
checking for nroff... nroff
checking for asciidoc... no
checking for xmlto... no
checking for acrodist... no
checking for ps2pdf... ps2pdf
checking for pstopdf... no
configure: WARNING: No acsciidoc package found
configure: WARNING: No xmlto package found
checking for ANSI C header files... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for inttypes.h... (cached) yes
checking for strings.h... (cached) yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for strcspn... yes
checking for strspn... yes
checking for vsnprintf... yes
checking for _vsnprintf... no
checking for snprintf... yes
checking for _snprintf... no
checking for strcasecmp... yes
checking for stricmp... no
checking for strncasecmp... yes
checking for strnicmp... no
checking for strsep... yes
checking for strlcpy... yes
checking for getuid... yes
checking for getgid... yes
checking for realpath... yes
checking for canonicalize_file_name... yes
checking for _fullpath... no
checking for pathconf... yes
checking whether strcasecmp is declared... yes
checking whether stricmp is declared... no
checking whether strncasecmp is declared... yes
checking whether strnicmp is declared... no
checking whether strsep is declared... yes
checking whether strlcpy is declared... yes
checking if /opt/solarisstudio12.4/bin/cc accepts -pedantic... yes
checking if /opt/solarisstudio12.4/bin/cc accepts
-Werror=unknown-warning-option... no
checking if /opt/solarisstudio12.4/bin/cc accepts -Wpedantic-ms-format... no
checking if /opt/solarisstudio12.4/bin/cc accepts -Wc90-c99-compat... no
checking if /opt/solarisstudio12.4/bin/cc accepts -Wlong-long... no
checking if /opt/solarisstudio12.4/bin/cc accepts -Werror=implicit... no
checking if /opt/solarisstudio12.4/bin/cc accepts -Werror=missing-braces... no
checking if /opt/solarisstudio12.4/bin/cc accepts -Werror=return-type... no
checking if /opt/solarisstudio12.4/bin/cc accepts -Werror=trigraphs... no
checking if /opt/solarisstudio12.4/bin/cc accepts -Werror=pointer-arith... no
checking if /opt/solarisstudio12.4/bin/cc accepts -Werror=strict-prototypes...
no
checking if /opt/solarisstudio12.4/bin/cc accepts -Werror=missing-prototypes...
no
checking if /opt/solarisstudio12.4/bin/cc accepts
-Werror=missing-declarations... no
checking if /opt/solarisstudio12.4/bin/cc accepts -Werror=comment... no
checking if /opt/solarisstudio12.4/bin/cc accepts -Werror=vla... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating rdoff/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: executing default-1 commands
solaris:nasm-2.12.02$ gmake -j 2
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o nasm.o nasm.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o nasmlib.o nasmlib.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o ver.o ver.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o raa.o raa.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o saa.o saa.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o rbtree.o rbtree.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o srcfile.o srcfile.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o realpath.o realpath.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o float.o float.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o insnsa.o insnsa.c
"insnsa.c", line 8: warning: initializer will be sign-extended: -1
"insnsa.c", line 8: warning: initializer will be sign-extended: -1
"insnsa.c", line 8: warning: initializer will be sign-extended: -1
"insnsa.c", line 8: warning: initializer will be sign-extended: -1
"insnsa.c", line 8: warning: initializer will be sign-extended: -1
"insnsa.c", line 8: warning: initializer does not fit or is out of range: -1
"insnsa.c", line 8: warning: initializer does not fit or is out of range: -1
"insnsa.c", line 8: warning: initializer does not fit or is out of range: -1
"insnsa.c", line 8: warning: initializer does not fit or is out of range: -1
"insnsa.c", line 8: warning: initializer does not fit or is out of range: -1
...
"insnsa.c", line 13090: warning: initializer will be sign-extended: -1
"insnsa.c", line 13090: warning: initializer will be sign-extended: -1
"insnsa.c", line 13090: warning: initializer will be sign-extended: -1
"insnsa.c", line 13090: warning: initializer will be sign-extended: -1
"insnsa.c", line 13090: warning: initializer will be sign-extended: -1
"insnsa.c", line 13090: warning: initializer does not fit or is out of range:
-1
"insnsa.c", line 13090: warning: initializer does not fit or is out of range:
-1
"insnsa.c", line 13090: warning: initializer does not fit or is out of range:
-1
"insnsa.c", line 13090: warning: initializer does not fit or is out of range:
-1
"insnsa.c", line 13090: warning: initializer does not fit or is out of range:
-1
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o output/outas86.o output/outas86.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o output/outrdf2.o output/outrdf2.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o output/outdbg.o output/outdbg.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o output/outieee.o output/outieee.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o output/outmacho.o output/outmacho.c
"output/outmacho.c", line 191: warning: initializer does not fit or is out of
range: 0x80000400
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o md5c.o md5c.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o output/codeview.o output/codeview.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o preproc.o preproc.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o quote.o quote.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o pptok.o pptok.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o macros.o macros.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o listing.o listing.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o eval.o eval.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o exprlib.o exprlib.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o stdscan.o stdscan.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o strfunc.o strfunc.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o tokhash.o tokhash.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o regvals.o regvals.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o regflags.o regflags.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o ilog2.o ilog2.c
"ilog2.c", line 86: warning: integer overflow detected: op "<<"
"ilog2.c", line 132: warning: integer overflow detected: op "<<"
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o lib/strlcpy.o lib/strlcpy.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o preproc-nop.o preproc-nop.c
"config.h", line 181: warning: macro redefined: _FILE_OFFSET_BITS
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o disp8.o disp8.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o iflag.o iflag.c
"config.h", line 181: warning: macro redefined: _FILE_OFFSET_BITS
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o ndisasm.o ndisasm.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o disasm.o disasm.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o sync.o sync.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o insnsd.o insnsd.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o insnsn.o insnsn.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o regs.o regs.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I.
-o regdis.o regdis.c
cd rdoff && gmake all
gmake[1]: Entering directory `/export/namenasm-2.12.02/rdoff'
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I..
-I.. rdfdump.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I..
-I.. rdoff.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I..
-I.. ldrdf.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I..
-I.. symtab.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I..
-I.. collectn.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I..
-I.. rdlib.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I..
-I.. segtab.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I..
-I.. hash.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I..
-I.. rdx.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I..
-I.. rdfload.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I..
-I.. rdflib.c
/opt/solarisstudio12.4/bin/cc -c -g -std=c99 -pedantic -DHAVE_CONFIG_H -I. -I..
-I.. rdf2bin.c
rm -f rdf2com && ln -s rdf2bin rdf2com
rm -f rdf2ith && ln -s rdf2bin rdf2ith
rm -f rdf2ihx && ln -s rdf2bin rdf2ihx
rm -f rdf2srec && ln -s rdf2bin rdf2srec
/opt/solarisstudio12.4/bin/cc  -o rdfdump rdfdump.o rdoff.o
/opt/solarisstudio12.4/bin/cc  -o ldrdf ldrdf.o rdoff.o symtab.o collectn.o
rdlib.o segtab.o hash.o ../nasmlib.o
Undefined                       first referenced
 symbol                             in file
ilog2_32                            ../nasmlib.o
ld: fatal: symbol referencing errors
gmake[1]: *** [ldrdf] Error 2
gmake[1]: Leaving directory `/export/namenasm-2.12.02/rdoff'
gmake: *** [rdf] Error 2
gmake: *** Waiting for unfinished jobs....
solaris:nasm-2.12.02$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list