[zeromq-dev] Cross compiling for PowerPC with ELDK

Jong Chen jong.chen at nrl.navy.mil
Wed Jul 22 20:51:20 CEST 2015


Hello,

I'm trying to cross compile zeromq for a PowerPC.  My host machine is
running Ubuntu with version 5.5.3 of the ELDK for powerpc-e500v2 (Embedded
Linux Development Kit) tool chain installed.  I'm trying to compile release
4.1.2 of zeromq.

I'm following the directions that I found here

http://lists.zeromq.org/pipermail/zeromq-dev/2011-October/013789.html

where they were able to successfully cross compile the tool chain.

The command line that I am using is:

export
PATH=/opt/eldk-5.5.3/powerpc-e500v2/sysroots/i686-eldk-linux/usr/bin:/opt/el
dk-5.5.3/powerpc-e500v2/sysroots/i686-eldk-linux/usr/bin/powerpc-linux-gnusp
e:$PATH

./configure \
 --host=powerpc-linux-gnuspe \
 --prefix=/home/chen2/work/chassisStaging \
 CC="powerpc-linux-gnuspe-gcc" \
 CXX="powerpc-linux-gnuspe-g++" \
 CPP="powerpc-linux-gnuspe-gcc" \
 sodium_LIBS=/home/chen2/work/chassisStaging/lib

When I execute the command line I get the error

configure: error: in `/home/chen2/work/zeromq-4.1.2-ppc':
configure: error: C preprocessor "powerpc-linux-gnuspe-gcc" fails sanity
check
See `config.log' for more details

When I look at 'config.log' I see:

| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error
configure:9195: error: in `/home/chen2/work/zeromq-4.1.2-ppc':
configure:9197: error: C preprocessor "powerpc-linux-gnuspe-gcc" fails
sanity check

How do I get around the error?

Things that I have tried already:
-Compile version 3.2.5 of zeromq (same error, fails sanity check)
-Compile version  2.1.0 of zeromq (same error, fails sanity check)

Thanks,
Jong

 
Jong Chen
Software Engineer
COMSEC Systems Section
Naval Research Laboratory
202-767-2570
jong.chen at nrl.navy.mil
jong.chen at nrl.nmic.ic.gov






More information about the zeromq-dev mailing list