I have downloaded the binutils sources from http://ftp.gnu.org/gnu/binutils/binutils-2.20.1.tar.bz2 and followed the below steps to build the binutils.
bash-3.2#bunzip binutils-2.20.1.tar.bz2 bash-3.2#tar xvf binutils-2.20.1.tar bash-3.2#mkdir objdir_2.20.1 bash-3.2#ls -l binutils-2.20.1.tar binutils-2.20.1/ objdir_2.20.1 bash-3.2#cd objdir_2.20.1 bash-3.2#export CFLAGS="-g -maix64" bash-3.2#export CPPFLAGS="-g -maix64" bash-3.2#export OBJECT_MODE=64 bash-3.2#../binutils-2.20.1/configure --disable-nls --enable-64-bit-bfd --target=powerpc64-aix6.1 ... ... ... bash-3.2#make ... ... ... *** ld does not support target powerpc64-ibm-aix6.1 *** see ld/configure.tgt for supported targets make: 1254-002 Cannot find a rule to create target all from dependencies. Stop. make: 1254-004 The error code from the last command is 2. Stop. make: 1254-004 The error code from the last command is 2. Stop. bash-3.2# Even though there is a compilation failure above, some of the components of binutils successfully built. I need objcopy to strip the debug information of a executable that i have built on the same machine. objcopy is taking lot of time when i have run with following arguments and also it is displaying some messages on console when it is running. bash-3.2#ls -l -rwxr-xr-x 1 root system 249862531 Nov 18 02:49 testvolumeinfocollector -rwxr-xr-x 1 root system 3520618 Nov 18 05:45 objcopy bash-3.2#file testvolumeinfocollector testvolumeinfocollector: 64-bit XCOFF executable or object module not stripped I was trying to use the objcopy with following arguments to copy the debug information to another file.. bash-3.2#./objcopy --only-keep-debug testvolumeinfocollector testvolumeinfocollector.dbg BFD: testvolumeinfocollector: Unrecognized storage class 0 for *ABS* symbol `volumeinfocollector/unix/volumeinfocollectorinfo.h' BFD: testvolumeinfocollector: Unrecognized storage class 0 for *ABS* symbol `volumeinfocollector/unix/volumeinfocollectorinfo.h' BFD: testvolumeinfocollector: Unrecognized storage class 0 for *ABS* symbol `/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.4/include/c++/bits/stl_tree.h' BFD: testvolumeinfocollector: Unrecognized storage class 0 for *ABS* symbol `/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.4/include/c++/bits/stl_tree.h' BFD: testvolumeinfocollector: Unrecognized storage class 0 for *ABS* symbol `volumeinfocollector/unix/volumeinfocollectorinfo.h' BFD: testvolumeinfocollector: Unrecognized storage class 0 for *ABS* symbol `volumeinfocollector/unix/volumeinfocollectorinfo.h' ... ... ... ... ... ... ... ... .. ... BFD: testvolumeinfocollector: Unrecognized storage class 0 for *ABS* symbol `../../ace/IPC_SAP.inl' BFD: testvolumeinfocollector: Unrecognized storage class 0 for *ABS* symbol `../../ace/IPC_SAP.inl' BFD: testvolumeinfocollector: Unrecognized storage class 0 for *ABS* symbol `../../ace/OS_TLI.inl' BFD: testvolumeinfocollector: Unrecognized storage class 0 for *ABS* symbol `../../ace/OS_TLI.inl' The above command doesn't exit even waiting for long time (>20 mins)... I want to know following things like. 1. Is objcopy is supported on AIX platform to the fullest exetent? 2. If I want to strip the debug information to a seperate file does AIX has any native command? I have seen strip command that comes along with AIX, but the stripped symbols cannot be stored in a seperate file. I need the symbol information in seperate file because i need to attach the symbols while debugging the application in case of any problems. The other details about the environment is : bash-3.2# uname -a AIX IBM-AIX117 1 6 00CE2B1C4C00 bash-3.2# bash-3.2# gcc --version gcc (GCC) 4.2.4 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. bash-3.2# if any other details are required to understand the problem in detail pls provide the list of items. I will immediately provide the requried details. I was trying to solve this issue since last 2 days but couldn't have any leads yest. -- View this message in context: http://old.nabble.com/Unable-to-use-objcopy-on-AIX-tp30247664p30247664.html Sent from the Gnu - Binutils - Bugs mailing list archive at Nabble.com. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils