Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275304 - dev-libs/apr-1.3.5 fails to build on IRIX
Summary: dev-libs/apr-1.3.5 fails to build on IRIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-24 17:05 UTC by Stuart Shelton
Modified: 2009-07-14 15:39 UTC (History)
0 users

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


Attachments
IRIX-specific patch to allow apr to build (apr-1.3.5.patch,1.48 KB, patch)
2009-06-24 17:07 UTC, Stuart Shelton
Details | Diff
Corrected patch (apr-1.3.5.patch,1.60 KB, patch)
2009-06-24 17:10 UTC, Stuart Shelton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2009-06-24 17:05:42 UTC
cc-1999 cc: ERROR File = poll/unix/poll.c, Line = 111
  "jumping out of a block containing VLAs" is not currently implemented


1 error detected in the compilation of "poll/unix/poll.c".
make[1]: *** [poll/unix/poll.lo] Error 1
make[1]: Leaving directory `/usr/opt/gentoo/var/tmp/portage/dev-libs/apr-1.3.5/work/apr-1.3.5'
make: *** [all-recursive] Error 1
 * ERROR: dev-libs/apr-1.3.5 failed:
 *   emake failed
 * 
 * Call stack:
 *               ebuild.sh:  42: <call src_compile>
 *             environment:2764:     emake || die "emake failed";

... note that this occurs when '-diag_error 1999' is included in CFLAGS.  Without this option, the above notice is only treated as a warning, but the resultant binary will fail to execute correctly - since the compiler is unable to correctly handle the program logic.
Comment 1 Stuart Shelton 2009-06-24 17:07:04 UTC
Created attachment 195668 [details, diff]
IRIX-specific patch to allow apr to build


This patch works around the need for the 'break' statement within the loop.
Comment 2 Stuart Shelton 2009-06-24 17:10:51 UTC
Created attachment 195670 [details, diff]
Corrected patch


Let's try that again ;)
Comment 3 Fabian Groffen gentoo-dev 2009-06-28 12:27:31 UTC
patch added, thanks
Comment 4 Stuart Shelton 2009-07-14 15:37:45 UTC
The CHOST value tested in the ebuild is wrong :(


IRIX CHOST is "mips-sgi-irix6.5" (or similar), and is generally tested with:

  [[ ${CHOST} == *-irix* ]]

The apr-1.3.5 and apr-1.3.6 ebuilds contain:

  [[ ${CHOST} == *-mips* ]]

... which doesn't match.

Comment 5 Fabian Groffen gentoo-dev 2009-07-14 15:39:45 UTC
hmmm, that's FAIL.  Fixed now.