View Issue Details

IDProjectCategoryView StatusLast Update
0036153FPCCompilerpublic2019-10-09 08:42
ReporterBrian SchmitAssigned ToJonas Maebe 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Platformx86_64OSLinuxOS VersionUbuntu 18.04 LTS
Product Version3.3.1Product Build43153 
Target VersionFixed in Version 
Summary0036153: Building LLVM with -Cflto option
DescriptionBuild 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 ReproduceFollow directions from :
https://wiki.freepascal.org/LLVM and add -Clfto to OPT='blah blah blah -Clfto'

Additional InformationThis 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


Tags3.3.1, Link-Time optimization, linux, LLVM, LTO, x86_64
Fixed in Revision
FPCOldBugId
FPCTarget-
Attached Files

Activities

Brian Schmit

2019-10-09 03:27

reporter   ~0118434

Last edited: 2019-10-09 03:27

View 2 revisions

PLEASE DISREGARD! Console word wrap was causing issues.

Issue History

Date Modified Username Field Change
2019-10-09 03:20 Brian Schmit New Issue
2019-10-09 03:21 Brian Schmit Tag Attached: LLVM
2019-10-09 03:21 Brian Schmit Tag Attached: LTO
2019-10-09 03:21 Brian Schmit Tag Attached: Link-Time optimization
2019-10-09 03:22 Brian Schmit Tag Attached: linux
2019-10-09 03:22 Brian Schmit Tag Attached: 3.3.1
2019-10-09 03:22 Brian Schmit Tag Attached: x86_64
2019-10-09 03:27 Brian Schmit Note Added: 0118434
2019-10-09 03:27 Brian Schmit Note Edited: 0118434 View Revisions
2019-10-09 08:42 Jonas Maebe Assigned To => Jonas Maebe
2019-10-09 08:42 Jonas Maebe Status new => resolved
2019-10-09 08:42 Jonas Maebe Resolution open => no change required
2019-10-09 08:42 Jonas Maebe FPCTarget => -