[Crash-utility] timeout in eppic.mk

Per Fransson per.fransson.ml at gmail.com
Mon Aug 13 09:17:11 UTC 2012


> ----- Original Message -----
>>
>>
>> ----- Original Message -----
>> > Hi,
>> >
>> > Here's an alternative patch for your consideration, which makes it
>> > possible to point to e.g. a local eppic git.
>> >
>> > It also builds ARM with '-m32'. This change is not enough to achieve
>> > that however. Similar tweaks are needed in eppic itself.
>> >
>> > Regards,
>> > Per
>>
>> Per,
>>
>> Sorry I got to Cliff's patch before yours -- so can you rework
>> your patch using the version of eppic.mk that is attached to:
>>
>>   Re: [Crash-utility] [PATCH] allow various git command locations
>>   https://www.redhat.com/archives/crash-utility/2012-August/msg00012.html
>>
>> Thanks,
>>   Dave
>
> OK, I've shoehorned the EPPIC_GIT_URL environment variable check
> into eppic.mk.
>

Sorry I took so long. Vacation... =o)

So, you already put it in there? Thanks.

> But for now I'm leaving out your -m32 addition for ARM builds
> until there's a complete solution for ARM.  Note that when I
> put the -m32 patch in place, the compile fails when building
> ARM on an x86_64 host:
>
> gcc -g -I.. -Ieppic/libeppic -I../gdb-7.3.1/bfd -I../gdb-7.3.1/include -I../gdb-7.3.1/gdb -I../gdb-7.3.1/gdb/config -I../gdb-7.3.1/gdb/common -I../gdb-7.3.1 -nostartfiles -shared -rdynamic -o eppic.so eppic/applications/crash/eppic.c -fPIC -DARM -m32 -DGDB_7_3_1 -Leppic/libeppic -leppic
> eppic/applications/crash/eppic.c: In function ‘apigetval’:
> eppic/applications/crash/eppic.c:474: warning: cast from pointer to integer of different size
> /usr/bin/ld: skipping incompatible eppic/libeppic/libeppic.a when searching for -leppic
> /usr/bin/ld: cannot find -leppic
> collect2: ld returned 1 exit status
> make[4]: [eppic.so] Error 1 (ignored)
>
> whereas without the -m32 at least it builds something (albeit probably useless).
>

I think we might have a catch 22 on our hands. The reason it fails is
that the eppic library doesn't get built with -m32, but if we start by
modifying the eppic git the build will fail because eppic is 32 bit
and the crash extension is 64 bit. I've attached the change I made to
the eppic git.

/Per

> Thanks,
>   Dave
>
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Build-ARM-as-m32.patch
Type: text/x-patch
Size: 414 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20120813/eadb0ad2/attachment.bin>


More information about the Crash-utility mailing list