Ticket #29184 (closed update: fixed)
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
Change History
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: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
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: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: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.


you forgot to attach your patch!