Opened 12 years ago

Closed 12 years ago

#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 (Frank J. R. Hanstick), mklein-de (Michael Klein), anddam (Andrea D'Amore)
Port: gcc45

Description (last modified by neverpanic (Clemens Lang))

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 (2)

main.log (7.3 KB) - added by trog24 (Frank J. R. Hanstick) 12 years ago.
configuration error log
Portfile.diff (663 bytes) - added by mklein-de (Michael Klein) 12 years ago.
--enable-lto only for x86_64

Download all attachments as: .zip

Change History (13)

comment:1 Changed 12 years ago by patnotz@…

Cc: patnotz@… added

Cc Me!

comment:2 Changed 12 years ago by neverpanic (Clemens Lang)

Cc: patnotz@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…

You don't need to Cc yourself. Please use WikiFormatting for shell output. Please also remember to Cc the maintainer.

comment:3 Changed 12 years ago by trog24 (Frank J. R. Hanstick)

Same problem on a dual 1.73 GHz PPC Quicksilver. See attached log.

Changed 12 years ago by trog24 (Frank J. R. Hanstick)

Attachment: main.log added

configuration error log

comment:4 Changed 12 years ago by trog24 (Frank J. R. Hanstick)

Cc: trog24@… added

Cc Me!

comment:5 Changed 12 years 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.

comment:6 Changed 12 years ago by mklein-de (Michael Klein)

Cc: michael.klein@… added

Cc Me!

Changed 12 years ago by mklein-de (Michael Klein)

Attachment: Portfile.diff added

--enable-lto only for x86_64

comment:7 Changed 12 years ago by mklein-de (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:8 Changed 12 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

Cc Me!

comment:9 Changed 12 years ago by trog24 (Frank J. R. Hanstick)

Has the patch been incorporated into the port because I still fail with my G4 and MacOS 10.5.8?

comment:10 Changed 12 years ago by jmroot (Joshua Root)

The patch is not correct, you have to check $build_arch and that +universal is not active.

comment:11 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.