Building LLVM with -Cflto option
Original Reporter info from Mantis: Schmitty2005
-
Reporter name: Brian Schmit
Original Reporter info from Mantis: Schmitty2005
- Reporter name: Brian Schmit
Description:
Build worked fine with regular LLVM option. Adding -Cflto to OPT= caused this error:
FYI 'clean' was used in the make option as well.
make -C /home/bill/fpctrunk/trunk/rtl 'OPT=-Fl/usr/l
/bin/sh: 1: Syntax error: Unterminated quoted string
....
....
....
make[1]: *** [compiler_cycle] Error 2
make[1]: Leaving directory '/home/bill/fpctrunk/trunk'
Makefile:2885: recipe for target 'build-stamp.x86_64-linux' failed
make: *** [build-stamp.x86_64-linux] Error 2
When i manually run : make -C /home/bill/fpctrunk/trunk/rtl 'OPT=-Fl/usr/l' {NOTE THE QUOTE ADDED}, it will continue fine with that specific step.
Steps to reproduce:
Follow directions from :
https://wiki.freepascal.org/LLVM and add -Clfto to OPT='blah blah blah -Clfto'
Additional information:
This error was created when using the -CLflto option:
/bin/rm -f /home/bill/fpctrunk/trunk/rtl/units/x86_64-linux/prt0.o /home/bill/fpctrunk/o
/bin/rm -f /home/bill/fpctrunk/trunk/rtl/units/x86_64-linux/system.ppu /home/bill/fpctru
/bin/rm -f /home/bill/fpctrunk/trunk/rtl/units/x86_64-linux/math.rst /home/bill/fpctrunt
/bin/rm -f fpcmade.x86_64-linux x86_64-linux.fpm Package.fpc .s
/bin/rm -f script.res link.res *_script.res *_link.res
/bin/rm -f ./ppas.sh *_ppas.sh ppas.sh ppaslink.sh
make[7]: Leaving directory '/home/bill/fpctrunk/trunk/rtl/linux'
make[6]: Leaving directory '/home/bill/fpctrunk/trunk/rtl'
make[5]: Leaving directory '/home/bill/fpctrunk/trunk/compiler'
make rtl
make[5]: Entering directory '/home/bill/fpctrunk/trunk/compiler'
make -C /home/bill/fpctrunk/trunk/rtl 'OPT=-Fl/usr/l
/bin/sh: 1: Syntax error: Unterminated quoted string
Makefile:4688: recipe for target 'rtl' failed
make[5]: *** [rtl] Error 2
make[5]: Leaving directory '/home/bill/fpctrunk/trunk/compiler'
Makefile:4529: recipe for target 'next' failed
make[4]: *** [next] Error 2
make[4]: Leaving directory '/home/bill/fpctrunk/trunk/compiler'
Makefile:4536: recipe for target 'ppc1' failed
make[3]: *** [ppc1] Error 2
make[3]: Leaving directory '/home/bill/fpctrunk/trunk/compiler'
Makefile:4551: recipe for target 'cycle' failed
make[2]: *** [cycle] Error 2
make[2]: Leaving directory '/home/bill/fpctrunk/trunk/compiler'
Makefile:2853: recipe for target 'compiler_cycle' failed
make[1]: *** [compiler_cycle] Error 2
make[1]: Leaving directory '/home/bill/fpctrunk/trunk'
Makefile:2885: recipe for target 'build-stamp.x86_64-linux' failed
make: *** [build-stamp.x86_64-linux] Error 2
Mantis conversion info:
- Mantis ID: 36153
- OS: Linux
- OS Build: Ubuntu 18.04 LTS
- Build: 43153
- Platform: x86_64
- Version: 3.3.1