Yasm 0.7.0 make error

dfeustel at mindspring.com dfeustel at mindspring.com
Wed Apr 16 00:59:58 PDT 2008


On 64-bit AMD OpenBSD version 4.2 release,
configure worked, make dies with sig 11.

2nd make attempt gets much further, but still errors out
=================================================================

2/home/daf/Yasm/yasm-0.7.0}make
gcc -std=gnu99 -I.  -c -o genperf.o `test -f tools/genperf/genperf.c ||
echo './'`tools/genperf/genperf.c
gcc -std=gnu99 -I.  -c -o gp-perfect.o `test -f tools/genperf/perfect.c
|| echo './'`tools/genperf/perfect.c
gcc -std=gnu99 -I.  -c -o gp-phash.o `test -f libyasm/phash.c || echo
'./'`libyasm/phash.c
gcc -std=gnu99 -I.  -c -o gp-xmalloc.o `test -f libyasm/xmalloc.c ||
echo './'`libyasm/xmalloc.c
gcc -std=gnu99 -I.  -c -o gp-xstrdup.o `test -f libyasm/xstrdup.c ||
echo './'`libyasm/xstrdup.c
gcc -std=gnu99 -o genperf  genperf.o gp-perfect.o  gp-phash.o
gp-xmalloc.o gp-xstrdup.o 
genperf.o(.text+0x133f): In function `main':
: warning: sprintf() is often misused, please use snprintf()
./genperf x86insn_nasm.gperf x86insn_nasm.c
found distinct (A,B) on attempt 19
built perfect hash table of size 512
./genperf x86insn_gas.gperf x86insn_gas.c
found distinct (A,B) on attempt 349
built perfect hash table of size 512
./genperf ./modules/arch/x86/x86cpu.gperf x86cpu.c
found distinct (A,B) on attempt 4
built perfect hash table of size 64
./genperf ./modules/arch/x86/x86regtmod.gperf x86regtmod.c
found distinct (A,B) on attempt 1
built perfect hash table of size 128
gcc -std=gnu99 -I.  -c -o re2c-main.o `test -f tools/re2c/main.c || echo
'./'`tools/re2c/main.c
gcc -std=gnu99 -I.  -c -o re2c-code.o `test -f tools/re2c/code.c || echo
'./'`tools/re2c/code.c
gcc -std=gnu99 -I.  -c -o re2c-dfa.o `test -f tools/re2c/dfa.c || echo
'./'`tools/re2c/dfa.c
gcc -std=gnu99 -I.  -c -o re2c-parser.o `test -f tools/re2c/parser.c ||
echo './'`tools/re2c/parser.c
gcc -std=gnu99 -I.  -c -o re2c-actions.o `test -f tools/re2c/actions.c
|| echo './'`tools/re2c/actions.c
gcc -std=gnu99 -I.  -c -o re2c-scanner.o `test -f tools/re2c/scanner.c
|| echo './'`tools/re2c/scanner.c
gcc -std=gnu99 -I.  -c -o re2c-mbo_getopt.o `test -f
tools/re2c/mbo_getopt.c || echo './'`tools/re2c/mbo_getopt.c
gcc -std=gnu99 -I.  -c -o re2c-substr.o `test -f tools/re2c/substr.c ||
echo './'`tools/re2c/substr.c
gcc -std=gnu99 -I.  -c -o re2c-translate.o `test -f
tools/re2c/translate.c || echo './'`tools/re2c/translate.c
gcc -std=gnu99 -o re2c  re2c-main.o re2c-code.o  re2c-dfa.o
re2c-parser.o  re2c-actions.o re2c-scanner.o  re2c-mbo_getopt.o
re2c-substr.o  re2c-translate.o 
./re2c -s -o lc3bid.c ./modules/arch/lc3b/lc3bid.re
./re2c -b -o gas-token.c ./modules/parsers/gas/gas-token.re
./re2c -b -o nasm-token.c ./modules/parsers/nasm/nasm-token.re
*** Signal 11

Stop in /home/daf/Yasm/yasm-0.7.0 (line 3626 of Makefile).
2/home/daf/Yasm/yasm-0.7.0}
=====================================================================
2nd make gets much further, but still errors out.

gcc -std=gnu99 -DHAVE_CONFIG_H -I.   -I/usr/X11R6/include
-I/usr/local/include  -g -O2 -MT yasm-options.o -MD -MP -MF
.deps/yasm-options.Tpo -c -o yasm-options.o `test -f
'frontends/yasm/yasm-options.c' || echo
'./'`frontends/yasm/yasm-options.c
mv -f .deps/yasm-options.Tpo .deps/yasm-options.Po
gcc -std=gnu99  -g -O2   -o yasm yasm.o yasm-options.o libyasm.a
/usr/local/lib/libintl.a /usr/local/lib/libiconv.a 
libyasm.a(nasm-pp.o)(.text+0x5d46): In function `error':
modules/preprocs/nasm/nasm-pp.c:4178: warning: vsprintf() is often
misused, please use vsnprintf()
yasm.o(.text+0x19c3): In function `apply_preproc_builtins':
frontends/yasm/yasm.c:1122: warning: strcpy() is almost always misused,
please use strlcpy()
yasm-options.o(.text+0x2dc): In function `help_msg':
frontends/yasm/yasm-options.c:172: warning: sprintf() is often misused,
please use snprintf()
yasm.o(.text+0x19d2): In function `apply_preproc_builtins':
frontends/yasm/yasm.c:1123: warning: strcat() is almost always misused,
please use strlcat()
libyasm.a(nasm-parse.o)(.text+0x44): In function `get_peek_token':
modules/parsers/nasm/nasm-parse.c:78: undefined reference to
`nasm_parser_lex'
libyasm.a(nasm-parse.o)(.text+0x14f): In function `demand_eol_':
modules/parsers/nasm/nasm-parse.c:132: undefined reference to
`nasm_parser_lex'
libyasm.a(nasm-parse.o)(.text+0x2da): In function `nasm_parser_parse':
modules/parsers/nasm/nasm-parse.c:211: undefined reference to
`nasm_parser_lex'
libyasm.a(nasm-parse.o)(.text+0x540): In function `parse_line':
modules/parsers/nasm/nasm-parse.c:350: undefined reference to
`nasm_parser_lex'
libyasm.a(nasm-parse.o)(.text+0x578):modules/parsers/nasm/nasm-parse.c:315:
undefined reference to `nasm_parser_lex'
libyasm.a(nasm-parse.o)(.text+0x5a7):modules/parsers/nasm/nasm-parse.c:320:
more undefined references to `nasm_parser_lex' follow
collect2: ld returned 1 exit status
*** Error code 1

Stop in /home/daf/Yasm/yasm-0.7.0 (line 1756 of Makefile).
*** Error code 1

Stop in /home/daf/Yasm/yasm-0.7.0 (line 3052 of Makefile).
*** Error code 1

Stop in /home/daf/Yasm/yasm-0.7.0 (line 1600 of Makefile).
2/home/daf/Yasm/yasm-0.7.0}



More information about the yasm-devel mailing list