Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#24052 closed defect (invalid)

port install gcc44 failed

Reported by: kadmiel@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: gcc44

Description (last modified by mf2k (Frank Schima))

collect2: ld returned 1 exit status
make[6]: *** [libjavamath.la] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-target-libjava] Error 2
make: *** [bootstrap] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/work/build" && /usr/bin/make -j2 bootstrap " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/work/build" && /usr/bin/make -j2 bootstrap " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for gcc44): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Attachments (1)

port -d install gcc44.txt (236.3 KB) - added by kadmiel@… 15 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Port: mww@macports.org added

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to mww@…
Port: gcc44 added; mww@macports.org removed

comment:3 Changed 15 years ago by mf2k (Frank Schima)

I don't see an actual error here. Please attach the complete debug output.

Changed 15 years ago by kadmiel@…

Attachment: port -d install gcc44.txt added

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

The debug output mentions the file /usr/local/lib/libgmp.a. Please remove this file and anything else in /usr/local prior to attempting to use MacPorts. Then clean gcc44 and try building again.

comment:5 Changed 15 years ago by kadmiel@…

I don't think that is a good solution as my /usr/local has allot of stuff in it that I use all the time. I managed to install gcc44 via a different way and not through MacPorts. Thanks. If someone has a different solution I would be glad to hear it.

comment:6 Changed 15 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

All you have to do is move it temporarily:

sudo mv /usr/local /usr/local.moved
sudo port clean gcc44
sudo port insall gcc44
sudo mv /usr/local.moved /usr/local

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

But you have to do that every time you install anything with MacPorts, to ensure that what you're installing doesn't inadvertently use things from /usr/local. We cannot support having anything in /usr/local while using MacPorts, sorry.

Note: See TracTickets for help on using tickets.