Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294434 - dev-lang/python-2.6.4 fails to build on hppa-hpux (11.31), 2.6.2-r2 works
Summary: dev-lang/python-2.6.4 fails to build on hppa-hpux (11.31), 2.6.2-r2 works
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All HPUX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-24 15:49 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2009-11-24 18:15 UTC (History)
0 users

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


Attachments
python-2.6.4 build.log (build.log,181.76 KB, text/plain)
2009-11-24 15:50 UTC, Jeremy Olexa (darkside) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-11-24 15:49:49 UTC
It is hard for me to find the differences between these two. build.log coming.

Portage 2.2.00.14813-prefix (prefix/hpux/B.11.31/hppa2.0, gcc-4.2.4, unavailable, B.11.31 9000/800)
=================================================================
System uname: HP-UX-B.11.31-9000-800-32bit
Timestamp of tree: Mon, 23 Nov 2009 22:54:55 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.2-r2
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.10.2-r00.1, 1.11
sys-devel/binutils:  2.19.1-r01.1
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6b
ACCEPT_KEYWORDS="~hppa-hpux"
CBUILD="hppa2.0n-hp-hpux11.31"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="hppa2.0n-hp-hpux11.31"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/home/jolexa/portage/hppa-11.31/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests collision-protect distlocks fixpackages news nodoc noinfo nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS=""
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/home/jolexa/portage/hppa-11.31/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/jolexa/portage/hppa-11.31/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/jolexa/portage/hppa-11.31/var/tmp"
PORTDIR="/home/jolexa/portage/hppa-11.31/usr/portage"
PORTDIR_OVERLAY="/home/jolexa/portage/global/overlays"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="bash-completion bzip2 cracklib hppa-hpux modules ncurses perl prefix python readline ssl unicode zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="HPUX" INPUT_DEVICES="keyboard mouse" KERNEL="HPUX" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-11-24 15:50:24 UTC
Created attachment 211069 [details]
python-2.6.4 build.log
Comment 2 Fabian Groffen gentoo-dev 2009-11-24 16:46:54 UTC
/home/jolexa/portage/hppa-11.31/usr/hppa2.0n-hp-hpux11.31/bin/as: unrecognized option `--noexecstack'

can you try yanking out the entire noexecstack bit from the ebuild to see if that makes a difference?
Comment 3 Fabian Groffen gentoo-dev 2009-11-24 16:48:42 UTC
and what does `as -v < /dev/null` report?
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-11-24 17:07:06 UTC
(In reply to comment #3)
> and what does `as -v < /dev/null` report?
> 

%% as -v < /dev/null                 
GNU assembler version 2.19.1 (hppa2.0n-hp-hpux11.31) using BFD version (GNU Binutils) 2.19.1

I'll try the other suggestion too.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-11-24 17:59:10 UTC
python-2.6.4:

89 	        case $($(tc-getAS) -v 2>&1 </dev/null) in
90 	                *"GNU Binutils"*) # GNU ld
91 	                        :
92 	                ;;
93 	                *)
94 	                        EPATCH_EXCLUDE=07_all_ctypes_execstack.patch
95 	                ;;
96 	        esac
97 	        EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PV}"

But, something is wrong here because if I unconditionally do line 94 the build succeeds.
Comment 6 Fabian Groffen gentoo-dev 2009-11-24 18:08:42 UTC
Makes sense to me, as I assumed that all GNU as would accept the same arguments, but apparently it doesn't, so I guess we'll have to try if the argument really works.  Does as -v --noexecstack bail out by chance?
Comment 7 Fabian Groffen gentoo-dev 2009-11-24 18:15:22 UTC
fixed by checking if --noexecstack is a supported argument