www.digitalmars.com         C & C++   DMDScript  

D.gnu - gdc 1e ebuild test

reply Stephan Wienczny <wienczny web.de> writes:
Hallo,

I think you might be interested in this. Attached are the ebuilds.
All you have to do is extract this file inside your portage overlay dir.
I don't know why it doesn't work. Everything compiles and gets installed 
  but something goes wrong. Maybe you can help me...

Stephan
Apr 27 2004
parent reply Dan Milne <d nmilne.com> writes:
Stephan Wienczny wrote:
 Hallo,
 
 I think you might be interested in this. Attached are the ebuilds.
 All you have to do is extract this file inside your portage overlay dir.
 I don't know why it doesn't work. Everything compiles and gets installed 
  but something goes wrong. Maybe you can help me...
 
 Stephan
I have the same problems Stephan. Here's the last part of an strace: access("/tmp", R_OK|W_OK|X_OK) = 0 gettimeofday({1083130059, 153688}, NULL) = 0 getpid() = 5584 open("/tmp/ccPdmHZj.s", O_RDWR|O_CREAT|O_EXCL, 0600) = 3 close(3) = 0 stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1d", 0xbfffee58) = -1 ENOENT (No such file or directory) stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1d", 0xbfffee58) = -1 ENOENT (No such file or directory) stat64("/usr/libexec/gcc/i686-pc-linux-gnu/cc1d", 0xbfffee58) = -1 ENOENT (No such file or directory) stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/cc1d", 0xbfffee58) = -1 ENOENT (No such file or directory) stat64("/usr/lib/gcc/i686-pc-linux-gnu/cc1d", 0xbfffee58) = -1 ENOENT (No such file or directory) stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1d", 0xbfffee58) = -1 ENOENT (No such file or directory) stat64("/usr/libexec/gcc/i686-pc-linux-gnu/cc1d", 0xbfffee58) = -1 ENOENT (No such file or directory) stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/cc1d", 0xbfffee58) = -1 ENOENT (No such file or directory) stat64("/usr/lib/gcc/i686-pc-linux-gnu/cc1d", 0xbfffee58) = -1 ENOENT (No such file or directory) stat64("/usr/lib/../i686-pc-linux-gnu/bin/i686-pc-linux-gnu/3.4.0/cc1d", 0xbfffee58) = -1 ENOENT (No such file or directory) stat64("/usr/lib/../i686-pc-linux-gnu/bin/cc1d", 0xbfffee60) = -1 ENOENT (No such file or directory) fork(Error: Error reading file 'object.d' ) = 5585 --- SIGCHLD (Child exited) 0 (0) --- waitpid(5585, [WIFEXITED(s) && WEXITSTATUS(s) == 1], 0) = 5585 stat64("/tmp/ccPdmHZj.s", {st_mode=S_IFREG|0600, st_size=22, ...}) = 0 unlink("/tmp/ccPdmHZj.s") = 0 exit_group(1) Dan
Apr 27 2004
parent reply Stephan Wienczny <wienczny web.de> writes:
Dan Milne wrote:
 Stephan Wienczny wrote:
 
 Hallo,

 I think you might be interested in this. Attached are the ebuilds.
 All you have to do is extract this file inside your portage overlay dir.
 I don't know why it doesn't work. Everything compiles and gets 
 installed  but something goes wrong. Maybe you can help me...

 Stephan
I have the same problems Stephan. Here's the last part of an strace: Dan
Thanks Dan that helped a lot... I did not know what tools I had... I moved cc1d to /usr/lib/gcc/i686-pc-linux/3.3.3 and downgraded to 3.3.3, my system's standard compiler. I got a small test app to compile. All I had to do was: gdc -lgc -ldl -o <filename> <filename.d> I don't know why I had to link against boehm-gc. nm tells me that the missing symbols are undefined.... Stephan
Apr 28 2004
next sibling parent David Friedman <d3rdclsmail earthlink.net> writes:
Stephan Wienczny wrote:
 Dan Milne wrote:
 
 Stephan Wienczny wrote:

 Hallo,

 I think you might be interested in this. Attached are the ebuilds.
 All you have to do is extract this file inside your portage overlay dir.
 I don't know why it doesn't work. Everything compiles and gets 
 installed  but something goes wrong. Maybe you can help me...

 Stephan
I have the same problems Stephan. Here's the last part of an strace: Dan
Thanks Dan that helped a lot... I did not know what tools I had... I moved cc1d to /usr/lib/gcc/i686-pc-linux/3.3.3 and downgraded to 3.3.3, my system's standard compiler. I got a small test app to compile. All I had to do was: gdc -lgc -ldl -o <filename> <filename.d> I don't know why I had to link against boehm-gc. nm tells me that the missing symbols are undefined.... Stephan
There shouldn't be any need to link against boehm-gc unless something else (C++?) is requiring it. If the dependency is in Phobos, it's not being built correctly. Also, the D and boehm garbage collectors probably won't work in the same program. David
Apr 28 2004
prev sibling next sibling parent Dan Milne <d nmilne.com> writes:
Stephan Wienczny wrote:
 
 Thanks Dan that helped a lot... I did not know what tools I had...
 I moved cc1d to /usr/lib/gcc/i686-pc-linux/3.3.3 and downgraded to 
 3.3.3, my system's standard compiler.
 I got a small test app to compile.
 All I had to do was:
 gdc -lgc -ldl -o <filename> <filename.d>
 I don't know why I had to link against boehm-gc.
 nm tells me that the missing symbols are undefined....
 
 Stephan
Glad it helped. I can build now with gdc using -lgc -ldl as you do. To build with dmd, I need to: dmd -L-lgc -L-ldl wc.d So perhaps the dependency is in Phobos? Cheers, Dan
Apr 29 2004
prev sibling parent Sebastian =?ISO-8859-15?Q?Dr=F6ge?= <sebastian.droege gmx.de> writes:
 boundary="Multipart=_Wed__5_May_2004_23_45_38_+0200_o6uMnNHsZ+beUi5C"


--Multipart=_Wed__5_May_2004_23_45_38_+0200_o6uMnNHsZ+beUi5C
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

On Wed, 28 Apr 2004 23:14:45 +0200
Stephan Wienczny <wienczny web.de> wrote:

 Dan Milne wrote:
 Stephan Wienczny wrote:
 
 Hallo,

 I think you might be interested in this. Attached are the ebuilds.
 All you have to do is extract this file inside your portage overlay dir.
 I don't know why it doesn't work. Everything compiles and gets 
 installed  but something goes wrong. Maybe you can help me...

 Stephan
I have the same problems Stephan. Here's the last part of an strace: Dan
Thanks Dan that helped a lot... I did not know what tools I had... I moved cc1d to /usr/lib/gcc/i686-pc-linux/3.3.3 and downgraded to 3.3.3, my system's standard compiler. I got a small test app to compile. All I had to do was: gdc -lgc -ldl -o <filename> <filename.d> I don't know why I had to link against boehm-gc. nm tells me that the missing symbols are undefined.... Stephan
Hi, I've changed some static values regarding gcc in the ebuilds so it will work with 3.3.2, 3.3.3 and 3.4.0 do you think it will be a good idea to add -ldl to the libphobos.spec? bye --Multipart=_Wed__5_May_2004_23_45_38_+0200_o6uMnNHsZ+beUi5C Content-Type: application/octet-stream; name="gdc.tar.bz2" Content-Disposition: attachment; filename="gdc.tar.bz2" Content-Transfer-Encoding: base64 QlpoOTFBWSZTWdlmnfMABgL/kMywAsBcd///f//f7v//3/+GAAAIYAd+M+5XzHmwAD0ACgA7hKKU 9PEp+pPUNHqBtRkGgB6mgMhoAAAB6gACUVTzVHptAo9Q9QaAGgaA0epoAA2pkAaAADmTTQyABiMg yAGmCBiAaNNABkDQAJTRRQ0aADT1DTQAGhoAANAAAAAARSQk0ZBN6kM0T09SNGhoaYIxMAIaM1PU 9TCaYhgkkEaaNCAAQnokeKn6JP0po0xtUz0pp6jyR6R6jZGptQ/VOILy3V/QW/rESyIgLQ5adyWF Iw0gUIsiCNJApVWior2ZTzzTrfqzDUEJMUDUkTyrTUpRNmRQTKYEKQiWGIFgFZIhZSmBL5UAVUE+ leICz8U0htmA7E+PQwcMLZhbLlpaq/N62F5jbQsryUTx3dKSaD0iYaB3bLkSvgqETmrSvBiiKKoU +Vh2i+Lz8XCc3+XactYkVgjp6angXJGDgJTBkqdg6wlsTxHoE8jY1RlbGvTz+HtlC+IniyTjb8R2 CYWlVICggoZgzOPl6ODXTK4aUYtI8CvtyEWAb1SWmXRA/RHtO8rxzaRjP+XjyQj6CXxvsrm/me7n OWY/QxMkQT9Us9aYRlvVZBraJHNDXWVmSroaY57IYJG0aFmijYs+YFBUUQmVJSpIIA/SoUkQSMcF syAcdMiagKCqTG+NF1LQYIYIdJJI7FhZLjSoJRyeyvBqhgC8ZEPiCueEtRZ5BjpCJIuFuAstacOI eLPtOTMmD0oGtZByoJ4UF6XXh4gw6uAfD4k7ToDrE9S2cA+ZEIGs1RME5QihhuqaHDdg9yykS0Ua rb5xmvYaL5a56Ci3FsJDj6C0iriyM4lUhBaMqsKLqqU8cVXrv86ebg58BW4XAhJCGCuE7imb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