New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #29184 (closed update: fixed)

Opened 2 years ago

Last modified 21 months ago

gcc46: update to 4.6.1

Reported by: luis.beca@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: haspatch Cc: anatol.pomozov@…, alexeiz@…, lukas.reichlin@…, mroman@…, swinbank@…, jacobu@…, raimue@…, fleason@…, luis.kornblueh@…, rouson@…, bradskins@…, patnotz@…
Port: gcc46

Description

Please update gcc46 to the latest 4.6.0 release. Thanks

Attachments

Portfile (3.7 KB) - added by alexeiz@… 23 months ago.
Portfile for gcc 4.6.1
patch-gcc46-4.6.1.diff (7.0 KB) - added by raimue@… 22 months ago.
main.log.bz2 (248.5 KB) - added by raimue@… 22 months ago.

Change History

comment:1 Changed 2 years ago by mww@…

you forgot to attach your patch!

comment:2 Changed 2 years ago by ryandesign@…

  • Cc mww@… removed
  • Owner changed from macports-tickets@… to mww@…
  • Summary changed from Update GCC4.6 beta to gcc46: update to 4.6.0 final

He doesn't say he has created a patch. He's just saying the port should be updated.

comment:3 Changed 2 years ago by anatol.pomozov@…

I hope, you guys look at this issue before releasing 4.6: #28932

comment:4 Changed 2 years ago by anatol.pomozov@…

  • Cc anatol.pomozov@… added

Cc Me!

comment:5 Changed 23 months ago by alexeiz@…

  • Cc alexeiz@… added

Cc Me!

comment:6 in reply to: ↑ description Changed 23 months ago by alexeiz@…

The attached Portfile can be used to install gcc 4.6.1. I used it with a local macports repository and it worked fine. I removed fortran and java languages because there is still a problem building them together. Also, an additional file 'files/mp-gcc46' is required, which can be obtained from here: trunk/dports/lang/gcc46/files/mp-gcc46

Changed 23 months ago by alexeiz@…

Portfile for gcc 4.6.1

comment:7 Changed 23 months ago by ryandesign@…

  • Keywords haspatch added
  • Summary changed from gcc46: update to 4.6.0 final to gcc46: update to 4.6.1

comment:8 Changed 23 months ago by lukas.reichlin@…

  • Cc lukas.reichlin@… added

Cc Me!

comment:9 Changed 22 months ago by mroman@…

  • Cc mroman@… added

Cc Me!

comment:10 Changed 22 months ago by swinbank@…

  • Cc swinbank@… added

Cc Me!

comment:11 Changed 22 months ago by jacobu@…

  • Cc jacobu@… added

Cc Me!

Changed 22 months ago by raimue@…

Changed 22 months ago by raimue@…

comment:12 Changed 22 months ago by raimue@…

  • Cc raimue@… added

Here is a patch. Unfortunately, it doesn't build for me on my system. I suppose this is a bug in ld(?).

...
collect2: ld terminated with signal 6 [Abort trap: 6]
ld(48432) malloc: *** error for object 0x1054f0840: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
make[3]: *** [libgfortran.la] Error 1

comment:13 Changed 22 months ago by raimue@…

Sorry, I didn't notice that this issue exactly is already being tracked in #30166. But anyway, there is a patch now :-)

comment:14 Changed 22 months ago by vince@…

I filed a radar for this ld bug. I have also stumbled on a ar/ranlib bug while compiling atlas, so it seems the whole toolchain is more or less buggy.

comment:15 Changed 22 months ago by fleason@…

  • Cc fleason@… added

Cc Me!

comment:16 Changed 22 months ago by luis.kornblueh@…

  • Cc luis.kornblueh@… added

Cc Me!

comment:17 Changed 21 months ago by mfeiri@…

  • Cc mfeiri@… added

Cc Me!

comment:18 Changed 21 months ago by mfeiri@…

  • Cc mfeiri@… removed

Cc Me!

comment:19 Changed 21 months ago by rouson@…

  • Cc rouson@… added

Cc Me!

comment:20 Changed 21 months ago by bradskins@…

  • Cc bradskins@… added

Cc Me!

comment:21 Changed 21 months ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed

comment:22 Changed 21 months ago by fleason@…

I did the self update.

Then

06:27 AM ~ $ sudo port install gcc46
Portfile changed since last build; discarding previous state.
<snip>
--->  Building gcc46
Error: Target org.macports.build returned: shell command failed (see log for details)
<snip>
Error: Status 1 encountered during processing.

Last few lines from main.log

:info:build collect2: ld terminated with signal 6 [Abort trap: 6]
:info:build ld(82721) malloc: *** error for object 0x1058bb840: pointer being freed was not allocated
:info:build *** set a breakpoint in malloc_error_break to debug
:info:build make[3]: *** [libgfortran.la] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build/x86_64-apple-darwin11/libgfortran'
:info:build make[2]: *** [all] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build/x86_64-apple-darwin11/libgfortran'
:info:build make[1]: *** [all-target-libgfortran] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build'
:info:build make: *** [bootstrap] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build" && /usr/bin/make -j8 -w bootstrap " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for gcc46): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for gcc46 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/main.log

If this is the same ld issue in #30166 then we don't even have the option to build without Fortran.

comment:23 Changed 21 months ago by patnotz@…

  • Cc patnotz@… added

Cc Me!

Note: See TracTickets for help on using tickets.