gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] gm2 on gcc-5.2.0


From: Dragiša Durić
Subject: Re: [Gm2] gm2 on gcc-5.2.0
Date: Fri, 30 Dec 2016 00:39:35 +0100

Tried same thing in a Debian docker container. Got:

../../gcc-versionno/gcc/gm2/gm2-lang.c: In function 'tree_node* convert(tree, tree)':
../../gcc-versionno/gcc/gm2/gm2-lang.c:866:52: error: 'm2linemap_UnknownLocation' was not declared in this scope
../../gcc-versionno/gcc/gm2/Make-lang.in:701: recipe for target 'gm2/gm2-lang.o' failed
make[4]: *** [gm2/gm2-lang.o] Error 1

System info is:
# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
BUG_REPORT_URL="https://bugs.debian.org/"

--
Dragiša Durić

On 25 Dec 2016, at 11:30, Dragiša Durić <address@hidden> wrote:

After gnu_inline patch is applied, compilation goes a long way through, but ultimatelly process fails with:

home/dragisha/gm2-5.2.0/gcc-5.2.0+gm2-git-latest/gm2/scratch/sources/gm2/build/./prev-gcc/xgcc -B/home/dragisha/gm2-5.2.0/gcc-5.2.0+gm2-git-latest/gm2/scratch/sources/gm2/build/./prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include    -c -g -O2 -gtoggle -I../../gcc-versionno/gcc/gm2 -Igm2 -I../../gcc-versionno/gcc/gm2/gm2-gcc -Igm2/gm2-gcc -I. -Igm2/gm2-compiler-boot -I../../gcc-versionno/gcc -I../../gcc-versionno/gcc/gm2/gm2-compiler-boot -I../../gcc-versionno/gcc/../include -I../../gcc-versionno/gcc/../libcpp/include  -I../../gcc-versionno/gcc/../libdecnumber -I../../gcc-versionno/gcc/../libdecnumber/bid -I../libdecnumber    -I. -Igm2/gm2-compiler-boot -I../../gcc-versionno/gcc -I../../gcc-versionno/gcc/gm2/gm2-compiler-boot -I../../gcc-versionno/gcc/../include -I../../gcc-versionno/gcc/../libcpp/include  -I../../gcc-versionno/gcc/../libdecnumber -I../../gcc-versionno/gcc/../libdecnumber/bid -I../libdecnumber   -I../../gcc-versionno/gcc/gm2 -Igm2 -Igm2/gm2-compiler-boot -Igm2/gm2-libs-boot gm2/gm2-compiler/m2flex.c -o gm2/gm2-compiler-boot/m2flex.o
/home/dragisha/gm2-5.2.0/gcc-5.2.0+gm2-git-latest/gm2/scratch/sources/gm2/build/./prev-gcc/g++ -B/home/dragisha/gm2-5.2.0/gcc-5.2.0+gm2-git-latest/gm2/scratch/sources/gm2/build/./prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/home/dragisha/gm2-5.2.0/gcc-5.2.0+gm2-git-latest/gm2/scratch/sources/gm2/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/home/dragisha/gm2-5.2.0/gcc-5.2.0+gm2-git-latest/gm2/scratch/sources/gm2/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/dragisha/gm2-5.2.0/gcc-5.2.0+gm2-git-latest/gm2/scratch/sources/gm2/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/home/dragisha/gm2-5.2.0/gcc-5.2.0+gm2-git-latest/gm2/scratch/sources/gm2/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/home/dragisha/gm2-5.2.0/gcc-5.2.0+gm2-git-latest/gm2/scratch/sources/gm2/gcc-versionno/libstdc++-v3/libsupc++ -L/home/dragisha/gm2-5.2.0/gcc-5.2.0+gm2-git-latest/gm2/scratch/sources/gm2/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/home/dragisha/gm2-5.2.0/gcc-5.2.0+gm2-git-latest/gm2/scratch/sources/gm2/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c -g -I-I../../gcc-versionno/gcc/gm2 -Igm2 -I../../gcc-versionno/gcc/gm2/gm2-gcc -Igm2/gm2-gcc   -g -O2 -gtoggle -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual    -DHAVE_CONFIG_H -I. -Igm2 -I../../gcc-versionno/gcc -I../../gcc-versionno/gcc/gm2 -I../../gcc-versionno/gcc/../include -I../../gcc-versionno/gcc/../libcpp/include  -I../../gcc-versionno/gcc/../libdecnumber -I../../gcc-versionno/gcc/../libdecnumber/bid -I../libdecnumber    -I. -Igm2 -I../../gcc-versionno/gcc -I../../gcc-versionno/gcc/gm2 -I../../gcc-versionno/gcc/../include -I../../gcc-versionno/gcc/../libcpp/include  -I../../gcc-versionno/gcc/../libdecnumber -I../../gcc-versionno/gcc/../libdecnumber/bid -I../libdecnumber   ../../gcc-versionno/gcc/gm2/gm2-lang.c -o gm2/gm2-lang.o
../../gcc-versionno/gcc/gm2/gm2-lang.c: In function ‘tree_node* convert(tree, tree)’:
../../gcc-versionno/gcc/gm2/gm2-lang.c:866:52: error: ‘m2linemap_UnknownLocation’ was not declared in this scope
../../gcc-versionno/gcc/gm2/Make-lang.in:701: recipe for target 'gm2/gm2-lang.o' failed
make[4]: *** [gm2/gm2-lang.o] Error 1

As mentioned earlier, system is Fedora 25 with gcc 6.2.1.

Any ideas?

--
Dragiša Durić

On 25 Dec 2016, at 09:17, Dragiša Durić <address@hidden> wrote:

Hi Gaius,

After getting your tarball and restarting combine-trees..configure..make I still see same situation and same errors as result. 4.7.4, and
In file included from ../../gcc-versionno/gcc/cp/except.c:990:0:
cfns.gperf: At top level:
cfns.gperf:101:1: error: ‘gnu_inline’ attribute present on ‘libc_name_p’
cfns.gperf:26:14: error: but not here

Question: Did your patches address this gnu_inline issue, ie is it expected to see this fixed? I think this patch is supposed to fix it:
diff --git a/gcc/cp/cfns.gperf b/gcc/cp/cfns.gperf
index 68acd3d..953262f 100644
--- a/gcc/cp/cfns.gperf
+++ b/gcc/cp/cfns.gperf
@@ -22,6 +22,9 @@ __inline
 static unsigned int hash (const char *, unsigned int);
 #ifdef __GNUC__
 __inline
+#ifdef __GNUC_STDC_INLINE__
+__attribute__ ((__gnu_inline__))
+#endif
 #endif
 const char * libc_name_p (const char *, unsigned int);
 %}
diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h
index 1c6665d..6d00c0e 100644
--- a/gcc/cp/cfns.h
+++ b/gcc/cp/cfns.h
@@ -53,6 +53,9 @@ __inline
 static unsigned int hash (const char *, unsigned int);
 #ifdef __GNUC__
 __inline
+#ifdef __GNUC_STDC_INLINE__
+__attribute__ ((__gnu_inline__))
+#endif
 #endif
 const char * libc_name_p (const char *, unsigned int);
 /* maximum key range = 391, duplicates = 0 */

I will try this again later, with this patch included.

Regards,
Dragiša

--
Dragiša Durić

On 25 Dec 2016, at 01:15, Gaius Mulley <address@hidden> wrote:

Dragiša Durić <address@hidden> writes:

gcc_5.2.0_gm2 is current development branch. master branch changes are
in April, and gcc_5.2.0_gm2 - today.

Ok, I pull this, I switch to mentioned branch, then:

cd scratch/source/gm2
mkdir build
cd build
../gcc-versionno/configure --enable-languages=c,c++,gm2

make SHELL=/bin/bash
….
….
And then this:

In file included from ../../gcc-versionno/gcc/cp/except.c:990:0:
cfns.gperf: At top level:
cfns.gperf:101:1: error: ‘gnu_inline’ attribute present on
‘libc_name_p’
cfns.gperf:26:14: error: but not here

Some things are, I don’ know - unclear?

1. combine-trees pulls gcc-4.7.4
2. last lines of its execution mention lot of patches to gcc-4.7.4
3. again this failure (last console snippet)

Hi Dragiša,

ah thanks - yes I need to overhaul combine-trees and friends.
At present, every time I git commit a change a script on
floppsie.comp.glam.ac.uk will rebuild the tarballs for any branch
necessary.

You should be able to pull the changes from:

 git clone http://git.savannah.gnu.org/r/gm2.git

or alternatively download a tarball from

 http://floppsie.comp.glam.ac.uk/download/c/gcc-5.2.0+gm2-git-latest.tar.gz

regards,
Gaius

_______________________________________________
gm2 mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gm2

_______________________________________________
gm2 mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gm2

_______________________________________________
gm2 mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gm2


reply via email to

[Prev in Thread] Current Thread [Next in Thread]