This is the mail archive of the gcc-bugs@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]

[Bug lto/50293] New: -flto fails if GCC is installed in directory with space in path name


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50293

             Bug #: 50293
           Summary: -flto fails if GCC is installed in directory with
                    space in path name
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jon@beniston.com


The majority of GCC seems to run fine if installed in a directory with spaces
in the filename. However, there seems to be an issue if -flto is used in 4.6.1
that wasn't an issue in 4.5.1.

collect2 version 4.6.1 (arm/ELF)
/cygdrive/c/Program
Files/gnu/bin/../lib/gcc/arm-elf/4.6.1/../../../../arm-elf/bin/ld -plugin
/cygdrive/c/Program
Files/gnu/bin/../libexec/gcc/arm-elf/4.6.1/cyglto_plugin-0.dll
-plugin-opt=/cygdrive/c/Program
Files/gnu/bin/../libexec/gcc/arm-elf/4.6.1/lto-wrapper.exe
-plugin-opt=-fresolution=/tmp/ccRdw4BE.res -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lgcc --relax -EL -v -L/cygdrive/c/Program
Files/gnu/bin/../lib/gcc/arm-elf/4.6.1/cyclone -L/cygdrive/c/Program
Files/gnu/bin/../lib/gcc/arm-elf/4.6.1/../../../../arm-elf/lib/cyclone
-L/cygdrive/c/Program Files/gnu/bin/../lib/gcc/arm-elf/4.6.1
-L/cygdrive/c/Program Files/gnu/bin/../lib/gcc -L/cygdrive/c/Program
Files/gnu/bin/../lib/gcc/arm-elf/4.6.1/../../../../arm-elf/lib /tmp/cciZHvSE.o
-lgcc -T crt0.ld -lgcc -T cyclone.ld
/cygdrive/c/Program
Files/gnu/bin/../lib/gcc/arm-elf/4.6.1/../../../../arm-elf/bin/ld:
/cygdrive/c/Program: error in plugin cleanup (ignored)
/cygdrive/c/Program
Files/gnu/bin/../lib/gcc/arm-elf/4.6.1/../../../../arm-elf/bin/ld:
/cygdrive/c/Program: error loading plugin
collect2: ld returned 1 exit status

I tried quoting the options in the specs file, but that didn't seem to help.
i.e.:

 -plugin "%(linker_plugin_file)"     -plugin-opt="%(lto_wrapper)"


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