Operating System - Linux
1752795 Members
5967 Online
108789 Solutions
New Discussion юеВ

/usr/ccs/bin/ld: Unrecognized argument: +Accept

 
SYS_MONEXT
Occasional Contributor

/usr/ccs/bin/ld: Unrecognized argument: +Accept

Hi,

When I try to compile a very short c++ code, I get the folloxing error :

$ g++ aa.cpp
/usr/ccs/bin/ld: Unrecognized argument: +Accept
/usr/ccs/bin/ld: Usage: /usr/ccs/bin/ld [options] [flags] files
collect2: ld returned 1 exit status

information about g++ and ld :

$ g++ -v
Using built-in specs.
Target: hppa64-hp-hpux11.11
Configured with: /tmp/gcc-4.1.1.tar.gz/gcc-4.1.1/configure --host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 --build=hppa64-hp-hpux11.11 --prefix=/opt/hp-gcc64-4.1.1 --enable-languages=c,c++ --with-gnu-as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix
Thread model: posix
gcc version 4.1.1

$ ld -V
92453-07 linker command s800.sgs ld PA64 B.11.62 REL 070917
ld: 92453-07 linker linker ld B.11.62 070917

do you have any idea ?
thanks
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: /usr/ccs/bin/ld: Unrecognized argument: +Accept

Hmm, last time I saw something like that I didn't recognize this GNU special added to ld. I asked about it.

But you seem to have a recent linker patch, 070917, so I'm not sure how it got lost??

I'll see if a search will find it. I did see it in here: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1109810
Unfortunately I don't think there was a resolution to that thread.
SYS_MONEXT
Occasional Contributor

Re: /usr/ccs/bin/ld: Unrecognized argument: +Accept

Thanks for your answer.
Actually, the problem is gone when I tried with another user account. The problem must be linked to environment variables, but I don't have time to look further on this way.
Dennis Handly
Acclaimed Contributor

Re: /usr/ccs/bin/ld: Unrecognized argument: +Accept

>The problem must be linked to environment variables,

Possibly. That option is only valid for the 64 bit linker.