Closed GoogleCodeExporter closed 9 years ago
Tested on Raspberry Pi hardware, OS Linux raspberrypi 3.2.27+.
$ svn info
Path: .
Working Copy Root Path: /home/pi/gperftools/gperftools-read-only
URL: http://gperftools.googlecode.com/svn/trunk
Repository Root: http://gperftools.googlecode.com/svn
Repository UUID: 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
Revision: 182
Node Kind: directory
Schedule: normal
Last Changed Author: chappedm@gmail.com
Last Changed Rev: 182
Last Changed Date: 2012-11-05 04:45:01 +0000 (Mon, 05 Nov 2012)
Original comment by sarev_of...@yahoo.co.uk
on 15 Jan 2013 at 2:16
r197 | chappedm@gmail.com | 2013-03-10 20:23:03 -0400 (Sun, 10 Mar 2013) | 6
lines
issue-493: Fix for building against ARM targets
gperftools was failing to build for arm targets for the following reasons:
1. Some ARMv7 instructions used when the target is ARMv6 so those fail to
assemble
2. The cache line length is undefined for ARM architectures
Original comment by chapp...@gmail.com
on 11 Mar 2013 at 12:23
There seems to be a bug in this patch.
On the line that says
#if defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) ||
defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) ||
defined(__ARM_ARCH_6KZ__) || defined(__ARM_ARCH_6T2__)
__ARM__ARCH_6KZ__ does not exist, it should be __ARM__ARCH_6ZK__ instead (flip
the K and the Z), or a || defined(__ARM_ARCH_6ZK__) can be added, just to keep
__ARM__ARCH_6KZ__ working in case somebody is using it.
tcmalloc does not build on the Raspberry Pi because of this.
Original comment by pedron...@gmail.com
on 9 Oct 2014 at 7:51
Pressed send too soon. It does not build on the Raspberry Pi when using
"-mcpu=arm1176jzf-s"
Original comment by pedron...@gmail.com
on 9 Oct 2014 at 7:54
This is plausible. I don't have raspberry so cannot test. Please consider
testing this proposed fix:
https://github.com/alk/gperftools/commit/7efda3497aa7d3f2ef32dbda4bdcc8fcc0c62ee
9
Original comment by alkondratenko
on 11 Oct 2014 at 10:13
Actually I've realized that my fix was terribly wrong. Correct fix is now
uploaded to wip branch here:
https://github.com/alk/gperftools/tree/wip-raspberry-pi-barrier-fix.
Please consider testing it.
Original comment by alkondratenko
on 18 Oct 2014 at 11:50
I've been out. I'll give it a try on Monday and will report back
Original comment by pedron...@gmail.com
on 19 Oct 2014 at 2:36
Original issue reported on code.google.com by
sarev_of...@yahoo.co.uk
on 15 Jan 2013 at 2:13Attachments: