All of lore.kernel.org
 help / color / mirror / Atom feed
* perl build failure
@ 2011-05-24 12:32 Phil Blundell
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Blundell @ 2011-05-24 12:32 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

My eglibc builds are failing in perl with:

| ccache i586-oe-linux-gcc -march=i586 --sysroot=/home/pb/oe/build-meta/tmp-eglibc/sysroots/qemux86 -Wl,-O1  -Wl,--as-needed -o miniperl \
| 	      gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o   \
| 	    miniperlmain.o opmini.o perlmini.o -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
| toke.o: In function `S_scan_str':
| /home/pb/oe/build-meta/tmp-eglibc/work/i586-oe-linux/perl-5.12.3-r0/perl-5.12.3/toke.c:12609: undefined reference to `__stack_chk_guard'

What seems to be happening is that perl is adding -fstack-protector to
CFLAGS but then somehow forgetting to include it during final link of
miniperl.

I see that -fstack-protector is being forced off altogether for uclibc
builds which presumably is why the problem doesn't occur there.  But I
am somewhat baffled as to why this is apparently not happening for
anybody else with eglibc.

Anyway, does anybody have an idea what is going wrong here?  I had a
quick look at it but the perl cross-compilation process seems to be
slightly baroque and I couldn't immediately figure out how the various
makefiles and config fragments were meant to be interacting.

p.





^ permalink raw reply	[flat|nested] 2+ messages in thread
* Perl build failure
@ 2012-02-17  9:42 Martyn Welch
  0 siblings, 0 replies; 2+ messages in thread
From: Martyn Welch @ 2012-02-17  9:42 UTC (permalink / raw)
  To: Yocto Project

Hi,

I'm attempting to build the head of the master branch, targeting
core-image-minimal on qemux86 with an up to date Ubuntu 10.04 32-bit system.

I am getting the following error from perl:

/home/welchma/Documents/linux/yocto/yocto_head/build/tmp/work/i586-poky-linux/perl-5.14.2-r2/perl-5.14.2/Cross/generate_config_sh
config.sh-x86-linux >
/home/welchma/Documents/linux/yocto/yocto_head/build/tmp/work/i586-poky-linux/perl-5.14.2-r2/perl-5.14.2/Cross/../config.sh
Unable to open config.sh-x86-linux at
/home/welchma/Documents/linux/yocto/yocto_head/build/tmp/work/i586-poky-linux/perl-5.14.2-r2/perl-5.14.2/Cross/generate_config_sh
line 47.
make: *** [perl] Error 2

looking in the "Cross" folder there is no config.sh-x86-linux, there is
however a config.sh-i586-linux.

Looking into the Makefile that seems to be run I see:

$(TOPDIR)/generate_config_sh config.sh-$(SYS) > $(TOPDIR)/../config.sh

where:

export SYS=$(ARCH)-$(OS)

The run.do_compile script has:

export ARCH="x86"

Which I guess explains why it's getting that value. Looking at the perl
recipe, the do_configure stage creates a config file and I can see that this
exists in build dir and that contains what I believe are the required values:

ARCH = i586
OS = linux

However this doesn't seem to be explicitly referenced by do_compile and
doesn't seem to be referenced by generate_config_sh.

Any ideas?

Martyn

-- 
Martyn Welch (Lead Software Engineer)  | Registered in England and Wales
GE Intelligent Platforms               | (3828642) at 100 Barbirolli Square
T +44(0)1327322748                     | Manchester, M2 3AB
E martyn.welch@ge.com                  | VAT:GB 927559189


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-17  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-24 12:32 perl build failure Phil Blundell
  -- strict thread matches above, loose matches on Subject: below --
2012-02-17  9:42 Perl " Martyn Welch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.