Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
Bug 107 - Bootstrap error : gengtype: Internal error
Summary: Bootstrap error : gengtype: Internal error
Status: RESOLVED FIXED
Alias: None
Product: GDC
Classification: Unclassified
Component: gdc (show other bugs)
Version: 4.8.x
Hardware: x86_64 Linux
: --- major
Assignee: Iain Buclaw
URL:
Depends on:
Blocks:
 
Reported: 2014-03-10 21:18 CET by Igmar Palsenberg
Modified: 2014-03-14 10:00 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igmar Palsenberg 2014-03-10 21:18:23 CET
Doing a make bootstrap on the lastest version (49d20a0a1466595e3144e1dda4f9fe0ae70ddd8) from git gives me a : 

build/gengtype  \
                    -S ../../gcc -I gtyp-input.list -w tmp-gtype.state
/bin/sh ../../gcc/../move-if-change tmp-gtype.state gtype.state
build/gengtype  \
                    -r gtype.state
gengtype: Internal error: abort in get_output_file_with_visibility, at gengtype.c:2249

This is a build again stock GCC 4.8.2.
Comment 1 Iain Buclaw 2014-03-10 23:38:53 CET
Can you try:

https://github.com/D-Programming-GDC/GDC/commits/gdc-4.8
Comment 2 Iain Buclaw 2014-03-10 23:50:47 CET
Just making sure that you are on the correct branch when building.

Regards
Iain.
Comment 3 Igmar Palsenberg 2014-03-11 10:57:39 CET
The gdc-4.8 branch works find. The're some issues with .sh files ending up non-executable, but that's an easy fix.
Currently baking a c/c++/d CentOS package.

You might want to merge the gdc-4.8 branch into master, or remove the 4.8 support from master to prevent confusion.
Comment 4 Iain Buclaw 2014-03-11 13:09:17 CET
There's no 4.8 support in master.  Patches can be removed.
Comment 5 Yiyin Zhang 2014-03-12 12:39:03 CET
(In reply to comment #4)
> There's no 4.8 support in master.  Patches can be removed.

Hi Iain,

I met the same question, can you tell me how to solve the bug in detail? I'm a freshman in Linux.

Thanks
Comment 6 Yiyin Zhang 2014-03-12 12:55:44 CET
CenOS 6.5 and gcc-4.8.2 are installed in my computer. It occured after I run GDC-master and built gdc.
Comment 7 Igmar Palsenberg 2014-03-12 13:23:32 CET
Just build it using the gdc-4.8 branch.
Comment 8 Yiyin Zhang 2014-03-12 13:31:53 CET
(In reply to comment #7)
> Just build it using the gdc-4.8 branch.

where is the gdc-4.8 branch? Excuse me for my ignorance.
Comment 9 Iain Buclaw 2014-03-12 17:34:32 CET
(In reply to comment #8)
> (In reply to comment #7)
> > Just build it using the gdc-4.8 branch.
> 
> where is the gdc-4.8 branch? Excuse me for my ignorance.

In the gdc source directory:


git checkout gdc-4.8
Comment 10 Yiyin Zhang 2014-03-13 13:28:28 CET
(In reply to comment #9)
> (In reply to comment #8)
> (In reply to comment #7)
> > Just build it using
> the gdc-4.8 branch.
> 
> where is the gdc-4.8 branch? Excuse me for my
> ignorance.

In the gdc source directory:


git checkout gdc-4.8

Hi Iain,

I built it with the gdc-4.8 branch and make it. However it comes like this,
 
[root@mouse objdir]# make install
make[1]: Entering directory `/home/zyy/gdc/gdc/objdir'
/bin/sh ../gcc-4.8.2/mkinstalldirs /usr/local/gdc /usr/local/gdc
make[2]: Entering directory `/home/zyy/gdc/gdc/objdir/fixincludes'
make[2]: *** No rule to make target `install'.  Stop.
make[2]: Leaving directory `/home/zyy/gdc/gdc/objdir/fixincludes'
make[1]: *** [install-fixincludes] Error 2
make[1]: Leaving directory `/home/zyy/gdc/gdc/objdir'
make: *** [install] Error 2

Could you tell me what's wrong with it, Please?
Comment 11 Iain Buclaw 2014-03-14 10:00:59 CET
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #8)
> > (In reply to comment #7)
> > > Just build it using
> > the gdc-4.8 branch.
> > 
> > where is the gdc-4.8 branch? Excuse me for my
> > ignorance.
> 
> In the gdc source directory:
> 
> 
> git checkout gdc-4.8
> 
> Hi Iain,
> 
> I built it with the gdc-4.8 branch and make it. However it comes like this,
>  
> [root@mouse objdir]# make install
> make[1]: Entering directory `/home/zyy/gdc/gdc/objdir'
> /bin/sh ../gcc-4.8.2/mkinstalldirs /usr/local/gdc /usr/local/gdc
> make[2]: Entering directory `/home/zyy/gdc/gdc/objdir/fixincludes'
> make[2]: *** No rule to make target `install'.  Stop.
> make[2]: Leaving directory `/home/zyy/gdc/gdc/objdir/fixincludes'
> make[1]: *** [install-fixincludes] Error 2
> make[1]: Leaving directory `/home/zyy/gdc/gdc/objdir'
> make: *** [install] Error 2
> 
> Could you tell me what's wrong with it, Please?


What version of make?

What is the output of:

grep install /home/zyy/gdc/gdc/objdir/fixincludes/Makefile

And are you sure the configure and make steps completed successfully?

Did you clean the build directory and re-run configure after you switched to the 4.8 branch?