<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — can't compile with -flto set]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=387&amp;type=atom" />
	<updated>2014-11-17T19:34:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=387</id>
		<entry>
			<title type="html"><![CDATA[Re: can't compile with -flto set]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1610#p1610" />
			<content type="html"><![CDATA[<p>The compiler included with Simply Fortran 2.17 does not seem to have support for link-time optimizations included (which is our fault).&nbsp; I&#039;ll make sure support is in 2.18, which will ship with an updated Fortran compiler (GNU Fortran 4.9.2).&nbsp; The next version is only a few weeks away.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2014-11-17T19:34:37Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1610#p1610</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: can't compile with -flto set]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1606#p1606" />
			<content type="html"><![CDATA[<p>Thank you! I have disabled it and will wait to see what you come up with!</p>]]></content>
			<author>
				<name><![CDATA[peter.kelly]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3586</uri>
			</author>
			<updated>2014-11-16T16:11:35Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1606#p1606</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: can't compile with -flto set]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1605#p1605" />
			<content type="html"><![CDATA[<p>I&#039;ll have to look into what&#039;s going wrong.&nbsp; It sounds like there might be a problem with the configuration of the compiler and linker in Simply Fortran.&nbsp; I can replicate the issue on my end.&nbsp; For the time being, you&#039;ll need to disable link time optimizations.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2014-11-16T14:42:13Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1605#p1605</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[can't compile with -flto set]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1604#p1604" />
			<content type="html"><![CDATA[<p>If I attempt to use link optimization ( -flto) I get the following error.<br />==============================================================================<br />Generating Makefile... Okay<br />==============================================================================<br />Compiling .\cycles.c<br />Compiling .\dualpart.c<br />Compiling .\predictor.f90<br />Generating target.exe<br />collect2.exe: fatal error: CreateProcess: No such file or directory<br />compilation terminated.<br />Error(E42): Last command making (target.exe) returned a bad status<br />Error(E02): Make execution terminated</p><p>* Failed *</p><p>The makefile is as follows; (note the ldir entries are as a result of me setting the search directories manually. Before, they were empty)<br />#<br /># Automagically generated by Approximatrix Simply Fortran 2.17<br />#<br />FC=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gfortran.exe&quot;<br />CC=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gcc.exe&quot;<br />AR=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\ar.exe&quot;<br />WRC=&quot;C:\PROGRA~2\SIMPLY~1\MINGW-~1\bin\windres.exe&quot;<br />RM=rm -f</p><p>IDIR=<br /># -I error: Directory C:\Users\Pete\AppData\Local\\sfpm\64\include does not exist</p><p>LDIR=-LC:/PROGRA~2/SIMPLY~1/MINGW-~1/X86_64~1/lib64 -LC:/PROGRA~2/SIMPLY~1/MINGW-~1/X86_64~1 -LC:/PROGRA~2/SIMPLY~1/MINGW-~1/X86_64~1/lib32 -LC:/PROGRA~2/SIMPLY~1/MINGW-~1/X86_64~1/lib <br /># -L error: Directory C:\Users\Pete\AppData\Local\\sfpm\64\lib does not exist</p><br /><p>OPTFLAGS= -O3 -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block -floop-parallelize-all -mtune=nehalem -march=nehalem</p><p>SPECIALFLAGS=$(IDIR)</p><p>RCFLAGS=-O coff</p><p>PRJ_FFLAGS=-flto -fschedule-insns -finline-functions -fopenmp -fno-underscoring -funroll-loops -msse3 -msse2 -mmmx -msse&nbsp; -mfpmath=sse&nbsp; -fopenmp</p><p>PRJ_CFLAGS=-std=gnu99 -fopenmp</p><p>PRJ_LFLAGS=-lgomp -lpthread </p><p>FFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(PRJ_FFLAGS) -Jmodules </p><p>CFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(PRJ_CFLAGS)</p><br /><p>&quot;build\cycles.o&quot;: &quot;.\cycles.c&quot;<br />&nbsp; &nbsp; @echo Compiling .\cycles.c<br />&nbsp; &nbsp; @$(CC) -c -o &quot;build\cycles.o&quot; $(CFLAGS) &quot;.\cycles.c&quot;</p><br /><p>&quot;build\dualpart.o&quot;: &quot;.\dualpart.c&quot;<br />&nbsp; &nbsp; @echo Compiling .\dualpart.c<br />&nbsp; &nbsp; @$(CC) -c -o &quot;build\dualpart.o&quot; $(CFLAGS) &quot;.\dualpart.c&quot;</p><p>&quot;build\predictor.o&quot;: &quot;.\predictor.f90&quot;<br />&nbsp; &nbsp; @echo Compiling .\predictor.f90<br />&nbsp; &nbsp; @$(FC) -c -o &quot;build\predictor.o&quot; $(FFLAGS) &quot;.\predictor.f90&quot;<br />&quot;modules\stuff.mod&quot; : &quot;build\predictor.o&quot; .EXISTSONLY<br />&nbsp; &nbsp; @echo Compiling .\predictor.f90<br />&nbsp; &nbsp; @$(FC) -c -o &quot;build\predictor.o&quot; $(FFLAGS) &quot;.\predictor.f90&quot;</p><p>clean: .SYMBOLIC<br />&nbsp; &nbsp; @echo Deleting build\cycles.o and related files<br />&nbsp; &nbsp; @$(RM) &quot;build\cycles.o&quot;<br />&nbsp; &nbsp; @echo Deleting build\dualpart.o and related files<br />&nbsp; &nbsp; @$(RM) &quot;build\dualpart.o&quot;<br />&nbsp; &nbsp; @echo Deleting build\predictor.o and related files<br />&nbsp; &nbsp; @$(RM) &quot;build\predictor.o&quot; &quot;modules\stuff.mod&quot;<br />&nbsp; &nbsp; @echo Deleting target.exe<br />&nbsp; &nbsp; @$(RM) &quot;target.exe&quot;</p><p>&quot;target.exe&quot;:&nbsp; &quot;build\cycles.o&quot; &quot;build\dualpart.o&quot; &quot;build\predictor.o&quot;<br />&nbsp; &nbsp; @echo Generating target.exe<br />&nbsp; &nbsp; @$(FC) -o &quot;target.exe&quot; -static -fopenmp &quot;build\cycles.o&quot; &quot;build\dualpart.o&quot; &quot;build\predictor.o&quot; $(LDIR) $(PRJ_LFLAGS)</p><p>all: &quot;target.exe&quot; .SYMBOLIC</p>]]></content>
			<author>
				<name><![CDATA[peter.kelly]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3586</uri>
			</author>
			<updated>2014-11-16T08:46:08Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1604#p1604</id>
		</entry>
</feed>
