Depending on from where bison is called, the file might not end up in the same directory as the .y file, but the location of the Makefile. This has been seen on FreeBSD.