This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/29772] New: using @sourcelist-file leads to wrong flag creation
- From: "mtrudel at gmx dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 8 Nov 2006 21:53:17 -0000
- Subject: [Bug java/29772] New: using @sourcelist-file leads to wrong flag creation
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Create a dir named "foo bar". Put the attached HelloWorld.java,
HelloWorld2.java and source.txt in it. source.txt has this two lines:
foo\ bar/HelloWorld.java
foo\ bar/HelloWorld2.java
Change to the parent folder and type:
gcj --main=HelloWorld -o HelloWorld @"foo bar/source.txt"
It will fail with:
foo:0: warning: duplicate class will only be compiled once
fatal error: can't open foo: No such file or directory
compilation terminated.
It will work when:
- -o is omitted
- the space between -o and HelloWorld is removed:
gcj --main=HelloWorld -oHelloWorld @"foo bar/source.txt"
- the files in source.txt have no spaces
- when only one file is in source.txt (with spaces)
--
Summary: using @sourcelist-file leads to wrong flag creation
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mtrudel at gmx dot ch
GCC build triplet: independent
GCC host triplet: independent
GCC target triplet: independent
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29772