www.digitalmars.com         C & C++   DMDScript  

D.gnu - Bus error compiling Phobos on Mac OS X

reply Misha Gorodnitzky <misaka pobox.SAY.NO.TO.SPAM.com> writes:
I just went through the process of building GCC 3.4.0 with D support on my
OSX 10.3.4 system. Building and installing gdc, et al, went without a
hitch, but when I tried to compile Phobos here is what I get:

| gdc -o gcc/configunix.o -O2 -g -frelease  -nostdinc -I
../../gcc-3.4.0/gcc/d/phobos -I ../../gcc-3.4.0/gcc/d/phobos/internal/gc -c
gcc/configunix.d
| gcc/configunix.d:0: internal compiler error: Bus error
| Please submit a full bug report,

Here is the version information:

| % gcc -v
| Reading specs from
/usr/local/gcc-3.4/lib/gcc/powerpc-apple-darwin7.4.0/3.4.0/specs
| Configured with: ../gcc-3.4.0/configure --prefix=/usr/local/gcc-3.4
--enable-languages=c,d,c++
| Thread model: posix
| gcc version 3.4.0

GCC is the 3.4.0 release and I used the 20040427 (version r1f iirc)
version of gdc to patch and build.

Any help is appreciated ...


--Misha
Jun 16 2004
parent reply Paolo Invernizzi <arathorn inwind.it> writes:
Misha Gorodnitzky wrote:
 I just went through the process of building GCC 3.4.0 with D support 
on my
 OSX 10.3.4 system. Building and installing gdc, et al, went without a
 hitch
Hi Misha, I'm really new to os x (I'm coming from Windows)... can you please post here what you have done for building and installing it? the configure options and so on? Thanks in advance! --- Paolo Invernizzi
Jun 16 2004
parent reply Misha Gorodnitzky <misaka pobox.SAY.NO.TO.SPAM.com> writes:
Hello Paolo,

On Thu, 17 Jun 2004 00:05:52 +0200, Paolo Invernizzi wrote:

 Misha Gorodnitzky wrote:
  > I just went through the process of building GCC 3.4.0 with D support 
 on my
  > OSX 10.3.4 system. Building and installing gdc, et al, went without a
  > hitch
 
 Hi Misha,
 
 I'm really new to os x (I'm coming from Windows)... can you please post 
 here what you have done for building and installing it? the configure 
 options and so on?
Absolutely, sorry I forgot to include those in my original post. Here's how I ran configure, this was run in $objdir of course: | $srcdir/configure --prefix=/usr/local/gcc-3.4 --enable-languages=c,d,c++ I then basically did these steps: | make bootstrap | sudo make install | PATH=/usr/local/gcc-3.4/bin:$PATH | make clean | mkdir phobos | cd phobos | DFLAGS="-O2 -g -frelease" $srcdir/gcc/d/phobos/configure --prefix=/usr/local/gcc-3.4 | make And that's where I got the aforementioned error, I'll include it here just to be complete: | gdc -o gcc/configunix.o -O2 -g -frelease -nostdinc -I ../../gcc-3.4.0/gcc/d/phobos -I ../../gcc-3.4.0/gcc/d/phobos/internal/gc -c gcc/configunix.d | gcc/configunix.d:0: internal compiler error: Bus error | Please submit a full bug report, Now. I've realized that I actually did _not_ untar the java module into the gcc directory building, so that's what I'm trying to fix first. Can anyone confirm that this the above error is what I would see if the Java module was not available when gdc was built? The make for gdc did not emit any errors that I remember seeing, I would've expected to see that. Unfortunately my make of gcc with the java language enabled has died so once I'll sort that out and get a result I'll post back here.
 Thanks in advance!
Thanks for any help you can offer. :] --M
Jun 17 2004
parent reply Paolo Invernizzi <arathorn inwind.it> writes:
Misha Gorodnitzky wrote:

  > And that's where I got the aforementioned error, I'll include it 
here just
 to be complete:
 
 | gdc -o gcc/configunix.o -O2 -g -frelease  -nostdinc -I
../../gcc-3.4.0/gcc/d/phobos -I ../../gcc-3.4.0/gcc/d/phobos/internal/gc -c
gcc/configunix.d
 | gcc/configunix.d:0: internal compiler error: Bus error
 | Please submit a full bug report,
Ok... I've the very same error.
 
 Now. I've realized that I actually did _not_ untar the java module into
 the gcc directory building, so that's what I'm trying to fix first. Can
 anyone confirm that this the above error is what I would see if the Java
 module was not available when gdc was built? The make for gdc did not emit
 any errors that I remember seeing, I would've expected to see that.
 
 Unfortunately my make of gcc with the java language enabled has died so
 once I'll sort that out and get a result I'll post back here.
I've done the build process WITH the java module untarred... but nothing changed. So it must be something else... --- Paolo Invernizzi
Jun 18 2004
parent reply Misha Gorodnitzky <misaka pobox.SAY.NO.TO.SPAM.com> writes:
Heya Paolo,

On Fri, 18 Jun 2004 11:45:03 +0200, Paolo Invernizzi wrote:

 Misha Gorodnitzky wrote:
 
   > And that's where I got the aforementioned error, I'll include it 
 here just
 to be complete:
 
 | gdc -o gcc/configunix.o -O2 -g -frelease  -nostdinc -I
../../gcc-3.4.0/gcc/d/phobos -I ../../gcc-3.4.0/gcc/d/phobos/internal/gc -c
gcc/configunix.d
 | gcc/configunix.d:0: internal compiler error: Bus error
 | Please submit a full bug report,
Ok... I've the very same error.
 
 Now. I've realized that I actually did _not_ untar the java module into
 the gcc directory building, so that's what I'm trying to fix first. Can
 anyone confirm that this the above error is what I would see if the Java
 module was not available when gdc was built? The make for gdc did not emit
 any errors that I remember seeing, I would've expected to see that.
 
 Unfortunately my make of gcc with the java language enabled has died so
 once I'll sort that out and get a result I'll post back here.
I've done the build process WITH the java module untarred... but nothing changed. So it must be something else...
I finally completed the build of GDC with the Java module untarred, etc ... lo-and-behold, Phobos has compiled and my Hello World compiles and runs just fine. This is an odd turn-around indeed. Is it possible you missed anything like I did? --M
Jun 18 2004
parent reply Paolo Invernizzi <arathorn inwind.it> writes:
Misha Gorodnitzky wrote:

 I finally completed the build of GDC with the Java module untarred, etc
 ... lo-and-behold, Phobos has compiled and my Hello World compiles and
 runs just fine. This is an odd turn-around indeed. Is it possible you
 missed anything like I did?
I've redone the process and nothing has changed... same bus error. I've used the same configure parameters and flags you have posted above... Suggestions are really appreciated, osx folks! A *pedantic* sequence of commands, from the downloads of the source to the conpilation ends would be a good point to find out what I'm doing wrong... --- Paolo Invernizzi
Jun 19 2004
parent Misha Gorodnitzky <misaka pobox.SAY.NO.TO.SPAM.com> writes:
On Sat, 19 Jun 2004 14:03:25 +0200, Paolo Invernizzi wrote:

 Misha Gorodnitzky wrote:
 
 I finally completed the build of GDC with the Java module untarred, etc
 ... lo-and-behold, Phobos has compiled and my Hello World compiles and
 runs just fine. This is an odd turn-around indeed. Is it possible you
 missed anything like I did?
I've redone the process and nothing has changed... same bus error. I've used the same configure parameters and flags you have posted above... Suggestions are really appreciated, osx folks! A *pedantic* sequence of commands, from the downloads of the source to the conpilation ends would be a good point to find out what I'm doing wrong...
I've been trying to do just this, re-do all the steps that got me a working gdc, but I'm running into the very same problem! I haven't gotten to the bottom of it, unfortunately my poor little PowerBook G4 1.25 isn't quite up to the task of compiling and re-compiling GCC over and over. Well, it can do it, but it's just not fast. :-/ I'll keep at it and let you know what I come up with. *sigh* --M
Jun 21 2004