[coldfire-gnu-discuss] m68k-linux-gnu-gcc/php-5.3.5 cross compiling problem

El Topo cameos at gmail.com
Fri Feb 25 01:23:29 UTC 2011


Hi Carlos,

Thanks for the reply.

I have a zip file attached with 3 files:
parse_date_err.txt: compiling error with libtool without --silent,
m68k-linux-gnu-gcc with -save-temps -v
parse_date.s, parse_date.i: temp files.

my cross compiler was installed at /home/lxl/freescale-coldfire-2010.09/.

By the way, I tried to compile php statically-linked
(m68k-linux-gnu-gcc without -fPIC, php configured with --enable-static
--disable-shared), parse_datea.c was compiled OK.

Thanks,
cameos

On Thu, Feb 24, 2011 at 4:38 PM, Carlos O'Donell
<carlos at codesourcery.com> wrote:
> On 2/24/2011 4:57 PM, El Topo wrote:
>> /bin/sh /home/lxl/php-5.3.5/cpibuild/libtool --silent
>> --preserve-dup-deps --mode=compile m68k-linux-gnu-gcc -Iext/date/lib
>> -Iext/date/ -I/home/lxl/php-5.3.5/ext/date/ -DPHP_ATOM_INC
>> -I/home/lxl/php-5.3.5/cpibuild/include
>> -I/home/lxl/php-5.3.5/cpibuild/main -I/home/lxl/php-5.3.5
>> -I/home/lxl/php-5.3.5/cpibuild/ext/date/lib
>> -I/home/lxl/php-5.3.5/ext/date/lib
>> -I/home/lxl/php-5.3.5/ext/ereg/regex -I/usr/local/include/libxml2
>> -I/home/lxl/php-5.3.5/ext/sqlite3/libsqlite
>> -I/home/lxl/php-5.3.5/cpibuild/TSRM
>> -I/home/lxl/php-5.3.5/cpibuild/Zend -I/home/lxl/php-5.3.5/main
>> -I/home/lxl/php-5.3.5/Zend -I/home/lxl/php-5.3.5/TSRM
>> -I/home/lxl/php-5.3.5/cpibuild/    -mcpu=54418  -c
>> /home/lxl/php-5.3.5/ext/date/lib/parse_date.c -o
>> ext/date/lib/parse_date.lo
>> /tmp/cc4YYDBL.s: Assembler messages:
>> /tmp/cc4YYDBL.s:102080: Fatal error: Tried to convert PC relative
>> branch to absolute jump
>> make: *** [ext/date/lib/parse_date.lo] Error 1
>> make: Leaving directory `/home/lxl/php-5.3.5/cpibuild'
>> failed to make!
>
> In order to recreate the problem on our end we need you to provide us
> with the following information:
>
> 1. The compiler command line that causes the failure (not the libtool
> line, you may need to run libtool without --silent to see what's it's
> doing).
>
> e.g. gcc -O2 -g -o test.o test.c
>
> 2. The output of running the compiler but with "-v" added.
>
> e.g. gcc -v -O2 -g -o test.o test.c 2>&1 compiler.log
>
> 3. The pre-processed source output by the compiler. This is done by
> adding '-save-temps' to the compiler command line. This produces a "*.i"
> file.
>
> e.g. gcc -save-temps -v -O2 -g -o test.o test.cc
>
> Can you send the information from step one, the "compiler.log" and the
> "*.i" file?
>
> Thanks!
>
> Cheers,
> Carlos.
> --
> Carlos O'Donell
> Mentor Graphics / CodeSourcery
> carlos at codesourcery.com
> +1 (650) 331-3385 x716
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parse_date_err.zip
Type: application/zip
Size: 344937 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20110224/92e5ee3e/attachment.zip>


More information about the coldfire-gnu-discuss mailing list