Jump to page: 1 2 3
Thread overview
DMD 0.65 release
May 13, 2003
Walter
May 13, 2003
John Reimer
May 13, 2003
Walter
May 13, 2003
Russ Lewis
May 13, 2003
Walter
May 13, 2003
Russ Lewis
May 13, 2003
Walter
May 13, 2003
Russ Lewis
May 13, 2003
Jonathan Andrew
May 13, 2003
Walter
May 13, 2003
Russ Lewis
May 13, 2003
Russ Lewis
May 13, 2003
Russ Lewis
May 13, 2003
John Reimer
May 13, 2003
John Reimer
May 13, 2003
Walter
May 14, 2003
John Reimer
Re: DMD 0.65 release - dmd-session
May 14, 2003
Georg Wrede
May 14, 2003
Luna Kid
May 14, 2003
Walter
May 14, 2003
Russ Lewis
May 15, 2003
Georg Wrede
May 15, 2003
Walter
May 14, 2003
John Reimer
May 14, 2003
John Reimer
May 14, 2003
Walter
May 14, 2003
Olaf Rogalsky
May 13, 2003
Hopefully fixed another bad section
name bug.

http://www.digitalmars.com/d/changelog.html


May 13, 2003
On Tue, 13 May 2003 02:14:45 -0700, Walter wrote:

> Hopefully fixed another bad section
> name bug.
> 
> http://www.digitalmars.com/d/changelog.html

I hate to say this but I'm still getting a similar error:

gcc hello.o -o hello -lphobos -lpthread -lm
/usr/bin/ld: /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/../../../libphobos.a(gc.o)
: bad relocation section name `.rel.gnu.linkonce.t_d_new?'

DMD version 0.65 on Gentoo Linux v1.4

gcc version 3.2.2

GNU ld version 2.14.90.0.1 20030508
  Supported emulations:
   elf_i386
   i386linux
   elf_i386_glibc21

May 13, 2003
"John Reimer" <jjreimer@telus.net> wrote in message news:pan.2003.05.13.09.58.44.525969@telus.net...
> On Tue, 13 May 2003 02:14:45 -0700, Walter wrote:
>
> > Hopefully fixed another bad section
> > name bug.
> >
> > http://www.digitalmars.com/d/changelog.html
>
> I hate to say this but I'm still getting a similar error:
>
> gcc hello.o -o hello -lphobos -lpthread -lm
> /usr/bin/ld:
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/../../../libphobos.a(gc.o)
> : bad relocation section name `.rel.gnu.linkonce.t_d_new?'
>
> DMD version 0.65 on Gentoo Linux v1.4

Please double check that you put the new libphobos.a in /usr/lib. I double checked it, and the section name is correct in the archive I uploaded. If that doesn't work, try extracting gc.o from /usr/lib/libphobos.a and run dumpobj on it. Look at the section name for d_new.


May 13, 2003
I too am getting this on my RH 9 (gcc 3.2.2) machine.  I don't get this on my
RH 7.2 (gcc 2.96) machine.



BTW, it's fairly easy to move to new versions if you use symbolic links.  My directory structure looks like this:

/home/russ/d/0.64/<files for version 0.64>
/home/russ/d/0.65/<files for version 0.65>
/home/russ/d/cur -> 0.65
/home/russ/d/dmd -> cur/dmd
/home/russ/d/dm -> cur/dm
/usr/lib/libphobos.a -> /home/russ/d/dmd/lib/libphobos.a
/usr/local/bin/dmd -> /home/russ/d/dmd/bin/dmd
/usr/local/bin/dumpobj -> /home/russ/d/dmd/bin/dumpobj
/usr/local/bin/obj2asm -> /home/russ/d/dmd/bin/obj2asm

When I download 0.66, I will extract it to the /home/russ/d/0.66 directory. Then the only thing I have to change is the 'cur' symbolic link:

cd /home/russ/d
ln -sf 0.66 cur

and then everything...executables, libphobos, etc. is immediately updated.

HINT: don't link /etc/dmd.conf, or you'll lose all your settings when you download a new version of the compiler.



Walter wrote:

> "John Reimer" <jjreimer@telus.net> wrote in message news:pan.2003.05.13.09.58.44.525969@telus.net...
> > On Tue, 13 May 2003 02:14:45 -0700, Walter wrote:
> >
> > > Hopefully fixed another bad section
> > > name bug.
> > >
> > > http://www.digitalmars.com/d/changelog.html
> >
> > I hate to say this but I'm still getting a similar error:
> >
> > gcc hello.o -o hello -lphobos -lpthread -lm
> > /usr/bin/ld:
> /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/../../../libphobos.a(gc.o)
> > : bad relocation section name `.rel.gnu.linkonce.t_d_new?'
> >
> > DMD version 0.65 on Gentoo Linux v1.4
>
> Please double check that you put the new libphobos.a in /usr/lib. I double checked it, and the section name is correct in the archive I uploaded. If that doesn't work, try extracting gc.o from /usr/lib/libphobos.a and run dumpobj on it. Look at the section name for d_new.

--
The Villagers are Online! villagersonline.com

.[ (the fox.(quick,brown)) jumped.over(the dog.lazy) ]
.[ (a version.of(English).(precise.more)) is(possible) ]
?[ you want.to(help(develop(it))) ]


May 13, 2003
Do an ls -l on /usr/lib/libphobos.a


"Russ Lewis" <spamhole-2001-07-16@deming-os.org> wrote in message news:3EC12501.AC2388DD@deming-os.org...
> I too am getting this on my RH 9 (gcc 3.2.2) machine.  I don't get this on
my
> RH 7.2 (gcc 2.96) machine.
>
>
>
> BTW, it's fairly easy to move to new versions if you use symbolic links.
My
> directory structure looks like this:
>
> /home/russ/d/0.64/<files for version 0.64>
> /home/russ/d/0.65/<files for version 0.65>
> /home/russ/d/cur -> 0.65
> /home/russ/d/dmd -> cur/dmd
> /home/russ/d/dm -> cur/dm
> /usr/lib/libphobos.a -> /home/russ/d/dmd/lib/libphobos.a
> /usr/local/bin/dmd -> /home/russ/d/dmd/bin/dmd
> /usr/local/bin/dumpobj -> /home/russ/d/dmd/bin/dumpobj
> /usr/local/bin/obj2asm -> /home/russ/d/dmd/bin/obj2asm
>
> When I download 0.66, I will extract it to the /home/russ/d/0.66
directory.
> Then the only thing I have to change is the 'cur' symbolic link:
>
> cd /home/russ/d
> ln -sf 0.66 cur
>
> and then everything...executables, libphobos, etc. is immediately updated.
>
> HINT: don't link /etc/dmd.conf, or you'll lose all your settings when you download a new version of the compiler.
>
>
>
> Walter wrote:
>
> > "John Reimer" <jjreimer@telus.net> wrote in message news:pan.2003.05.13.09.58.44.525969@telus.net...
> > > On Tue, 13 May 2003 02:14:45 -0700, Walter wrote:
> > >
> > > > Hopefully fixed another bad section
> > > > name bug.
> > > >
> > > > http://www.digitalmars.com/d/changelog.html
> > >
> > > I hate to say this but I'm still getting a similar error:
> > >
> > > gcc hello.o -o hello -lphobos -lpthread -lm
> > > /usr/bin/ld:
> > /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/../../../libphobos.a(gc.o)
> > > : bad relocation section name `.rel.gnu.linkonce.t_d_new?'
> > >
> > > DMD version 0.65 on Gentoo Linux v1.4
> >
> > Please double check that you put the new libphobos.a in /usr/lib. I
double
> > checked it, and the section name is correct in the archive I uploaded.
If
> > that doesn't work, try extracting gc.o from /usr/lib/libphobos.a and run dumpobj on it. Look at the section name for d_new.
>
> --
> The Villagers are Online! villagersonline.com
>
> .[ (the fox.(quick,brown)) jumped.over(the dog.lazy) ]
> .[ (a version.of(English).(precise.more)) is(possible) ]
> ?[ you want.to(help(develop(it))) ]
>
>


May 13, 2003
GAHK!  Either the -f switch of the 'ln' command is broken, or I am seriously confused about what it is for.  "ln -sf 0.65 cur" didn't change my link, so I was continuing to use all of the old stuff!

However....on RH 9, I still get the "bad relocation symbol" error.

Walter wrote:

> Do an ls -l on /usr/lib/libphobos.a
>
> "Russ Lewis" <spamhole-2001-07-16@deming-os.org> wrote in message news:3EC12501.AC2388DD@deming-os.org...
> > I too am getting this on my RH 9 (gcc 3.2.2) machine.  I don't get this on
> my
> > RH 7.2 (gcc 2.96) machine.
> >
> >
> >
> > BTW, it's fairly easy to move to new versions if you use symbolic links.
> My
> > directory structure looks like this:
> >
> > /home/russ/d/0.64/<files for version 0.64>
> > /home/russ/d/0.65/<files for version 0.65>
> > /home/russ/d/cur -> 0.65
> > /home/russ/d/dmd -> cur/dmd
> > /home/russ/d/dm -> cur/dm
> > /usr/lib/libphobos.a -> /home/russ/d/dmd/lib/libphobos.a
> > /usr/local/bin/dmd -> /home/russ/d/dmd/bin/dmd
> > /usr/local/bin/dumpobj -> /home/russ/d/dmd/bin/dumpobj
> > /usr/local/bin/obj2asm -> /home/russ/d/dmd/bin/obj2asm
> >
> > When I download 0.66, I will extract it to the /home/russ/d/0.66
> directory.
> > Then the only thing I have to change is the 'cur' symbolic link:
> >
> > cd /home/russ/d
> > ln -sf 0.66 cur
> >
> > and then everything...executables, libphobos, etc. is immediately updated.
> >
> > HINT: don't link /etc/dmd.conf, or you'll lose all your settings when you download a new version of the compiler.
> >
> >
> >
> > Walter wrote:
> >
> > > "John Reimer" <jjreimer@telus.net> wrote in message news:pan.2003.05.13.09.58.44.525969@telus.net...
> > > > On Tue, 13 May 2003 02:14:45 -0700, Walter wrote:
> > > >
> > > > > Hopefully fixed another bad section
> > > > > name bug.
> > > > >
> > > > > http://www.digitalmars.com/d/changelog.html
> > > >
> > > > I hate to say this but I'm still getting a similar error:
> > > >
> > > > gcc hello.o -o hello -lphobos -lpthread -lm
> > > > /usr/bin/ld:
> > > /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/../../../libphobos.a(gc.o)
> > > > : bad relocation section name `.rel.gnu.linkonce.t_d_new?'
> > > >
> > > > DMD version 0.65 on Gentoo Linux v1.4
> > >
> > > Please double check that you put the new libphobos.a in /usr/lib. I
> double
> > > checked it, and the section name is correct in the archive I uploaded.
> If
> > > that doesn't work, try extracting gc.o from /usr/lib/libphobos.a and run dumpobj on it. Look at the section name for d_new.
> >
> > --
> > The Villagers are Online! villagersonline.com
> >
> > .[ (the fox.(quick,brown)) jumped.over(the dog.lazy) ]
> > .[ (a version.of(English).(precise.more)) is(possible) ]
> > ?[ you want.to(help(develop(it))) ]
> >
> >

--
The Villagers are Online! villagersonline.com

.[ (the fox.(quick,brown)) jumped.over(the dog.lazy) ]
.[ (a version.of(English).(precise.more)) is(possible) ]
?[ you want.to(help(develop(it))) ]


May 13, 2003
Just a note, everybody.
    ln -sf 0.66 cur
doesn't seem to work.  I guess I was confused.  Instead, remove the link first:
    rm cur
    ln -s 0.66 cur

Odd....I could have sworn -f would work like that before...

Russ Lewis wrote:

> I too am getting this on my RH 9 (gcc 3.2.2) machine.  I don't get this on my
> RH 7.2 (gcc 2.96) machine.
>
> BTW, it's fairly easy to move to new versions if you use symbolic links.  My directory structure looks like this:
>
> /home/russ/d/0.64/<files for version 0.64>
> /home/russ/d/0.65/<files for version 0.65>
> /home/russ/d/cur -> 0.65
> /home/russ/d/dmd -> cur/dmd
> /home/russ/d/dm -> cur/dm
> /usr/lib/libphobos.a -> /home/russ/d/dmd/lib/libphobos.a
> /usr/local/bin/dmd -> /home/russ/d/dmd/bin/dmd
> /usr/local/bin/dumpobj -> /home/russ/d/dmd/bin/dumpobj
> /usr/local/bin/obj2asm -> /home/russ/d/dmd/bin/obj2asm
>
> When I download 0.66, I will extract it to the /home/russ/d/0.66 directory. Then the only thing I have to change is the 'cur' symbolic link:
>
> cd /home/russ/d
> ln -sf 0.66 cur
>
> and then everything...executables, libphobos, etc. is immediately updated.
>
> HINT: don't link /etc/dmd.conf, or you'll lose all your settings when you download a new version of the compiler.
>
> Walter wrote:
>
> > "John Reimer" <jjreimer@telus.net> wrote in message news:pan.2003.05.13.09.58.44.525969@telus.net...
> > > On Tue, 13 May 2003 02:14:45 -0700, Walter wrote:
> > >
> > > > Hopefully fixed another bad section
> > > > name bug.
> > > >
> > > > http://www.digitalmars.com/d/changelog.html
> > >
> > > I hate to say this but I'm still getting a similar error:
> > >
> > > gcc hello.o -o hello -lphobos -lpthread -lm
> > > /usr/bin/ld:
> > /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/../../../libphobos.a(gc.o)
> > > : bad relocation section name `.rel.gnu.linkonce.t_d_new?'
> > >
> > > DMD version 0.65 on Gentoo Linux v1.4
> >
> > Please double check that you put the new libphobos.a in /usr/lib. I double checked it, and the section name is correct in the archive I uploaded. If that doesn't work, try extracting gc.o from /usr/lib/libphobos.a and run dumpobj on it. Look at the section name for d_new.
>
> --
> The Villagers are Online! villagersonline.com
>
> .[ (the fox.(quick,brown)) jumped.over(the dog.lazy) ]
> .[ (a version.of(English).(precise.more)) is(possible) ]
> ?[ you want.to(help(develop(it))) ]

--
The Villagers are Online! villagersonline.com

.[ (the fox.(quick,brown)) jumped.over(the dog.lazy) ]
.[ (a version.of(English).(precise.more)) is(possible) ]
?[ you want.to(help(develop(it))) ]


May 13, 2003
"Russ Lewis" <spamhole-2001-07-16@deming-os.org> wrote in message news:3EC12FAE.53234B7E@deming-os.org...
> GAHK!  Either the -f switch of the 'ln' command is broken, or I am
seriously
> confused about what it is for.  "ln -sf 0.65 cur" didn't change my link,
so I
> was continuing to use all of the old stuff!
>
> However....on RH 9, I still get the "bad relocation symbol" error.

For what symbol?


May 13, 2003
"Bad relocation section," sorry.  It's the same as I've posted in another thread:



/usr/bin/ld: /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libphobos.a(gc.o): bad relocation section name '.rel.gnu.linkonce.t_d_new? '



I rechecked *again* that this is the right libphobos.a.  It *is* the 0.65 version.

Anybody else here using RH9?



Walter wrote:

> "Russ Lewis" <spamhole-2001-07-16@deming-os.org> wrote in message news:3EC12FAE.53234B7E@deming-os.org...
> > GAHK!  Either the -f switch of the 'ln' command is broken, or I am
> seriously
> > confused about what it is for.  "ln -sf 0.65 cur" didn't change my link,
> so I
> > was continuing to use all of the old stuff!
> >
> > However....on RH 9, I still get the "bad relocation symbol" error.
>
> For what symbol?

--
The Villagers are Online! villagersonline.com

.[ (the fox.(quick,brown)) jumped.over(the dog.lazy) ]
.[ (a version.of(English).(precise.more)) is(possible) ]
?[ you want.to(help(develop(it))) ]


May 13, 2003
On Tue, 13 May 2003 09:39:21 -0700, Walter wrote:

> 
> Please double check that you put the new libphobos.a in /usr/lib. I double checked it, and the section name is correct in the archive I uploaded. If that doesn't work, try extracting gc.o from /usr/lib/libphobos.a and run dumpobj on it. Look at the section name for d_new.

Yes, libphobos.a is indeed in /usr/lib.  I copied the file there instead
of sym linking.  I did run a dumpobj on libphobos.a earlier and couldn't find
any references to that section name.

I imagine extracting and analyzing gc.o would amount to less voluminous searching.  Excuse my ignorance, but how do I extract gc.o from libphobos.a.  Does '.rel.gnu.linkonce.t_d_new?' really exist in there somewhere?
« First   ‹ Prev
1 2 3