Mazi Lo | 19 Jun 2011 15:16
Picon
Favicon

Cross-compilation problem

For the past few months, I have unsucessfully tried to cross compile unixodbc (from the latest SVN trunk) as shown below. If I reissued make after the compilation crashed, the compilation went smoothly to produce a usable package. So, in this case, I will need to issue a 2x compilations in order to produce a useable binary package and that is of course making no sense. I am hoping developers here can help to solve this issue. BTW, I am using the latest revision #35 of unixodbc from SVN trunk. Thank you.

-------------------------------------------
OpenWrt-libtool: compile:  mipsel-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/usr/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libiconv-stub/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libintl-stub/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libiconv-stub/include -Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -msoft-float -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libiconv-stub/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libintl-stub/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/usr/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libiconv-stub/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libintl-stub/include -fpic -MT strcasecmp.lo -MD -MP -MF .deps/strcasecmp.Tpo -c strcasecmp.c  -fPIC -DPIC -o .libs/strcasecmp.o
mv -f .deps/strcasecmp.Tpo .deps/strcasecmp.Plo
mv -f .deps/strcasecmp.Tpo .deps/strcasecmp.Plo
mv: cannot stat `snprintf.loT': No such file or directory
mv -f .deps/snprintf.Tpo .deps/snprintf.Plo
mv -f .deps/snprintf.Tpo .deps/snprintf.Plo
mv: cannot move `.deps/snprintf.Tpo' to `.deps/snprintf.Plo': No such file or directory
make[4]: *** [snprintf.lo] Error 1
/bin/sh ../libtool --tag=CC   --mode=link mipsel-openwrt-linux-uclibc-gcc  -Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -msoft-float -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libiconv-stub/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libintl-stub/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/usr/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libiconv-stub/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libintl-stub/include -fpic -no-undefined  -L/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib -L/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/lib -L/opt/openwrt-svn-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/usr/lib -L/opt/openwrt-svn-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/lib -L/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libiconv-stub/lib -L/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libintl-stub/lib -L/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib/libiconv-stub/lib -o libodbcextraslc.la  strcasecmp.lo snprintf.lo  -ldl  -lpthread
make[4]: Leaving directory `/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/unixodbc-r35/extras'
make[3]: *** [install-recursive] Error 1
make[3]: *** Waiting for unfinished jobs....
-------------------------------------------

--
Mazilo
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Nick Gorham | 19 Jun 2011 17:28
Favicon

Re: Cross-compilation problem

On 19/06/2011 14:16, Mazi Lo wrote:
For the past few months, I have unsucessfully tried to cross compile unixodbc (from the latest SVN trunk) as shown below. If I reissued make after the compilation crashed, the compilation went smoothly to produce a usable package. So, in this case, I will need to issue a 2x compilations in order to produce a useable binary package and that is of course making no sense. I am hoping developers here can help to solve this issue. BTW, I am using the latest revision #35 of unixodbc from SVN trunk. Thank you.

If the compiler crashes, and then works ok, it may be a hardware problem at your side. Does it always crash in the same place, Do you have a copy of the output when it crashed?

--
Nick
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Mazi Lo | 19 Jun 2011 18:47
Picon
Favicon

Re: Cross-compilation problem

Nick,

The compilation always crashes on the same spot. I doubt it is a hardware issue. The reason is my system is able to cross compile the whole OpenWRT firmware for many different platforms. It may be a compiler issue. However, I woulr rather think it is not. That's why I sent this to the mailing list and see if unixodbc developers can find out what causes the issue.

--
Mazilo

Date: Sun, 19 Jun 2011 16:28:06 +0100
From: nick <at> lurcher.org
To: unixodbc-dev <at> mailman.unixodbc.org
Subject: Re: [unixODBC-dev] Cross-compilation problem

On 19/06/2011 14:16, Mazi Lo wrote:
.ExternalClass .ecxhmmessage P {padding:0px;} .ExternalClass body.ecxhmmessage {font-size:10pt;font-family:Tahoma;}
For the past few months, I have unsucessfully tried to cross compile unixodbc (from the latest SVN trunk) as shown below. If I reissued make after the compilation crashed, the compilation went smoothly to produce a usable package. So, in this case, I will need to issue a 2x compilations in order to produce a useable binary package and that is of course making no sense. I am hoping developers here can help to solve this issue. BTW, I am using the latest revision #35 of unixodbc from SVN trunk. Thank you.

If the compiler crashes, and then works ok, it may be a hardware problem at your side. Does it always crash in the same place, Do you have a copy of the output when it crashed?

--
Nick

_______________________________________________ unixODBC-dev mailing list unixODBC-dev <at> mailman.unixodbc.org http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Nick Gorham | 19 Jun 2011 19:08
Favicon

Re: Cross-compilation problem

On 19/06/2011 17:47, Mazi Lo wrote:
Nick,

The compilation always crashes on the same spot. I doubt it is a hardware issue. The reason is my system is able to cross compile the whole OpenWRT firmware for many different platforms. It may be a compiler issue. However, I woulr rather think it is not. That's why I sent this to the mailing list and see if unixodbc developers can find out what causes the issue.

Ok, no problem,. can you send the output of the compilation up to the point of the crash, and we can see if there is anything obvious. I have cross compiled the source in the past but not possibly for that target.

--
Nick
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Mazi Lo | 28 Jun 2011 15:22
Picon
Favicon

Re: Cross-compilation problem

Nick,

It looks like the mailing list refuses to accept e-mail with an attachment. So, let me try again to upload the excerpts to pastebin (see lines #1573, #1574, and #1575). This time, I have updated to svn r39.

--
Mazilo

Date: Sun, 19 Jun 2011 18:08:04 +0100
From: nick <at> lurcher.org
To: unixodbc-dev <at> mailman.unixodbc.org
Subject: Re: [unixODBC-dev] Cross-compilation problem

On 19/06/2011 17:47, Mazi Lo wrote:
.ExternalClass .ecxhmmessage P {padding:0px;} .ExternalClass body.ecxhmmessage {font-size:10pt;font-family:Tahoma;}
Nick,

The compilation always crashes on the same spot. I doubt it is a hardware issue. The reason is my system is able to cross compile the whole OpenWRT firmware for many different platforms. It may be a compiler issue. However, I woulr rather think it is not. That's why I sent this to the mailing list and see if unixodbc developers can find out what causes the issue.

Ok, no problem,. can you send the output of the compilation up to the point of the crash, and we can see if there is anything obvious. I have cross compiled the source in the past but not possibly for that target.

--
Nick

_______________________________________________ unixODBC-dev mailing list unixODBC-dev <at> mailman.unixodbc.org http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Nick Gorham | 28 Jun 2011 15:35
Favicon

Re: Cross-compilation problem

On 28/06/11 14:22, Mazi Lo wrote:
Nick,

It looks like the mailing list refuses to accept e-mail with an attachment. So, let me try again to upload the excerpts to pastebin (see lines #1573, #1574, and #1575). This time, I have updated to svn r39.

--
Mazilo


Ok, yes, the problem seems to be that its doing the move twice, and the second fails (as its moved)

  1. mv -f .deps/strcasecmp.Tpo .deps/strcasecmp.Plo
  2. mv -f .deps/strcasecmp.Tpo .deps/strcasecmp.Plo
  3. mv: cannot stat `.deps/strcasecmp.Tpo': No such file or directory
I wonder whats causing that to happen.


_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Nick Gorham | 28 Jun 2011 15:40
Favicon

Re: Cross-compilation problem

On 28/06/11 14:22, Mazi Lo wrote:
Nick,

It looks like the mailing list refuses to accept e-mail with an attachment. So, let me try again to upload the excerpts to pastebin (see lines #1573, #1574, and #1575). This time, I have updated to svn r39.

--
Mazilo

It looks like your libtool build is running the compile twice for every case.


--
Nick
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Nick Gorham | 28 Jun 2011 15:42
Favicon

Re: Cross-compilation problem

On 28/06/11 14:40, Nick Gorham wrote:
On 28/06/11 14:22, Mazi Lo wrote:
Nick,

It looks like the mailing list refuses to accept e-mail with an attachment. So, let me try again to upload the excerpts to pastebin (see lines #1573, #1574, and #1575). This time, I have updated to svn r39.

--
Mazilo

It looks like your libtool build is running the compile twice for every case.

Can you email me a copy of the libtool that is built in the source directory when you configure (send to nick at lurcher dot org)

--
Nick
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Nick Gorham | 28 Jun 2011 15:52
Favicon

Re: Cross-compilation problem

On 28/06/11 14:42, Nick Gorham wrote:
On 28/06/11 14:40, Nick Gorham wrote:
On 28/06/11 14:22, Mazi Lo wrote:
Nick,

It looks like the mailing list refuses to accept e-mail with an attachment. So, let me try again to upload the excerpts to pastebin (see lines #1573, #1574, and #1575). This time, I have updated to svn r39.

--
Mazilo

It looks like your libtool build is running the compile twice for every case.

Can you email me a copy of the libtool that is built in the source directory when you configure (send to nick at lurcher dot org)

--
Nick

Can I also have a copy of your extras/Makefile

--
Nick
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev

Gmane