Ticket #545 (new defect)

Opened 8 months ago

Last modified 8 months ago

Cross Compilation for WindRiver Pne-2.0 Fails

Reported by: Suryanarayana Garlapati <suryanarayana.garlapati@…> Owned by:
Priority: major Milestone: Release 4
Component: Build Environment Version: 3.0.0-FC
Keywords: Cc:
patch waiting for maintainer: no

Description

Hi,

I am Cross compiling the Opensaf with the Windriver PNE-2.0.
With the following changeset, its failing.


changeset: 515:b10400b32cf8
user: Mathi <Mathivanan.NP@…>
date: Thu Apr 30 19:15:01 2009 +0530
summary: Fix for #303: ncs_eds segfaults on SuSE SLES 10 SP2 when compiled at O1 or above

Following is the error observed after doing the configure.

checking for main in -lxerces-c... no
configure: error: Can't find the xerces shared libraries.

But the xerces are present.


With the Following changeset the Cross Compilation is sucess.

changeset: 468:eec5b563a77b
user: Steve Constant <steve.constant@…>
date: Fri Apr 10 11:23:04 2009 -0600
summary: Added tag 3.0.FC for changeset 9be981691099

Following is the ./configure option used.

./configure cc_exec_prefix="/opt/windriver/pne-2.0/7211/bin/i586-wrs-linux-gnu-x86_32-glibc_cgl" cc_lib_dir="/opt/windriver/pne-2.0/7211/sysroot/lib/" —enable-hpi —with-openhpi —with-hpi-interface=B02 —host=i586-wrs-linux-gnu CFLAGS="-g -I/home/surya/" CXXFLAGS="-g -I/home/surya" LDFLAGS="-L/opt/windriver/pne-2.0/7211/sysroot/usr/lib/"

One more point to note that, with the latest changeset. Following error is observed in config.log
configure:3044: checking whether we are cross compiling
configure:3046: result: no

but the older one in which it is success has the following log.
configure:2897: checking whether we are cross compiling
configure:2899: result: yes

Attached are the config.log in both the cases.

but previous

Attachments

config.log_failure (87.5 kB) - added by Suryanarayana Garlapati <suryanarayana.garlapati@…> 8 months ago.
config.log_success (107.4 kB) - added by Suryanarayana Garlapati <suryanarayana.garlapati@…> 8 months ago.

Change History

Changed 8 months ago by Suryanarayana Garlapati <suryanarayana.garlapati@…>

Changed 8 months ago by Suryanarayana Garlapati <suryanarayana.garlapati@…>

Changed 8 months ago by Suryanarayana Garlapati <suryanarayana.garlapati@…>

After having the Mathi patch, ./configure is successfully done. But "make rpm" is resulting in error. It is searching for opensaf-i686.conf for the line
"%{_sysconfdir}/ld.so.conf.d/%{name}-%{_host_cpu}.conf" in opensaf.spec.in.

But this should be searching for "opensaf-i586.conf" as i am cross compiling for i586 only.

I manually edited the "opensaf.spec.in" such that above line is as follows
"%{_sysconfdir}/ld.so.conf.d/%{name}-i586.conf" and "make rpm" goes thru.

please suggest, if any further changes are required.

Changed 8 months ago by murthy

  • priority changed from blocker to major
  • milestone changed from 3.0.0-RC1 to Release 4

Add/Change #545 (Cross Compilation for WindRiver Pne-2.0 Fails)

Author



Action
as new
Note: See TracTickets for help on using tickets.