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

next in thread | previous in thread | raw e-mail | index | archive | help
Sunday,  1 September 2013 at 14:43:24 +0300, George Liaskos said:
> 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 version 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=/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,--end-group
> > obj/third_party/libvpx/source/libvpx/build/make/libvpx_obj_int_extract.obj_int_extract.o: In function `parse_elf':
> > obj_int_extract.c:(.text.parse_elf+0x71a): undefined reference to `__stack_chk_fail_local'
> > /usr/local/bin/ld: libvpx_obj_int_extract: hidden symbol `__stack_chk_fail_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 Chromium built fine on this machine.
> 
> Hm, please try the following
> 
> --- a/www/chromium/Makefile
> +++ b/www/chromium/Makefile
> @@ -18,6 +18,8 @@ COMMENT=      Mostly BSD-licensed web browser based
> on WebKit and Gtk+
>  LICENSE=       BSD LGPL21 MPL
>  LICENSE_COMB=  multi
> 
> +CFLAGS+=       -fno-stack-protector
> +
>  BUILD_DEPENDS= ${LOCALBASE}/bin/gperf:${PORTSDIR}/devel/gperf \
>                 bash:${PORTSDIR}/shells/bash \
>                 yasm:${PORTSDIR}/devel/yasm \


That sorted it - thanks!



Peter.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130901151645.GA84359>