|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
D.gnu - compiling d code without phobos ?
I'm currently working on a little OS, and my goal is to use the D language as the main one. I had no problem to build a running very very primitive version, but when I tried to define (not even using it), I have seen some troubles : gdc tells me there is a few reference that are undefined. Right, theses references are the phobos ones : I have no need of since phobos can't work on my system yet (memory allocs and lot of things are going to be rebuild by myself later). I then tried to make my own object.d file, I put it into my kernel folder and added it to the makefile, I still have some problems... When compiling my version of object.d containing just a class definition 'object', gdc seg faults. It seems to me that gdc imports mingw/include/d/3.4.5/object.d before compiling mine, and don't know what to do in the case of these two. I also before got a error telling me the class was already defined (but don't remember how, from what I know there is no notable difference between the yesterdays context, and todays one), that's wy I ask if anybody knows any way of not using the phobos object.d, just my own ? Tried the -nostdlib of gcc, without any positive results. ps: Using windows version of gdc (GCC) 3.4.5 (mingw special) (gdc 0.19, using dmd 0.162) Dec 16 2006
Wiz wrote:I'm currently working on a little OS, and my goal is to use the D language as the main one. I had no problem to build a running very very primitive version, but when I tried to define (not even using it), I have seen some troubles : gdc tells me there is a few reference that are undefined. Right, theses references are the phobos ones : I have no need of since phobos can't work on my system yet (memory allocs and lot of things are going to be rebuild by myself later). I then tried to make my own object.d file, I put it into my kernel folder and added it to the makefile, I still have some problems... When compiling my version of object.d containing just a class definition 'object', gdc seg faults. It seems to me that gdc imports mingw/include/d/3.4.5/object.d before compiling mine, and don't know what to do in the case of these two. I also before got a error telling me the class was already defined (but don't remember how, from what I know there is no notable difference between the yesterdays context, and todays one), that's wy I ask if anybody knows any way of not using the phobos object.d, just my own ? Tried the -nostdlib of gcc, without any positive results. ps: Using windows version of gdc (GCC) 3.4.5 (mingw special) (gdc 0.19, using dmd 0.162) Dec 16 2006
Wiz wrote:I'm currently working on a little OS, and my goal is to use the D language as the main one. Dec 16 2006
On Sat, 16 Dec 2006 11:49:05 -0800, Wiz <thewizhard msn.com> wrote:I'm currently working on a little OS, and my goal is to use the D language as the main one. I had no problem to build a running very very primitive version, but when I tried to define (not even using it), I have seen some troubles : gdc tells me there is a few reference that are undefined. Right, theses references are the phobos ones : I have no need of since phobos can't work on my system yet (memory allocs and lot of things are going to be rebuild by myself later). I then tried to make my own object.d file, I put it into my kernel folder and added it to the makefile, I still have some problems... When compiling my version of object.d containing just a class definition 'object', gdc seg faults. It seems to me that gdc imports mingw/include/d/3.4.5/object.d before compiling mine, and don't know what to do in the case of these two. I also before got a error telling me the class was already defined (but don't remember how, from what I know there is no notable difference between the yesterdays context, and todays one), that's wy I ask if anybody knows any way of not using the phobos object.d, just my own ? Tried the -nostdlib of gcc, without any positive results. ps: Using windows version of gdc (GCC) 3.4.5 (mingw special) (gdc 0.19, using dmd 0.162) Dec 17 2006
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
As you said, I replaced the real phobos object.d with an other version
by renaming mingw/include/d/ to mingw/include/d2/ and just put a
object.d file containing :
/class Object
{
}
/
so I'm pretty sure gdc will not use the old version, but a gdc -c
object.d -o object.o does the exactly same thing :
/object.d:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions./
Do I must submit a report to that url ? Not even a gdb can helps.
Wiz
John Reimer a écrit :
Dec 19 2006
|