Error: unknown pseudo-op: `.weakref'


 
Thread Tools Search this Thread
Top Forums Programming Error: unknown pseudo-op: `.weakref'
# 1  
Old 06-13-2006
Error: unknown pseudo-op: `.weakref'

It's really strange that I have these error messages as follows when I tried to compile the C++ program.

g++ -c -pipe -DOpenModeType=std::_Ios_Openmode -g -I. -o Obj/NP_genome_info.o NP_genome_info.cpp
{standard input}: Assembler messages:
{standard input}:10: Error: unknown pseudo-op: `.weakref'
{standard input}:11: Error: unknown pseudo-op: `.weakref'
{standard input}:12: Error: unknown pseudo-op: `.weakref'
{standard input}:13: Error: unknown pseudo-op: `.weakref'
{standard input}:14: Error: unknown pseudo-op: `.weakref'
{standard input}:15: Error: unknown pseudo-op: `.weakref'
{standard input}:16: Error: unknown pseudo-op: `.weakref'
{standard input}:17: Error: unknown pseudo-op: `.weakref'
{standard input}:18: Error: unknown pseudo-op: `.weakref'
{standard input}:19: Error: unknown pseudo-op: `.weakref'
{standard input}:20: Error: unknown pseudo-op: `.weakref'
{standard input}:21: Error: unknown pseudo-op: `.weakref'
{standard input}:22: Error: unknown pseudo-op: `.weakref'

I have no idea what is wrong. Is it due to my program or something else. I hop it the latter.

Thank you very much.
# 2  
Old 06-15-2006
i guess you are using the lastest gcc (please post gcc --version next time). but i thing your bug is know already. please check this:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26966
# 3  
Old 06-15-2006
Error: unknown pseudo-op: `.weakref'

I checked the version of gcc.

Thread model: posix
gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)


The link you gave me is a little overwheming to me. Sorry, I'm a beginner. Smilie
# 4  
Old 06-15-2006
this link suggests you need a newer version of binutils.
# 5  
Old 06-15-2006
Error: unknown pseudo-op: `.weakref'

Thank you very much.

One thing I don't understand is that why it just appears to have a problem of 'old version' now because it worked fine last week. Smilie

Also, where can I find/download the newer 'binutils'?
Can I just update the 'binutils' on top of the current version of 'Redhat'?

Sorry for a little naive question. Smilie
# 6  
Old 06-16-2006
Quote:
Originally Posted by napapanbkk
Thank you very much.

One thing I don't understand is that why it just appears to have a problem of 'old version' now because it worked fine last week. Smilie
The exact same code, worked fine last week? Or different code worked fine? The weakrefs thing has to do with using a nonstandard feature in a slightly nonstandard way.
Quote:
Also, where can I find/download the newer 'binutils'? Can I just update the 'binutils' on top of the current version of 'Redhat'?
Redhat uses RPM packages to install and upgrade software. The command for installing these packages is 'rpm', see 'man rpm' for details. You can find these packages with http://rpmfind.net/ . the binutils package is called, bafflingly, 'binutils'.
# 7  
Old 06-16-2006
Thank you so much for your great help. Smilie

Quote:
The exact same code, worked fine last week? Or different code worked fine? The weakrefs thing has to do with using a nonstandard feature in a slightly nonstandard way.
Yes, exactly the same code, same program. Strange, isn't it?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Getting unknown operator error while using a function

Hi, I wrote a function for the first time and not able to get the desired result. I have requirement to execute 10 queries. For this i wrote a function like below. function Command { typeset var SOL; if ; then CONNECTION="${CONNECTION} -e -time"; else SOL="`nzsql ${CONNECTION} -c... (8 Replies)
Discussion started by: Samah
8 Replies

2. Solaris

SMTP Server 550 5.1.1 User unknown Error

Hello All, I am currently running a Solaris 10 machine as inbound SMTP server i.e. bringing Emails from outside into our company. In /var/spool/mqueue , I have mails that are pending for the past 4-5 days. They are not being delivered and are causing my mount point size to increase. Error... (0 Replies)
Discussion started by: Junaid Subhani
0 Replies

3. UNIX for Advanced & Expert Users

Using SFTP Error Server Unknown

Not sure if this is the right forum and I apologies if not. I use Expression web to update our website on a UNIX server using SFTP. I use the same laptop, software, that works fine when at home, but when I travel, I tend to get a unknown server error. I am suspecting that it has something to do... (2 Replies)
Discussion started by: ae3799t
2 Replies

4. Programming

Help Unknown Syntax Error

Please excuse me if this is an easy fix, for I am new to Unix and C '/problem1.c: line2: syntax error near unexpected token ` '/problem1.c: line2: `main() and for one program it has : command not found2: (above the syntax error) As mentioned this is in C not C++, I have complied all... (3 Replies)
Discussion started by: apolo93
3 Replies

5. Shell Programming and Scripting

Unknown error - ``' unmatched

Hi Guys, I get the error while running below commands. Earlier the command used to execute, but after enclosing them in a function, the error is occuring backupPath=`echo $folderName | sed -e 's,/vobs/dte/itgClient/client/RegressionTestLibPostOHS/,,'` check_event=`cat... (7 Replies)
Discussion started by: ajincoep
7 Replies

6. Homework & Coursework Questions

FIFO possible blocking or unknown error

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Create a chat program using two FIFOs one for writing and the other for reading. The problem is something... (1 Reply)
Discussion started by: Ebodee
1 Replies

7. Shell Programming and Scripting

syntax error in shell test: unknown operator

Hi All, can some one figure out the syntax issue here. How to overcome this? #!/bin/sh $ HFR_MAIL=NO $ PRP_MAIL=NO $ MC_MAIL=NO $ if && && ]; then > echo "NO " > else > echo "YES" > fi test: unknown operator NO $ if && && ]; then > echo "NO" > else > echo "YES" >... (4 Replies)
Discussion started by: shellscripter
4 Replies

8. Solaris

pseudo: [ID 129642 kern.info] pseudo-device: vol0

Hi I have a system that gave me some messages on bootup that I was not used to seeing: pseudo: pseudo-device: vol0 genunix: vol0 is /pseudo/vol@0 these came with these: Feb 13 17:42:17 system1 eri: SUNW,eri0 : 100 Mbps full duplex link up Feb 13 17:42:21 system1sendmail: My unqualified... (0 Replies)
Discussion started by: mndavies
0 Replies

9. Solaris

Unknown File Type error

Greetings there, i was trying to install an eclipse plugin on sunOS 4.x for the solaris sparc platform, and i got the following error: /usr/project/RAServer/bin> ./RAStart.sh Starting Agent Controller ld.so.1: RAServer: fatal: /usr/project/RAServer/lib/libxerces-c.so.24: unknown file type... (3 Replies)
Discussion started by: rohitsz
3 Replies

10. Solaris

bothered by bsd-gw[ID] lpr.error unknown printer (laser1)

Please help! This message is creating a space problem in my /var/adm/messages and I don't know where it's coming from. I don't have any printer on my system. (2 Replies)
Discussion started by: kicko
2 Replies
Login or Register to Ask a Question