NASM - The Netwide Assembler
NASM Forum => Programming with NASM => Topic started by: Vadym Kholodenko on April 30, 2008, 07:36:36 AM
-
Hi all!
I'm trying to build nasm on the iPhone with the gcc 4.2.1 running natively on iPhone. After successful ./configure I type 'make' and receive next error:
gcc -c -g -O2 -W -Wall -std=c99 -pedantic -DHAVE-CONFIG_H -I. -I. -o nasm.o nasm.c
In file included from preproc.h:12,
from nasm.c:25:
pptok.h:19: error: expected ',' or '}' before '*' token
Here is the listing of the pptok.h, line 19:
PP_ELIFNUM = 14,
Thanks in advance with any support,
Regards,
Vadym Kholodenko
-
I really don't know what to make of that, Vadym. Obviously, you've looked at it and don't see any obvious tokens out of place, eh? That file is created by Perl, from pptok.dat, but is distributed as part of the package, all made. It *might* help to recreate it (Got Perl on your iPhone? .... iPhone, you say? What are you gonna assemble on it???). I doubt it, if you don't see anything wrong.
The line numbers have changed in the very latest (not yet "released") version of Nasm, available here:
ftp://ftp.zytor.com/pub/nasm/snapshots (http://ftp://ftp.zytor.com/pub/nasm/snapshots)
I can't imagine that'll make any difference. Won't hurt to try... see where (if) the error occurs there.
I dunno. "Sounds like a compiler bug to me!" :)
Best,
Frank
-
Post the while pptok.h file please.