New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty executable #3364
Comments
Comment author: administrator
You're right: 'ocamlc -o junk' seems to do nothing for me also. I guess I'd still argue, though, that giving a warning message would be much
|
Comment author: administrator Hi Benli,
I'm surprised, because this (highly logical :-) behavior was removed ocamlc -a -o junk.cma still generates an empty junk.cma library, but Cheers,
|
Comment author: administrator Can't reproduce in 3.04+ |
Comment author: administrator From: bcpierce@cis.upenn.edu
I particularly like gtar's message in such case: $ gtar cvf test.tar Jacques |
Original bug ID: 1174
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Benjamin Pierce
Version: 3.04
OS: linux
Submission from: adsl-216-158-26-151.cust.oldcity.dca.net (216.158.26.151)
I just discovered (by means of a makefile bug) that if ocamlc is presented with
an empty list of object files, like
it will happily create an executable file junk that, when run, does nothing.
I guess this is not precisely a bug, but it did cost me some time and the
present
behavior does not seem very useful. How about disallowing empty lists of object
files?
Thanks,
The text was updated successfully, but these errors were encountered: