Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2014 03:04:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        chromium@FreeBSD.org
Subject:   [Bug 193610] chromium-37.0.2062.120_1 Bus error (core dumped)
Message-ID:  <bug-193610-28929-lQc8RIR1oe@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-193610-28929@https.bugs.freebsd.org/bugzilla/>
References:  <bug-193610-28929@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D193610

--- Comment #17 from Craig Wiesen <ctyz1999+bugzilla@gmail.com> ---

I have now also added this so /usr/ports/www/chromium/Makefile

It seems to help force chromium build in poudriere.

diff -u Makefile.orig  Makefile
--- Makefile.orig    2014-09-25 21:44:39.397280194 -0500
+++ Makefile    2014-09-25 19:59:45.731277514 -0500
@@ -16,6 +16,7 @@
 CFLAGS+=3D    -fno-stack-protector -isystem${LOCALBASE}/include

 BUILD_DEPENDS=3D    ${LOCALBASE}/bin/gperf:${PORTSDIR}/devel/gperf \
+        gcc47:${PORTSDIR}/lang/gcc47 \
         bash:${PORTSDIR}/shells/bash \
         yasm:${PORTSDIR}/devel/yasm \
         flock:${PORTSDIR}/sysutils/flock \


With that, I do not need the patch to /usr/ports/Mk/bsd.gcc

Poudriere still emits all those scary gcc47 exit status messages and chrome
still core dumps upon exit.


I do not understand how poudriere can use non base gcc/clang versions ever?
unless using the additional BUILD_DEPENDS to install the compiler in the ja=
il
and the overrides in /etc/make.conf /usr/local/etc/poudriere.d/make.conf


In case it is useful for others':

My entire /etc/make.conf (now)
# kernel/world stuff
CPUTYPE?=3Dcore2
KERNCONF=3DSANDYBRIDGE
COMPAT4X=3Dyes
COMPAT5X=3Dyes
COMPAT6X=3Dyes
COMPAT7X=3Dyes
MAKE_IDEA=3Dyes
NO_PROFILE=3Dyes
PORTS_MODULES=3Demulators/virtualbox-ose-kmod

# ports
DEFAULT_VERSIONS=3D apache=3D2.4 mysql=3D5.6 perl5=3D5.18 php=3D5.5 ruby=3D=
2.0
BATCH=3Dyes
WITH_KMS=3Dyes
WITH_NEW_XORG=3Dyes
WITH_GALLIUM=3Dyes
WITH_OPENSSL_PORT=3Dyes
WITH_PKGNG=3Dyes
WITH_BDB6_PERMITTED=3Dyes
WITH_BDB_VER=3D6
WITH_SSP=3Dyes
WITH_SSP_PORTS=3Dyes
TESSERACT_LANGS=3Deng
DISABLE_VULNERABILITIES=3Dyes
NO_IGNORE=3D1
FAVORITE_COMPILER=3Dgcc
OVERRIDE_LINUX_BASE_PORT=3Dc6
OVERRIDE_LINUX_NONBASE_PORTS=3Dc6

.if ${.CURDIR:M*/www/chromium*}
CC=3Dgcc47
CXX=3Dg++47
CPP=3Dcpp47
.endif

.if ${.CURDIR:M*/graphics/libcdr*}
CC=3Dgcc47
CXX=3Dg++47
CPP=3Dcpp47
.endif

.if ${.CURDIR:M*/x11/kdelibs4*}
# cannot build with clang
CC=3Dgcc
CXX=3Dg++
CPP=3Dcpp
.endif

<EOF>


and /etc/src.conf

WITH_CLANG_FULL=3Dyes
WITH_CLANG_IS_CC=3Dyes
CC=3Dclang
CXX=3Dclang++
CPP=3Dclang-cpp
WITH_ICONV=3Dyes
WITH_IDEA=3Dyes
WITH_SSP=3Dyes
WITH_BDB6_PERMITTED=3Dyes

<EOF>


To keep them in sync with poudriere I link to from /etc
ls -lad /etc/make.conf /etc/src.conf
lrwxr-xr-x  1 root  wheel  36 May 14 23:18 /etc/make.conf ->
/usr/local/etc/poudriere.d/make.conf
lrwxr-xr-x  1 root  wheel  35 May 14 23:19 /etc/src.conf ->
/usr/local/etc/poudriere.d/src.conf



(In reply to Craig Wiesen from comment #15)
> I ended up reverting back to gcc 4.7 to compile chromium.
> chromium at least now launches and runs, still core dumps on exit though.
>=20
>=20
> I took a patch found in=20
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D189444
> to allow my /etc/make.conf with overrides to DEFAULT_VERSIONS to work
> correctly and not get bogus /usr/ports/lang/gcc (gcc48) depends pulled in.
>=20
>=20
> --- /usr/ports/Mk/bsd.gcc.mk.orig	2014-09-20 22:19:32.980350051 -0500
> +++ /usr/ports/Mk/bsd.gcc.mk	2014-09-20 17:02:51.695805244 -0500
> @@ -148,7 +148,7 @@
>  .  if ${OSVERSION} < ${_GCCVERSION_${v}_L} || ${OSVERSION} >
> ${_GCCVERSION_${v}_R} || !exists(/usr/bin/gcc)
>  V:=3D			${_GCCVERSION_${v}_V:S/.//}
>  _GCC_PORT_DEPENDS:=3D	gcc${V}
> -.   if ${_USE_GCC} =3D=3D ${GCC_DEFAULT}
> +.   if ${_USE_GCC} =3D=3D ${GCC_DEFAULT}  && empty(DEFAULT_VERSIONS:Mgcc=
=3D*)
>  _GCC_PORT:=3D		gcc
>  .   else
>  _GCC_PORT:=3D		gcc${V}
>=20
>=20
>=20
>=20
>=20
>=20
> /etc/make.conf (relevant parts only)
>=20
> DEFAULT_VERSIONS=3D apache=3D2.4 gcc=3D4.9 mysql=3D5.6 perl5=3D5.18 php=
=3D5.5 ruby=3D2.0
> BATCH=3Dyes
> MAKE_JOBS_UNSAFE=3Dyes
> # bus error, core dumps - trying 4.7
> # also attempt to shut off stack protection
> .if ${.CURDIR:M*/www/chromium*}
>  USE_GCC=3D4.7
>  CC=3Dgcc47
>  CXX=3Dg++47
>  CPP=3Dcpp47
>  WITH_SSP=3Dno
>  WITH_SSP_PORTS=3Dno
> .endif
>=20
>=20
>=20
> I duuno if I'd call it fixed, but maybe others can at least get chromium
> running again.
>=20
>=20
>=20
> (In reply to Craig Wiesen from comment #11)
> > I am adding a me too.  Same thing as Rob B.
> >=20
> > I have built chromium in poudriere, and from /usr/ports on the host.
> > gcc4.8 and clang 3.4.1.
> >=20
> >=20
> > I also saw my DEBUG=3Don version would not run. comment #7.
> >=20
> >=20
> >=20
> >=20
> > > uname -a
> > FreeBSD desktop.home.org 9.3-STABLE FreeBSD 9.3-STABLE #0 r271674: Tue =
Sep
> > 16 13:12:37 CDT 2014=20=20=20=20
> > root@desktop.home.org:/usr/obj/usr/src/sys/SANDYBRIDGE  amd64
> >=20
> > > gcc48 -v
> > Using built-in specs.
> > COLLECT_GCC=3Dgcc48
> > COLLECT_LTO_WRAPPER=3D/usr/local/libexec/gcc48/gcc/x86_64-portbld-freeb=
sd9.3/4.
> > 8.3/lto-wrapper
> > Target: x86_64-portbld-freebsd9.3
> > ...
> > Thread model: posix
> > gcc version 4.8.3 (FreeBSD Ports Collection)=20
> >=20
> > > clang -v
> > FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
> > Target: x86_64-unknown-freebsd9.3
> > Thread model: posix
> > Selected GCC installation:=20
> >=20
> >=20
> > Poudriere version: 3.0.17
> > Host OSVERSION: 903503
> > Jail OSVERSION: 903502
> >=20
> >=20
> > =3D=3D=3D> The following configuration options are available for
> > chromium-37.0.2062.120_2:
> >      CODECS=3Don: Compile and enable patented codecs like H.264
> >      DEBUG=3Doff: Build with debugging support
> >      GCONF=3Don: GConf configuration backend support
> >      PULSEAUDIO=3Don: PulseAudio sound server support
> >      TEST=3Doff: Build and/or run tests

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193610-28929-lQc8RIR1oe>