This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: git libffi and gcc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]