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