First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 78284
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Alastair Tse (RETIRED) <liquidx@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Mihai Limbasan <mihailim@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 78284 depends on: Show dependency tree
Bug 78284 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-01-16 15:36 0000
As per bug title.
The ebuild hardcodes ALLOWED_FLAGS but doesn't include -march in there. openjade builds and works just fine with -march (or just with -mtune) added to ALLOWED_FLAGS in the overlay, both on IA32 and on AMD64 - no docbook-sgml-utils etc badness whatsoever.
If there's a known arch that breaks the build, couldn't we filter the flag for just that one? Giving up on arch-optimization globally seems quite a steep price to pay on something CPU-intensive like openjade...

------- Comment #1 From Mamoru KOMACHI (RETIRED) 2005-02-19 19:52:09 0000 -------
liquidx: could you have a look at this bug?
(I already assigned opensp bugs to you, and so I hope
you don't mind it)

------- Comment #2 From Alastair Tse (RETIRED) 2005-06-25 08:22:44 0000 -------
well, it comes from this bug a long time ago:

http://bugs.gentoo.org/show_bug.cgi?id=8115

if you can provide emerge info and whether you succeed or not after removing those instructions, then it 
will help sway the case. otherwise, i'm for continuing the restriction to prevent breakages from our users.

------- Comment #3 From Mihai Limbasan 2005-06-25 09:16:45 0000 -------
Been building fine for me ever since I first filed this bug, on a variety of 
systems (Athlon, Athlon XP, Pentium 3, P3 SMP, P4, Opteron) with all GCC 
versions from 3.3.3 to 3.4.3-20050110-r2. Did not test it with GCC 4.x, but the 
4.x line breaks so much stuff anyway that it's not exactly relevant (and if it 
were, a simple toolchain check should suffice for conditional filtering).

Info on my router (quickest):

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-
r0, 2.6.11-hardened-r1 i686)
=================================================================
System uname: 2.6.11-hardened-r1 i686 Intel(R) Celeron(R) CPU 2.40GHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.7
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.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -msse -msse2 -O2 -fomit-frame-pointer -momit-leaf-frame-
pointer -fno-ident -pipe -fstack-protector"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/
vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -msse -msse2 -O2 -fomit-frame-pointer -momit-leaf-
frame-pointer -fno-ident -pipe -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.roedu.net/pub/mirrors/gentoo.org ftp://ftp.roedu.net/
pub/mirrors/gentoo.org http://ftp.lug.ro/gentoo http://gentoo.osuosl.org"
LDFLAGS="-Wl,-O1"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://ftp.roedu.net/gentoo-portage"
USE="x86 acl adns apache2 bash-completion berkdb bindist bzip2 bzlib caps cdr 
crypt cups curl doc dvd dvdr encode exif expat fam foomaticdb gd gdbm gif gmp 
gnutls gpm graphviz iconv icu imagemagick imap imlib imlib2 ipv6 javascript jbig 
jpeg jpeg2k kerberos krb4 ldap libwww logrotate lzo maildir mailwrapper memlimit 
mhash mime mmap mmx mono mysql ncurses nptl odbc offensive pam pcre pdflib perl 
php pic pie png postgres pwdb python readline samba sasl slang slp snmp soap 
socks5 source spell sqlite sse sse2 ssl subversion tcpd tetex tidy tiff truetype 
unicode vhosts wddx wmf xml xml2 xmlrpc xsl zlib userland_GNU kernel_linux 
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS


router ~ # emerge --oneshot openjade
Calculating dependencies ...done!
>>> emerge (1 of 1) app-text/openjade-1.3.2-r1 to /
>>> md5 files   ;-) openjade-1.3.2-r1.ebuild
>>> md5 files   ;-) files/digest-openjade-1.3.2-r1
>>> md5 files   ;-) files/openjade-1.3.2.dsssl-catalog
>>> md5 files   ;-) files/openjade-1.3.2-msggen.pl.patch
>>> md5 src_uri ;-) openjade-1.3.2.tar.gz
>>> Unpacking source...
>>> Unpacking openjade-1.3.2.tar.gz to /var/tmp/portage/openjade-1.3.2-r1/work
 * Patching msggen.pl for perl-5.6.*

< blah, blah, blah >

mkdir .libs
i686-pc-linux-gnu-g++ -march=pentium4 -O2 -pipe -I. -I./../include -I/usr/
include/OpenSP -I/usr/include/OpenSP/.. -I./../grove -DPACKAGE_NAME=\"\" -
DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"openjade\" -DVERSION=\"1.3.2\" -
DSP_DEFINE_TEMPLATES=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -
DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -
DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -DSIZEOF_SIZE_T=4 -
DSIZEOF_UNSIGNED_INT=4 -DSP_HAVE_LOCALE=1 -DSP_HAVE_WCHAR=1 -DSP_HAVE_GETTEXT=1 
-DSIZE_T_IS_UINT=1 -DSP_HAVE_BOOL=1 -DSP_ANSI_CLASS_INST=1 -DSP_HAVE_SOCKET=1 -
DJADE_MIF=1 -DJADE_HTML=1 -DSP_MULTI_BYTE=1 -DSGML_CATALOG_FILES_DEFAULT=\"/etc/
sgml/catalog\" -DSGML_SEARCH_PATH_DEFAULT=\"/usr/share/sgml\" -DHAVE_DLFCN_H=1 -
DDEFAULT_SCHEME_BUILTINS=\"/usr/share/sgml/openjade-1.3.2/builtins.dsl\" -c 
GroveApp.cxx  -fPIC -DPIC
mv -f GroveApp.o .libs/GroveApp.lo
i686-pc-linux-gnu-g++ -march=pentium4 -O2 -pipe -I. -I./../include -I/usr/
include/OpenSP -I/usr/include/OpenSP/.. -I./../grove -DPACKAGE_NAME=\"\" -
DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"openjade\" -DVERSION=\"1.3.2\" -
DSP_DEFINE_TEMPLATES=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -
DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -
DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -DSIZEOF_SIZE_T=4 -
DSIZEOF_UNSIGNED_INT=4 -DSP_HAVE_LOCALE=1 -DSP_HAVE_WCHAR=1 -DSP_HAVE_GETTEXT=1 
-DSIZE_T_IS_UINT=1 -DSP_HAVE_BOOL=1 -DSP_ANSI_CLASS_INST=1 -DSP_HAVE_SOCKET=1 -
DJADE_MIF=1 -DJADE_HTML=1 -DSP_MULTI_BYTE=1 -DSGML_CATALOG_FILES_DEFAULT=\"/etc/
sgml/catalog\" -DSGML_SEARCH_PATH_DEFAULT=\"/usr/share/sgml\" -DHAVE_DLFCN_H=1 -
DDEFAULT_SCHEME_BUILTINS=\"/usr/share/sgml/openjade-1.3.2/builtins.dsl\" -c 
GroveApp.cxx >/dev/null 2>&1

< blah, blah, blah >

making executable: /usr/lib/libogrove.so.0.0.1
making executable: /usr/lib/libospgrove.so.0.0.1
making executable: /usr/lib/libostyle.so.0.0.1
>>> Completed installing openjade-1.3.2-r1 into /var/tmp/portage/openjade-1.3.2-
r1/image/

>>> Merging app-text/openjade-1.3.2-r1 to /
--- /usr/
--- /usr/bin/
>>> /usr/bin/jade -> openjade

< blah, blah, blah >

Overlay data:

router ~ # diff -Naur /usr/portage/app-text/openjade/openjade-1.3.2-r1.ebuild /
usr/local/portage/app-text/openjade/openjade-1.3.2-r1.ebuild 
--- /usr/portage/app-text/openjade/openjade-1.3.2-r1.ebuild     2005-06-05 12:
05:02.000000000 +0300
+++ /usr/local/portage/app-text/openjade/openjade-1.3.2-r1.ebuild       2005-06-
25 18:57:46.000000000 +0300
@@ -32,7 +32,7 @@
        # Please note!  Opts are disabled.  If you know what you're doing
        # feel free to remove this line.  It may cause problems with
        # docbook-sgml-utils among other things.
-       export ALLOWED_FLAGS="-O -O1 -O2 -pipe -g"
+       export ALLOWED_FLAGS="-O -O1 -O2 -pipe -g -march"
        strip-flags
 
        # Default CFLAGS and CXXFLAGS is -O2 but this make openjade segfault

------- Comment #4 From Alastair Tse (RETIRED) 2005-06-25 10:05:43 0000 -------
thanks. i've also tested it on my p4 with various SGML files and it seems to be
working alright.

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.11-gentoo-r6 i686)
===============================================================
==
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.12
ccache version 2.4 [disabled]
dev-lang/python:     2.2.3-r3, 2.3.5, 2.4.1
sys-apps/sandbox:    1.2.8
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.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -g -O3 -pipe -fno-stack-protector"
CHOST="i686-pc-linux-gnu"

so i'll add the -march for the ALLOWED_FLAGS.

First Last Prev Next    No search results available      Search page      Enter new bug