Ticket #32863 (closed defect: fixed)
gcc45 fails to build: error: LTO support is not enabled for this target
| Reported by: | patnotz@… | Owned by: | mww@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.3 |
| Keywords: | Cc: | trog24@…, michael.klein@…, and.damore@… | |
| Port: | gcc45 |
Description (last modified by cal@…) (diff)
Upgrading gcc45 from @4.5.3_0 to @4.5.3_1 fails on my MacBook Air, Mac OS X 10.5.8 with an Intel Core 2 Duo processor
:info:configure checking target system type... i386-apple-darwin9
:info:configure configure: error: LTO support is not enabled for this target. :info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/gcc45/work/build" && ../gcc-4.5.3/configure --prefix=/opt/local --build=i386-apple-darwin9 --enable-languages=c,c++,objc,obj-c++,fortran,java --libdir=/opt/local/lib/gcc45 --includedir=/opt/local/include/gcc45 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.5 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.5 --with-gxx-include-dir=/opt/local/include/gcc45/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --enable-stage1-checking --disable-multilib --enable-lto " returned error 1
Attachments
Change History
comment:2 Changed 17 months ago by cal@…
- Cc patnotz@… removed
- Owner changed from macports-tickets@… to mww@…
- Description modified (diff)
You don't need to Cc yourself. Please use WikiFormatting for shell output. Please also remember to Cc the maintainer.
comment:3 Changed 16 months ago by trog24@…
Same problem on a dual 1.73 GHz PPC Quicksilver. See attached log.
comment:5 Changed 16 months ago by lowtech@…
Same error msg "error: LTO support is not enabled for this target" fails gcc45 (4.5.3_1) upgrade here too. On Core2Duo MacBook running OS X 10.5.8.
Changed 16 months ago by michael.klein@…
- Attachment Portfile.diff added
--enable-lto only for x86_64
comment:7 Changed 16 months ago by michael.klein@…
LTO seems to be only supported on x86_64, The port builds ok on 10.5.8 PPC after removing --enable-lto from configure.args.
The patch above is untested as I have no x86_64 box here.
comment:9 Changed 15 months ago by trog24@…
Has the patch been incorporated into the port because I still fail with my G4 and MacOS 10.5.8?
comment:10 Changed 15 months ago by jmr@…
The patch is not correct, you have to check $build_arch and that +universal is not active.
comment:11 Changed 15 months ago by jmr@…
- Status changed from new to closed
- Resolution set to fixed


Cc Me!