This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Front end development question


Ian,
Thanks for your prompt reply. I've tried running my driver the following ways:
./gcc test.oas
./goas test.oas
./x86_64-apple-darwin11.4.0-goas test.'s

As per your suggestion I have tried with -v but unfortunately this hasn't shed any light on the problem for me:
11:21@legolas:.+4.7.0/local/bin$ ./gcc -v test.oas 
Using built-in specs.
COLLECT_GCC=./gcc
COLLECT_LTO_WRAPPER=/Users/jreese/Documents/school/edinburgh/project/builds/oas-gcc4.7.0/local/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.0/lto-wrapper
Target: x86_64-apple-darwin11.4.0
Configured with: ../srcdir/configure --prefix=/Users/jreese/Documents/school/edinburgh/project/builds/oas-gcc4.7.0/local --enable-languages=oas --disable-bootstrap
Thread model: posix
gcc version 4.7.0 (GCC) 
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.4' '-v' '-mtune=core2'
/Users/jreese/Documents/school/edinburgh/project/builds/oas-gcc4.7.0/local/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.0/./goas test.oas -o /var/folders/vt/hvgcc42n5md9_c94crkb1j9h0000gn/T//ccUJwJ7w.s
goas: error: vfork: Operation timed out

(I've also done this for the other permutations of executing the driver…but it appears they are all doing the same thing in essence).
Is there something in this that perhaps makes sense to you? Thanks again for the reply.

Cheers,
Josh

On Jun 27, 2012, at 10:48 PM, Ian Lance Taylor wrote:

> Josh Reese <jreeseue@gmail.com> writes:
> 
>> Hello, I am working on a front end for GCC (and recently asked a question about the same front end). I have managed to compile and install my skeleton language but when I pass a file into gcc with my languages suffix the only thing that appears to happen is repeated calls to lang_specific_driver() in my spec.c file followed by an 'error: vfork: Operation timed out'. My lang_specific_driver() procedure is empty:
>> 
>> void lang_specific_driver (struct cl_decoded_option **in_decoded_options,
>>                     unsigned int *in_decoded_options_count,
>>                     int *in_added_libraries ATTRIBUTE_UNUSED) {
>> }
>> 
>> I've looked at several other front ends procedures to get some idea about what might be going wrong but I can't seem to find any problem here. What could be causing this procedure to happen multiple times and then crash? Any ideas would be greatly appreciated. 
> 
> How are you invoking your new frontend?
> 
> Try running your driver with the -v option to see what it is trying to
> do when it gets the vfork error.
> 
> Looking at libiberty/pex-unix.c, I think there is a minor bug there:
> when vfork fails consistently it does not return the correct errno
> value.  That is probably why you are seeing the otherwise
> incomprehensible "Operation timed out" error.
> 
> Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]