Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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 (Anatol Pomozov), alexeiz@…, lukas.reichlin@…, mroman@…, jdswinbank (John Swinbank), jacobu@…, raimue (Rainer Müller), fleason (Fred Leason), m214089, rouson@…, bradskins@…, patnotz@…
Port: gcc46

Description

Please update gcc46 to the latest 4.6.0 release. Thanks

Attachments (3)

Portfile (3.7 KB) - added by alexeiz@… 13 years ago.
Portfile for gcc 4.6.1
patch-gcc46-4.6.1.diff (7.0 KB) - added by raimue (Rainer Müller) 13 years ago.
main.log.bz2 (248.5 KB) - added by raimue (Rainer Müller) 13 years ago.

Download all attachments as: .zip

Change History (26)

comment:1 Changed 13 years ago by mww@…

you forgot to attach your patch!

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mww@… removed
Owner: changed from macports-tickets@… to mww@…
Summary: Update GCC4.6 betagcc46: 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 13 years ago by anatol (Anatol Pomozov)

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

comment:4 Changed 13 years ago by anatol (Anatol Pomozov)

Cc: anatol.pomozov@… added

Cc Me!

comment:5 Changed 13 years ago by alexeiz@…

Cc: alexeiz@… added

Cc Me!

comment:6 in reply to:  description Changed 13 years 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 13 years ago by alexeiz@…

Attachment: Portfile added

Portfile for gcc 4.6.1

comment:7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Summary: gcc46: update to 4.6.0 finalgcc46: update to 4.6.1

comment:8 Changed 13 years ago by lukas.reichlin@…

Cc: lukas.reichlin@… added

Cc Me!

comment:9 Changed 13 years ago by mroman@…

Cc: mroman@… added

Cc Me!

comment:10 Changed 13 years ago by jdswinbank (John Swinbank)

Cc: swinbank@… added

Cc Me!

comment:11 Changed 13 years ago by jacobu@…

Cc: jacobu@… added

Cc Me!

Changed 13 years ago by raimue (Rainer Müller)

Attachment: patch-gcc46-4.6.1.diff added

Changed 13 years ago by raimue (Rainer Müller)

Attachment: main.log.bz2 added

comment:12 Changed 13 years ago by raimue (Rainer Müller)

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 13 years ago by raimue (Rainer Müller)

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 13 years ago by Veence (Vincent)

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 13 years ago by fleason (Fred Leason)

Cc: fleason@… added

Cc Me!

comment:16 Changed 13 years ago by m214089

Cc: luis.kornblueh@… added

Cc Me!

comment:17 Changed 13 years ago by mfeiri

Cc: mfeiri@… added

Cc Me!

comment:18 Changed 13 years ago by mfeiri

Cc: mfeiri@… removed

Cc Me!

comment:19 Changed 13 years ago by rouson@…

Cc: rouson@… added

Cc Me!

comment:20 Changed 13 years ago by bradskins@…

Cc: bradskins@… added

Cc Me!

comment:21 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

comment:22 Changed 13 years ago by fleason (Fred Leason)

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 13 years ago by patnotz@…

Cc: patnotz@… added

Cc Me!

Note: See TracTickets for help on using tickets.