This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: git libffi and gcc
- From: "Matwey V. Kornilov" <matwey dot kornilov at gmail dot com>
- To: libffi-discuss at sourceware dot org
- Date: Wed, 21 Sep 2016 12:22:52 +0300
- Subject: Re: git libffi and gcc
- Authentication-results: sourceware.org; auth=none
- References: <CAJs94EYtVLyRdUntxpci=fwctMh7bL_UrMDGfkOtHbCXb5UwYQ@mail.gmail.com>
2016-09-19 15:29 GMT+03:00 Matwey V. Kornilov <matwey.kornilov@gmail.com>:
> Hello,
>
> I've found that some gcc/libjava issue was fixed in gcc at libffi merge commit.
> I would like to bisect exact commit it libffi which fixes this issue.
> I am trying to use libffi git with gcc as the following:
>
> cd gcc
> rm -rf libffi
> git clone https://github.com/libffi/libffi
> cd libffi
> git checkout needed_commit
> sh autogen.sh
>
> But then something is broken inside the build framework after it:
>
> make[2]: Entering directory
> '/home/abuild/gcc/obj/armv7hl-suse-linux-gnueabi/libffi'
> depbase=`echo src/prep_cif.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /bin/sh ./libtool --tag=CC --mode=compile
> /home/abuild/gcc/obj/./gcc/xgcc -B/home/abuild/gcc/obj/./gcc/
> -B/usr/armv7hl-suse-linux-gnueabi/bin/
> -B/usr/armv7hl-suse-linux-gnueabi/lib/ -isystem
> /usr/armv7hl-suse-linux-gnueabi/include -isystem
> /usr/armv7hl-suse-linux-gnueabi/sys-include -DHAVE_CONFIG_H -I.
> -I../../../libffi -I. -I../../../libffi/include -Iinclude
> -I../../../libffi/src -O3 -fomit-frame-pointer -fstrict-aliasing
> -ffast-math -Wall -fexceptions -MT src/prep_cif.lo -MD -MP -MF
> $depbase.Tpo -c -o src/prep_cif.lo ../../../libffi/src/prep_cif.c &&\
> mv -f $depbase.Tpo $depbase.Plo
> mv: cannot stat 'src/.deps/prep_cif.Tpo': No such file or directory
> Makefile:1343: recipe for target 'src/prep_cif.lo' failed
> make[2]: *** [src/prep_cif.lo] Error 1
>
> So, what is the correct way to regenerate libffi autoconf/automake
> stuff for using inside gcc build tree?
./configure generates something incomplete for ./libtool
Probably it has to use ltmain.sh from gcc root?
>
> --
> With best regards,
> Matwey V. Kornilov
> http://blog.matwey.name
> xmpp://0x2207@jabber.ru
--
With best regards,
Matwey V. Kornilov
http://blog.matwey.name
xmpp://0x2207@jabber.ru