Mailing List Archive

Error compiling quagga for PowerPC
Hi

I am trying to crosscompile quagga-1.2.0 for PowerPC architecture on Ubuntu machine.

i am running this command to configure before running make command

./configure --localstatedir=/var/run/quagga --host=powerpc-linux-gnu --
prefix=/home/cdot/tmplocal-1.2.0 CC=$CC CPP="$CC -E" CFLAGS=" -mcpu=e5500" --enable-
vtysh

i am getting error while i try --enable-vtysh. i am getting this error

configure: error: vtysh needs libreadline but was not found and usable on your
system

But libreadline is installed in my system. i have tried all the versions of
libreadline available for ubuntu.

when i check config.log i see this error


/powerpc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc-cross/powerpc-linux-
gnu/5/../../../../powerpc-linux-gnu/lib/../lib/libreadline.a when searching for -
lreadline

why libreadline.a is incompatible, i dont comprehend.

i tried earlier solutions provided, but they dont seem to work

I am stuck at this error for a while.




Regards

Sandeep Kumar

_______________________________________________
Quagga-users mailing list
Quagga-users@lists.quagga.net
https://lists.quagga.net/mailman/listinfo/quagga-users
Re: Error compiling quagga for PowerPC [ In reply to ]
> Message: 1
> Date: Tue, 13 Apr 2021 11:35:28 +0530
> From: "Sandeep Kumar" <ksandeep@cdot.in>
> To: quagga-users@lists.quagga.net
> Subject: [quagga-users 15045] Error compiling quagga for PowerPC
> Message-ID: <20210413055501.M23473@cdot.in>
> Content-Type: text/plain; charset=utf-8
>
> Hi
>
> I am trying to crosscompile quagga-1.2.0 for PowerPC architecture on Ubuntu machine.
>
> i am running this command to configure before running make command
>
> ./configure --localstatedir=/var/run/quagga --host=powerpc-linux-gnu --
> prefix=/home/cdot/tmplocal-1.2.0 CC=$CC CPP="$CC -E" CFLAGS=" -mcpu=e5500" --enable-
> vtysh
>
> i am getting error while i try --enable-vtysh. i am getting this error
>
> configure: error: vtysh needs libreadline but was not found and usable on your
> system
>
> But libreadline is installed in my system. i have tried all the versions of
> libreadline available for ubuntu.
>
> when i check config.log i see this error
>
>
> /powerpc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc-cross/powerpc-linux-
> gnu/5/../../../../powerpc-linux-gnu/lib/../lib/libreadline.a when searching for -
> lreadline
>
> why libreadline.a is incompatible, i dont comprehend.
>
> i tried earlier solutions provided, but they dont seem to work
>
> I am stuck at this error for a while.


Hi,

I don't have any experience using cross-compiling. Do you have
libreadline-dev package installed?

Trying to manually evaluate the path from the error message:

/usr/lib/gcc-cross/powerpc-linux-gnu/5/../../../../powerpc-linux-gnu/lib/../lib/libreadline.a
/usr/lib/gcc-cross/powerpc-linux-gnu/../../../powerpc-linux-gnu/lib/../lib/libreadline.a
/usr/lib/gcc-cross/../../powerpc-linux-gnu/lib/../lib/libreadline.a
/usr/lib/../powerpc-linux-gnu/lib/../lib/libreadline.a
/usr/powerpc-linux-gnu/lib/../lib/libreadline.a
/usr/powerpc-linux-gnu/lib/libreadline.a

Does that path exist?

Regards
Matthias Ferdinand
_______________________________________________
Quagga-users mailing list
Quagga-users@lists.quagga.net
https://lists.quagga.net/mailman/listinfo/quagga-users
Re: Error compiling quagga for PowerPC [ In reply to ]
On Tue, Apr 13, 2021 at 11:35:28AM +0530, Sandeep Kumar wrote:
> I am trying to crosscompile quagga-1.2.0 for PowerPC architecture on Ubuntu machine.
>
> i am running this command to configure before running make command
>
> ./configure --localstatedir=/var/run/quagga --host=powerpc-linux-gnu --
> prefix=/home/cdot/tmplocal-1.2.0 CC=$CC CPP="$CC -E" CFLAGS=" -mcpu=e5500" --enable-
> vtysh
>
> i am getting error while i try --enable-vtysh. i am getting this error
>
> configure: error: vtysh needs libreadline but was not found and usable on your
> system
>
> But libreadline is installed in my system. i have tried all the versions of
> libreadline available for ubuntu.

Well you need libreadline library and headers for the target, not for
your host.

> when i check config.log i see this error
>
>
> /powerpc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc-cross/powerpc-linux-
> gnu/5/../../../../powerpc-linux-gnu/lib/../lib/libreadline.a when searching for -
> lreadline
>
> why libreadline.a is incompatible, i dont comprehend.
>
> i tried earlier solutions provided, but they dont seem to work
>
> I am stuck at this error for a while.

Maybe 32 vs 64 bit? After all where did your libreadline.a come from?
Was it built with the same -mcpu=e5500 option?

After all to me powerpc-linux-gnu makes me think 32 bit ppc, while
-mcpu=e5500 I think is 64 bit ppc.

I haven't ever cross compiled quagga, but I know it compiles fine on
powerpc natively.

--
Len Sorensen
_______________________________________________
Quagga-users mailing list
Quagga-users@lists.quagga.net
https://lists.quagga.net/mailman/listinfo/quagga-users