Jump to content


p4python - build for ppc64le

PowerPC ppc64le p4python little endian 64bit

  • Please log in to reply
2 replies to this topic

#1 paji

paji

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 05 May 2015 - 01:44 AM

Hi,
I downloaded the API from ftp://ftp.perforce.com/perforce/r14.1/bin.linux26ppc64/ and trying to build p4python api.
With p4python-2014.2.962887, getting the following error:
PythonClientAPI.cpp: In member function ‘const char* PythonClientAPI::GetEnviroFile()’:
PythonClientAPI.cpp:290:32: error: ‘class Enviro’ has no member named ‘GetEnviroFile’
const StrPtr * s = enviro->GetEnviroFile();
^
PythonClientAPI.cpp: In member function ‘int PythonClientAPI::SetEnviroFile(const char*)’:
PythonClientAPI.cpp:301:13: error: ‘class Enviro’ has no member named ‘SetEnviroFile’
enviro->SetEnviroFile( v );
^
error: command 'powerpc64le-linux-gnu-gcc' failed with exit status 1

With p4python-2013.1.642831, getting the following error:

/usr/bin/ld: Warning: size of symbol `_ZN9KeepAliveD0Ev' changed from 68 in build/temp.linux-ppc64le-2.7/PythonClientUser.o to 56 in p4api-2014.1.821990/lib/librpc.a(netbuffer.o)
/usr/bin/ld: p4api-2014.1.821990/lib/libclient.a(clientapi.o): compiled for a big endian system and target is little endian

Is ppc64le supported?
Has anyone successfully build this?
Any help will be greatly appreciated.

#2 P4Jen

P4Jen

    Advanced Member

  • Staff Moderators
  • 147 posts

Posted 05 May 2015 - 02:39 PM

Hi Paji,

The 2014.1 version of P4Python is supported on the following platforms:

Platform Compatibility
Linux 2.6 Intel (x86, x86_64)
Solaris 10 Intel (x86)
Windows 8, Vista, 7, 2008 Intel (x86, x86_64)
FreeBSD 6.0, 7.0 Intel (x86, x86_64)
Mac OS X 10.6, 10.7, 10.8, 10.9 (x86_64)

Though you may be able to get it working on PowerPC, it is not supported.

I suspect the errors relating to P4ENVIRO, are due to the fact that this functionality was not added until
release 2014.2 of the Perforce Server.

Best,
Jen.

#3 paji

paji

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 05 May 2015 - 04:48 PM

Hi Jen,
Thanks for the reply.

I tried using p4python 2014.1 but it compiled ok, but I got many of these errors during linking:
...

/usr/bin/ld: p4api-2014.1.821990/lib/libclient.a(clientapi.o): compiled for a big endian system and target is little endian
/usr/bin/ld: failed to merge target specific data of file p4api-2014.1.821990/lib/libclient.a(clientapi.o)
...

It seems that the libclient static lib from r14.1/bin.linux26ppc64/ is built for big endian system.
Do you have p4api package that is compiled for ppc little endian system?





Also tagged with one or more of these keywords: PowerPC, ppc64le, p4python, little endian, 64bit

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users