Alexander Pyhalov <[email protected]> wrote:

> > By looking at this, it will be possible to find whether the problem is 
> > caused
> > by a miss-behavior of my cpp or by a problem in the input files.
> >
>
> $ cd 
> /export/home/alp/srcs/oi-userland/components/illumos/illumos-gate/illumos-gate/usr/src/lib/lib
> $ dmake
>
> /usr/sbin/dtrace -xnolibs -G -32 -C -xlazyload -s 
> ../port/threads/plockstat.d -o pics/plockstat.o pics/alloc.o 

OK, this helps...

> The following command caused the error:
> cd i386; pwd; VERSION='illumos-1f2ca51' dmake libc.so.1
> dmake: Fatal error: Command failed for target `i386/libc.so.1'
>
> $ /usr/lib/cpp /usr/include/sys/int_types.h |  /usr/bin/gsed  -e '/# /d' 
>   -e '/^$/d'
> #error "ISA not supported"
> typedef signed char             int8_t;

I am not sure whether this is really the problem.

I would guess that if dtrace really gets this, you have a bug in libdtrace.

Plase do the following:

cp /usr/lib/64/libdtrace.so.1 /tmp

edit /tmp/libdtrace.so.1 and replace /usr/ccs/lib/cpp by /tmp/cpp without 
changing the length of the string.

Create /tmp/cpp with the following content:

#!/usr/bin/amd64/ksh
unset LD_PRELOAD

echo "$@"
exit

Make sure the x bit is set.

Now call:

LD_PRELOAD=/tmp/libdtrace.so.1 /usr/sbin/amd64/dtrace -xnolibs -G -32 -C 
-xlazyload -s usr/src/lib/libc/port/threads/plockstat.d

and please report the cpp command line you see from this command.

Jörg

-- 
 EMail:[email protected]                    (home) Jörg Schilling D-13353 Berlin
       [email protected] (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ 
http://sourceforge.net/projects/schilytools/files/'


-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to