<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — -flto option creates a collect2.exe error]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=681&amp;type=atom" />
	<updated>2020-03-20T13:57:46Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=681</id>
		<entry>
			<title type="html"><![CDATA[Re: -flto option creates a collect2.exe error]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3442#p3442" />
			<content type="html"><![CDATA[<p>Pete,</p><p>I can look into it, but it isn&#039;t a simple change.&nbsp; I believe our binutils distribution somewhat dated for compatibility reasons, which might be problematic.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2020-03-20T13:57:46Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3442#p3442</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: -flto option creates a collect2.exe error]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3437#p3437" />
			<content type="html"><![CDATA[<p>Hi Jeff,<br />Is it possible to release a version of the compiler that supports run time link optimization?<br />Thanks,<br />Pete</p>]]></content>
			<author>
				<name><![CDATA[peter.kelly]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3586</uri>
			</author>
			<updated>2020-03-14T03:00:58Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3437#p3437</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: -flto option creates a collect2.exe error]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3142#p3142" />
			<content type="html"><![CDATA[<p>I&#039;ll have to see why exactly the error is occurring, but my understanding is that our build of GNU binutils and its linker, ld, does not support link-time optimizations.&nbsp; I believe the <em>CreateProcess</em> error is the compiler attempting to call an nonexistent alternate linker.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2018-07-20T17:57:43Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3142#p3142</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[-flto option creates a collect2.exe error]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3139#p3139" />
			<content type="html"><![CDATA[<p>Hi,<br />If I try to compile with the -flto option to enable link time optimizations, I get this error;<br />Generating sieve2.exe<br />Driving: C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gfortran.exe -v -o sieve2.exe -static build\sieve2.o -LC:/PROGRA~2/SIMPLY~1/MINGW-~1/lib/ -l gfortran<br />Using built-in specs.<br />COLLECT_GCC=C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gfortran.exe<br />COLLECT_LTO_WRAPPER=c:/program\ files\ (x86)/simply\ fortran\ 2/mingw-w64/bin/../libexec/gcc/x86_64-w64-mingw32/7.2.0/lto-wrapper.exe<br />Target: x86_64-w64-mingw32<br />Configured with: ../../src/gcc-7.2.0/configure --target=x86_64-w64-mingw32 --enable-targets=all --enable-languages=c,c++,fortran,lto --prefix=/opt --with-sysroot=/opt --with-gmp=/c/workspace/gcc/dep-6.1.0 --with-mpfr=/c/workspace/gcc/dep-6.1.0 --with-mpc=/c/workspace/gcc/dep-6.1.0 --disable-win32-registry --enable-libgomp --enable-gomp --with-isl=/c/workspace/gcc/dep-6.1.0 --with-cloog=/c/workspace/gcc/dep-6.1.0 --with-libelf=/c/workspace/gcc/dep-6.1.0 --disable-libstdcxx-pch --enable-target-optspace --with-tune=generic --with-pkgversion=&#039;GCC for Simply Fortran&#039; --with-bugurl=http://simplyfortran.com/support/ --enable-lto --enable-plugins --enable-linker-plugin-configure-flags=--host=i686-pc-mingw32 --enable-linker-plugin-flags=&#039;CC=gcc\ -m32\ -Wl,-rpath,[...]/i686-pc-mingw32/lib&#039;<br />Thread model: win32<br />gcc version 7.2.0 (GCC for Simply Fortran) <br />Reading specs from c:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libgfortran.spec<br />rename spec lib to liborig<br />COLLECT_GCC_OPTIONS=&#039;-v&#039; &#039;-o&#039; &#039;sieve2.exe&#039; &#039;-static&#039; &#039;-LC:/PROGRA~2/SIMPLY~1/MINGW-~1/lib/&#039; &#039;-mtune=generic&#039; &#039;-march=x86-64&#039;<br />COMPILER_PATH=c:/program files (x86)/simply fortran 2/mingw-w64/bin/../libexec/gcc/x86_64-w64-mingw32/7.2.0/;c:/program files (x86)/simply fortran 2/mingw-w64/bin/../libexec/gcc/;c:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/<br />LIBRARY_PATH=c:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/;c:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/;c:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/lib/../lib/;c:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/lib/<br />COLLECT_GCC_OPTIONS=&#039;-v&#039; &#039;-o&#039; &#039;sieve2.exe&#039; &#039;-static&#039; &#039;-LC:/PROGRA~2/SIMPLY~1/MINGW-~1/lib/&#039; &#039;-mtune=generic&#039; &#039;-march=x86-64&#039;<br /> c:/program files (x86)/simply fortran 2/mingw-w64/bin/../libexec/gcc/x86_64-w64-mingw32/7.2.0/collect2.exe --sysroot=c:/workspace/gcc/target -m i386pep -Bstatic -o sieve2.exe c:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o c:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/crtbegin.o -LC:/PROGRA~2/SIMPLY~1/MINGW-~1/lib/ -Lc:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0 -Lc:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc -Lc:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/lib/../lib -Lc:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/lib build\sieve2.o -lgfortran -lmingw32 -lgcc -lgcc_eh -lmoldname -lmingwex -lmsvcrt -lquadmath -lm -lmingw32 -lgcc -lgcc_eh -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc -lgcc_eh -lmoldname -lmingwex -lmsvcrt c:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/crtend.o<br />collect2.exe: fatal error: CreateProcess: No such file or directory<br />compilation terminated.<br />Error: Last command making (sieve2.exe) returned a bad status<br />Error: Make execution terminated</p><p>Any clues?? Everything in the path appears to be where it needs to be.<br />This line looked suspect but I don&#039;t see how to modify it..<br />COLLECT_LTO_WRAPPER=c:/program\ files\ (x86)/simply\ fortran\ 2/mingw-w64/bin/../libexec/gcc/x86_64-w64-mingw32/7.2.0/lto-wrapper.exe<br />Regards,<br />Pete</p>]]></content>
			<author>
				<name><![CDATA[peter.kelly]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3586</uri>
			</author>
			<updated>2018-07-18T03:39:20Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3139#p3139</id>
		</entry>
</feed>
