gcc + /usr/ccs/bin/as does not work with CDT Managed Make [message #148209] |
Tue, 05 July 2005 14:28 |
Eclipse User |
|
|
|
Originally posted by: jlpheb.texas.net
I have run into a problem trying to use the managed make feature of CDT
(v2.1.1 and 3.0RC1). I am using g++ v3.4.4 which was built to use Sun's
/usr/sccs/bin/as assembler (and the linker as well) on a Solaris 2.8
system. The problem is that Sun's assembler can't parse the '-o' option
of the command line that is passed to it. Sun's 'as' needs a space
between the -o and the path to the object file, which is not how it's
specified to g++ by the managed make system.
I have run the generated make files manually and got the error. When I
modify the generated makefiles to add a space after the -o option, the
project builds OK.
How can I solve this issue (other than switching to GNU as and ld)?
Thanks,
Jason
The build output from the console follows (the -v option is on):
============================================================ ====
**** Full rebuild of configuration Debug for project cpptest001 ****
make -k clean all
rm -rf ./lib/heb/util/tivoli.o ./lib/heb/util/tivoli.d cpptest001
Building file: ../lib/heb/util/tivoli.cpp
Invoking: GCC C++ Compiler
g++ -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-I/home/pgpl/workspace/cpptest001/include -I/home/pgpl/local/include
-I/home/pgpl/local/include/boost-1_32 -O0 -g3 -pedantic -Wall -Werror -c
-fmessage-length=0 -v -olib/heb/util/tivoli.o ../lib/heb/util/tivoli.cpp
Reading specs from
/repository/srs/pgpl/local/bin/../lib/gcc/sparc-sun-solaris2 .8/3.4.4/specs
Configured with: ../configure
Thread model: posix
gcc version 3.4.4
/repository/srs/pgpl/local/bin/../libexec/gcc/sparc-sun-sola ris2.8/3.4.4/cc1plus
-quiet -v -I/home/pgpl/workspace/cpptest001/include
-I/home/pgpl/local/include -I/home/pgpl/local/include/boost-1_32 -iprefix
/repository/srs/pgpl/local/bin/../lib/gcc/sparc-sun-solaris2 .8/3.4.4/ -dD
-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS ../lib/heb/util/tivoli.cpp -quiet
-dumpbase tivoli.cpp -mcpu=v7 -auxbase-strip lib/heb/util/tivoli.o -g3 -O0
-pedantic -Wall -Werror -version -fmessage-length=0 -o /var/tmp//ccsX0hFy.s
ignoring nonexistent directory
" /repository/srs/pgpl/local/bin/../lib/gcc/sparc-sun-solaris2 .8/3.4.4/../../../../sparc-sun-solaris2.8/include "
ignoring nonexistent directory "/usr/local/lib/../include/c++/3.4.4"
ignoring nonexistent directory
"/usr/local/lib/../include/c++/3.4.4/sparc-sun-solaris2.8"
ignoring nonexistent directory
"/usr/local/lib/../include/c++/3.4.4/backward"
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.4/include"
ignoring nonexistent directory
"/usr/local/lib/../sparc-sun-solaris2.8/include"
#include "..." search starts here:
#include <...> search starts here:
/home/pgpl/workspace/cpptest001/include
/home/pgpl/local/include
/home/pgpl/local/include/boost-1_32
/repository/srs/pgpl/local/bin/../lib/gcc/sparc-sun-solaris2 .8/3.4.4/../../../../include/c++/3.4.4
/repository/srs/pgpl/local/bin/../lib/gcc/sparc-sun-solaris2 .8/3.4.4/../../../../include/c++/3.4.4/sparc-sun-solaris2.8
/repository/srs/pgpl/local/bin/../lib/gcc/sparc-sun-solaris2 .8/3.4.4/../../../../include/c++/3.4.4/backward
/repository/srs/pgpl/local/bin/../lib/gcc/sparc-sun-solaris2 .8/3.4.4/include
/usr/local/include
/usr/include
End of search list.
GNU C++ version 3.4.4 (sparc-sun-solaris2.8)
compiled by GNU C version 3.4.3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
/usr/ccs/bin/as -V -Qy -s -xarch=v8 -olib/heb/util/tivoli.o
/var/tmp//ccsX0hFy.s
/usr/ccs/bin/as: Sun WorkShop 6 2003/12/18 Compiler Common 6.0 Patch
114802-02
/usr/ccs/bin/as: error: no input filename given
usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-f[O][if]#] [-q] [-s]
[-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
[-P [[-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
[-m [-Ym,path]] [-n] [-ul] [-xF] [-xarch=v7] [-xarch=v8] [-xarch=v8a]
[-xarch=v8plus] [-xarch=v8plusa] [-xarch=v8plusb] [-xarch=v9]
[-xarch=v9a] [-xarch=v9b] [-xcode={pic13,pic32}] file.s...
make: *** [lib/heb/util/tivoli.o] Error 1
make: Target `all' not remade because of errors.
Build complete for project cpptest001
|
|
|
Powered by
FUDForum. Page generated in 0.05936 seconds