Re: YACC woes(with XCode)
Re: YACC woes(with XCode)
- Subject: Re: YACC woes(with XCode)
- From: "Michael Miller" <email@hidden>
- Date: Sun, 30 Sep 2007 18:15:23 -0400
On 9/30/07, Fritz Anderson <email@hidden> wrote:
>
> On 30 Sep 2007, at 1:11 PM, Michael Miller wrote:
>
> > On 9/30/07, Fritz Anderson <email@hidden> wrote:
> >>
> >> On 30 Sep 2007, at 12:19 PM, Michael Miller wrote:
> >>
> >>> On XCode 2.4, the code I'm working with(which is very large)
> >>> compiles
> >>> fine. However, on XCode 2.5, the YACC compiling doesn't work as
> >>> expected. Specifically, YACC outputs .hpp files instead of .h
> >>> files(same content, different extension). Right now, XCode deals
> >>> with
> >>> the compiling of the .y files. How can I force XCode to tell YACC to
> >>> output .h files instead of .hpp files? This is an annoying change,
> >>> as
> >>> most other platforms(including XCode 2.4) output .h files.
> >>
> >> 1. According to the man page (man bison), bison will output .cpp/.hpp
> >> files if the grammar file has the .ypp suffix. Is this the case?
> > No, the file is .y, not .ypp
> >> 2. What is the command line in the build transcript (Build Results
> >> window -> click the lines-of-text button at the bottom left of the
> >> upper panel)?
> >>
> >
> > Much of this is probably uninteresting, but I've posted the entire
> > output at http://pastebin.com/m58ee0637 as I don't want to spam the
> > list with that much code.
>
> Doing a find on "yacc" disclosed the line I asked about:
>
> > usr/bin/yacc\ -d\ -o\ \"${DERIVED_FILES_DIR}/${CURRENT_ARCH}/$
> > {INPUT_FILE_BASE}.y.cpp\"\ \"${INPUT_FILE_PATH}\"
>
> ... and the interesting environment variables:
>
> > setenv INPUT_FILE_NAME indra.y
> > setenv INPUT_FILE_PATH "/Users/mike/Desktop/linden 2/indra/
> > newview/../lscript/lscript_compile/indra.y"
> > setenv INPUT_FILE_REGION_PATH_COMPONENT
> > setenv INPUT_FILE_SUFFIX .y
>
> ... and all this was in response to the build task:
>
> > PhaseScriptExecution "/Users/mike/Desktop/linden 2/indra/newview/
> > build/macview.build/Development/llcommon.build/Script-dd3b20ef.sh"
>
> From which I glean that the yacc command was given an output
> parameter ending in .cpp . So there's your problem. We just need to
> find out where it comes from.
>
> The "PhaseScriptExecution" designation makes me suspicious. Is this a
> Run Script phase? Did you write the script?
No. In fact, I hardly am familiar with the source in its entirety(It's
the Second Life source code, if you're curious.). Moreover, I cannot
find the script(I just assumed it was made by XCode at compile-time.
> Or is indra.y in your Compile Sources phase? I believe yacc grammar
> files are part of the Rules listing, meaning the Xcode build system
> knows what to do with them automatically.
Yes, it's in the Compile Sources phase.
Is there any other information which would be useful in diagnosing the problem?
Thanks,
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden