Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113392 - sys-apps/bar compiles but does not run on sparc64
Summary: sys-apps/bar compiles but does not run on sparc64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-23 12:43 UTC by duryee
Modified: 2005-12-14 07:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description duryee 2005-11-23 12:43:08 UTC
I added ~sparc to sys-apps/bar, and bar 1.10.3 compiles cleanly but doesn't run.
It gives the following error:

*** ERROR: [2]: No such file or directory
           Memory allocation failed

It works on x86, however.

Reproducible: Always
Steps to Reproduce:
1. emerge bar on sparc
2. run it
3. crash and burn

Actual Results:  
*** ERROR: [2]: No such file or directory
           Memory allocation failed


Expected Results:  
runs like x86 version

Portage 2.0.51.22-r3 (default-linux/sparc/sparc64/2005.1, gcc-3.3.5-20050130,
glibc-2.3.3.20040420-r2, 2.4.31-sparc sparc64)
=================================================================
System uname: 2.4.31-sparc sparc64 sun4u
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.4.23
ACCEPT_KEYWORDS="sparc"
AUTOCLEAN="yes"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-pipe -O -mcpu=ultrasparc"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -O -mcpu=ultrasparc"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="sparc apache2 arts avi bash-completion berkdb bitmap-fonts bzip2 crypt cups
dlloader eds emacs encode enscript esd expat foomaticdb fortran gcc64 gd gdbm
gif gstreamer gtk2 jpeg libwww mad mhash mikmod motif mpeg ncurses nls
nosendmail ogg oggvorbis opengl oss pam pcre pda pdflib perl php png python qt
readline samba sdl snmp spell ssl tcpd tetex tiff truetype truetype-fonts
type1-fonts ultra1 vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-23 12:47:46 UTC
That's probably why it's not keyworded sparc at all. Feel free to reopen with a
sane patch. 
Comment 2 duryee 2005-11-23 13:26:02 UTC
adding --disable-use-memalign to econf makes it work, i.e.:

 econf --disable-use-memalign || die "econf failed"


bar tries to use either posix_memalign, or plain malloc if the former isn't
available. The sparc version needs to be plain malloc.
Comment 3 Gustavo Zacarias (RETIRED) gentoo-dev 2005-12-14 07:03:07 UTC
Fixed in cvs and keyworded ~sparc, thanks for the report.