public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* git libffi and gcc
@ 2016-09-19 12:30 Matwey V. Kornilov
  2016-09-21  9:23 ` Matwey V. Kornilov
  0 siblings, 1 reply; 2+ messages in thread
From: Matwey V. Kornilov @ 2016-09-19 12:30 UTC (permalink / raw)
  To: libffi-discuss

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?

-- 
With best regards,
Matwey V. Kornilov
http://blog.matwey.name
xmpp://0x2207@jabber.ru

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git libffi and gcc
  2016-09-19 12:30 git libffi and gcc Matwey V. Kornilov
@ 2016-09-21  9:23 ` Matwey V. Kornilov
  0 siblings, 0 replies; 2+ messages in thread
From: Matwey V. Kornilov @ 2016-09-21  9:23 UTC (permalink / raw)
  To: libffi-discuss

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-21  9:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-19 12:30 git libffi and gcc Matwey V. Kornilov
2016-09-21  9:23 ` Matwey V. Kornilov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).