Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Sep 2013 14:43:24 +0300
From:      George Liaskos <geo.liaskos@gmail.com>
To:        Peter Harrison <four.harrisons@googlemail.com>
Cc:        questions@freebsd.org
Subject:   Re: Chromium build failure
Message-ID:  <CANcjpODJdkM3dm2LENSk2Ka92ztWH=9zHonXOj7an5OX=MvDdQ@mail.gmail.com>
In-Reply-To: <20130901101511.GA32996@thinkpad.piggybox>
References:  <20130901101511.GA32996@thinkpad.piggybox>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 1, 2013 at 1:15 PM, Peter Harrison
<four.harrisons@googlemail.com> wrote:
> Hi list,
>
> I'm getting a consistent build error when trying to build the latest vers=
ion of Chromium in ports - here's the error:
>
> ninja: Entering directory `out/Release'
> [65/11901] LINK libvpx_obj_int_extract
> FAILED: g++46 -Wl,-rpath=3D/usr/local/lib/gcc46 -Wl,-z,now -Wl,-z,relro -=
pthread -Wl,-z,noexecstack -fPIC -Wl,--no-keep-memory -m32 -Wl,-O1 -Wl,--as=
-needed -o libvpx_obj_int_extract -Wl,--start-group obj/third_party/libvpx/=
source/libvpx/build/make/libvpx_obj_int_extract.obj_int_extract.o  -Wl,--en=
d-group
> obj/third_party/libvpx/source/libvpx/build/make/libvpx_obj_int_extract.ob=
j_int_extract.o: In function `parse_elf':
> obj_int_extract.c:(.text.parse_elf+0x71a): undefined reference to `__stac=
k_chk_fail_local'
> /usr/local/bin/ld: libvpx_obj_int_extract: hidden symbol `__stack_chk_fai=
l_local' isn't defined
> /usr/local/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> [65/11901] ACTION Generating resources from app/generated_resources.grd
> ninja: build stopped: subcommand failed.
> *** [do-build] Error code 1
>
> Stop in /usr/ports/www/chromium.
>
> This is on:
>
> 9.1-RELEASE-p6 FreeBSD 9.1-RELEASE-p6 #0: Wed Aug 21 20:30:17 UTC 2013   =
  root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>
> Anyone offer me some advice on how to fix? The previous version of Chromi=
um built fine on this machine.

Hm, please try the following

--- a/www/chromium/Makefile
+++ b/www/chromium/Makefile
@@ -18,6 +18,8 @@ COMMENT=3D      Mostly BSD-licensed web browser based
on WebKit and Gtk+
 LICENSE=3D       BSD LGPL21 MPL
 LICENSE_COMB=3D  multi

+CFLAGS+=3D       -fno-stack-protector
+
 BUILD_DEPENDS=3D ${LOCALBASE}/bin/gperf:${PORTSDIR}/devel/gperf \
                bash:${PORTSDIR}/shells/bash \
                yasm:${PORTSDIR}/devel/yasm \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANcjpODJdkM3dm2LENSk2Ka92ztWH=9zHonXOj7an5OX=MvDdQ>