Author Topic: Build NASM on the iPhone - error  (Read 11127 times)

Vadym Kholodenko

  • Guest
Build NASM on the iPhone - error
« 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

nobody

  • Guest
Re: Build NASM on the iPhone - error
« Reply #1 on: May 01, 2008, 08:30:07 AM »
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

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

nobody

  • Guest
Re: Build NASM on the iPhone - error
« Reply #2 on: May 04, 2008, 01:49:48 AM »
Post the while pptok.h file please.