[Ltrace-devel] 0.7.0 released
Petr Machata
pmachata at redhat.com
Sat Nov 10 01:18:24 UTC 2012
Sedat Dilek <sedat.dilek at gmail.com> writes:
> On Sat, Nov 10, 2012 at 1:32 AM, Petr Machata <pmachata at redhat.com> wrote:
>> Sedat Dilek <sedat.dilek at gmail.com> writes:
>>
>>> On Sat, Nov 10, 2012 at 1:04 AM, Petr Machata <pmachata at redhat.com> wrote:
>>>> I guess we can put in the workaround then, and turn off the assert for
>>>> MIPS. Could you try whether #ifdef __mips works?
>>>>
>>>
>>> No, that ifdef-line does not work (see attached patch + logs).
>>
>> Strange. There were many #ifdef __mips__ in ltrace throughout history.
>> What does cpp -dM /dev/null show?
>>
>
> $ echo $PATH
> /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/wearefam/src/freetz/freetz-git/source/toolchain-mipsel_gcc-4.7.2-RC-20120914_uClibc-0.9.33.2/gcc-4.7.2-RC-20120914-final/gcc
>
> $ pwd
> /home/wearefam/src/freetz/freetz-git/source/toolchain-mipsel_gcc-4.7.2-RC-20120914_uClibc-0.9.33.2/gcc-4.7.2-RC-20120914-final/gcc
>
> $ ./cpp -dM /dev/null | grep -i mips
[...]
> #define __mips__ 1
^^^ __mips__ should work.
[...]
> #define __mips 1
^^^ As should __mips. So how about this?
$ gcc -E -Wp,-dM -x c /dev/null -o /dev/stdout
Does it include __mips{,__} as well? If not, something is wrong with
the way your gcc preprocesses.
Thanks,
PM
More information about the Ltrace-devel
mailing list