Opened 10 years ago

Closed 9 years ago

#26888 closed defect (worksforme)

libiconv: make[1]: *** [iconv.lo] Bus error

Reported by: thelumpit@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: libiconv

Description

I got a bus error when I was downloading libiconv.

To replicate: 1) I did

sudo port install libiconv +universal

2) It got as far as building before issuing

Error: Target org.macports.build returned: shell command failed

3) When inspecting the main.log I got this:

:info:build make[1]: *** [iconv.lo] Bus error
:info:build make[1]: *** Deleting file `iconv.lo'
:info:build make: *** [all] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_libiconv/work/libiconv-1.13.1-ppc" && /usr/bin/make CC=/usr/bin/gcc-4.0 -f Makefile.devel && /usr/bin/make all " returned error 2
:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
    while executing
"$procedure $targetname"
:info:build Warning: the following items did not execute (for libiconv): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for libiconv is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_libiconv/main.log

I have also installed zlib as well.

Main.log attached.

Attachments (1)

main.log (113.1 KB) - added by thelumpit@… 10 years ago.
Main.log

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by thelumpit@…

Attachment: main.log added

Main.log

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

Keywords: libiconv bus error removed
Milestone: MacPorts Future
Owner: changed from macports-tickets@… to ryandesign@…
Port: libiconv added

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

Summary: Bus Failure on Mac OS X when dowloading libiconvlibiconv: make[1]: *** [iconv.lo] Bus error

Ok, I see you're building libiconv universal for i386 ppc on a PowerPC Mac running Mac OS X 10.4.11. It works fine for me on the same system. I compared your log with mine and the only difference is that yours says:

:info:configure checking for iconv declaration... 
:info:configure          extern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);

And mine says:

:info:configure checking for iconv declaration... 
:info:configure          extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);

This is referring to the existing iconv function that it found on the system. Do you have a libiconv port installed already? If so, try deactivating it, then cleaning libiconv and trying to install it again.

sudo port -f deactivate libiconv
sudo port clean libiconv
subo port install libiconv

Or do you have a libiconv in /usr/local? If so, remove it; having things installed in /usr/local is problematic and causes interference with MacPorts.

Also, what version of Xcode do you have? (Get Info on /Developer/Applications/Xcode.app in the Finder to find out.) If less than 2.5, upgrade to 2.5; some earlier versions were buggy.

comment:3 Changed 9 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

No response; closing.

Note: See TracTickets for help on using tickets.