Discussion:
git libffi and gcc
Matwey V. Kornilov
2016-09-19 12:29:31 UTC
Permalink
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://***@jabber.ru
Matwey V. Kornilov
2016-09-21 09:22:52 UTC
Permalink
Post by Matwey V. Kornilov
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.
cd gcc
rm -rf libffi
git clone https://github.com/libffi/libffi
cd libffi
git checkout needed_commit
sh autogen.sh
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?
Post by Matwey V. Kornilov
--
With best regards,
Matwey V. Kornilov
http://blog.matwey.name
--
With best regards,
Matwey V. Kornilov
http://blog.matwey.name
xmpp://***@jabber.ru
Loading...