OpenWrt Forum Archive

Topic: Specify EABI version for ARM

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I'm trying to compile Intel Infrastructure DSP Solution for IXP4XX (http://www.intel.com/design/network/pro … /index.htm) in OpenWRT. The library contains some precompiled binaries.

The first problem I encountered was that the binaries are linked against glibc, so I am using kamikaze trunk, wich supports specifying different libc's. I am currently trying with eglibc (supposedly binary compatible wit glibc, but more geared towards embedded systems). I've got to the point where everything compiles, but fails to link because the binaries use different EABI versions (Intel binaries' use version 0, while mine use version 4).

I tried to add -meabi=0 to gcc options as recommended in https://forum.openwrt.org/viewtopic.php … 731#p50731, but on the configure stage of eglibc, gcc says it does not recognize that option (and there's no mention of it on the man page).

So, my question is... what's the right way to tell gcc to use a certain EABI version?

Any help is really appreciated

I figured it out.

First of all, the -meabi option is passed to the assembler, not to gcc (see here).

But it turns out that the option is not needed actually. When reading this, I realized that Intel binaries where not using EABI at all (and that's what the linker means by EABI version 0). So, I disabled EABI in Kamikaze (Advanced configuration options-> Toolchain Options-> uncheck Enable EABI support, it's enabled by default in trunk) and everything is good now.

Hi Nvnyx,

I am very interesting for IDS working on IXP4xx of Openwrt, do you finished your compiling on Openwrt? if yes, can you please post how you compiling it in Openwrt?

Thank you.

Hi

I was never able to compile completely. I don't remember exactly what the problem was (it was a year ago), but after setting the EABI options, the compilation stopped with an error inside the library. As the modules are precompiled, there wasn't much I could do.

Have you tried using current trunk?

Hi Nvnyx,

Thanks for your response. i am newbie in Openwrt smile, so, i have no idea how to integrate the IDS package to Openwrt for compiling, but as i am very interesting to compiling it, i will keep try and let you know results, also, do you have some guide for how to put the IDS packages to openwrt for compiling? or could we talking more details through mail, my mail address is li770426 at gmail.com

Thank you.
Li

(Last edited by liyuqian on 3 Nov 2010, 04:17)

The discussion might have continued from here.