Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#40118 closed defect (invalid)

dragonegg-3.0-gcc-4.5 @3.0_2, dragonegg-3.1-gcc-4.5 @3.1_2: build cannot detect LTO

Reported by: larryv (Lawrence Velázquez) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: dragonegg-3.0-gcc-4.5 dragonegg-3.1-gcc-4.5

Description

Both are failing with the same error on 10.8.4.

:info:build Compiling Constants.cpp
:info:build /opt/local/var/macports/build/_Users_larryv_Projects_MacPorts_svn_trunk_dports_lang_dragonegg-3.1/dragonegg-3.1-gcc-4.5/work/dragonegg-3.1.src/src/Backend.cpp:1543:3: error: "LTO support required but not enabled in GCC"
:info:build # error "LTO support required but not enabled in GCC"
:info:build   ^
:info:build 13 warnings and 1 error generated.
:info:build make: *** [Backend.o] Error 1

The corresponding ports for DragonEgg 3.2, 3.3, and 3.4 build successfully. I have gcc45 @4.5.4_8+universal active.

Attachments (2)

dragonegg-3.0-gcc-4.5.main.log (14.2 KB) - added by larryv (Lawrence Velázquez) 11 years ago.
dragonegg-3.1-gcc-4.5.main.log (15.7 KB) - added by larryv (Lawrence Velázquez) 11 years ago.

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by larryv (Lawrence Velázquez)

Changed 11 years ago by larryv (Lawrence Velázquez)

comment:1 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: invalid
Status: newclosed

yep.

# LTO doesn't work for other targets, see ticket #32863
if {![variant_isset universal] && $build_arch == "x86_64"} {
    configure.args-append --enable-lto
}

comment:2 in reply to:  1 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to jeremyhu@…:

yep.

# LTO doesn't work for other targets, see ticket #32863
if {![variant_isset universal] && $build_arch == "x86_64"} {
    configure.args-append --enable-lto
}

Odd; I wonder why this didn’t crop up before now. Meh.

comment:3 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Did you just enable +universal?

comment:4 in reply to:  3 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to jeremyhu@…:

Did you just enable +universal?

No, I’ve had my GCC ports installed as universal since before you created the DragonEgg subports. I’m pretty sure that revision 1 of dragonegg-3.[01]-gcc-4.5 had built successfully with gcc45 @4.5.4_7+universal.

comment:5 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

No, I'm pretty certain that dragonegg never built against gcc45 +unviersal ... since I know that was failing when I pushed the port (I was hitting it myself on my +universal machines).

comment:6 in reply to:  5 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to jeremyhu@…:

No, I'm pretty certain that dragonegg never built against gcc45 +unviersal ... since I know that was failing when I pushed the port (I was hitting it myself on my +universal machines).

Now that I think about it…

  1. I flipped the delete_la_files yes / buildfromsource always switch.
  2. I uninstalled all my ports.
  3. I built all my ports—including the GCC and DragonEgg ports—as x86_64.
  4. I rebuilt select ports—including the GCC ports—as universal.

And maybe I hadn’t encountered the build failure prior to all of that because I’d installed the DragonEgg ports via binary archives.

Note: See TracTickets for help on using tickets.