Hi again,

I've made some progress but encountered some other problems.

I managed to activate gcc with assigning CW_NO_SHADOW to 1 and __GNUC to empty 
variable. It seems I did'nt succeed with setting the __GNUC variable to empty 
string earlier, but now it works.

However, at a later stage in the compilation phase I get an error:

/usr/ccs/bin/ld -dy -b -o debug64/unix -e _start -I misc/sparcv9/krtld -M 
../../sun4/conf/Mapfile \
    ./debug64/unix.o ./debug64/modstubs.o -L ../genunix/debug64 -l genunix -L 
../platmod/debug64 -l platmod -L ./debug64 -l cpu debug64/libdtracestubs.so
Undefined                       first referenced
 symbol                             in file
asm                                 ./debug64/unix.o
ld: fatal: Symbol referencing errors. No output written to debug64/unix


So, It seems like the linker complains about an "asm" statement. What bothers 
me is that it seems like /usr/ccs/bin/ld is a Solaris linker. That is the 
impression I get when i run /usr/ccs/bin/ld -V :

ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.561

I guess the same thing applies to "as". So, even though I have successfuly 
assigned gcc as the primary compiler it seems like solaris linker and assembler 
is still used. This is not what I expected. 

I have some "gnu" versions of ld and as in the 
/usr/sfw/sparc-sun-solaris2.11/bin/ directory, but they seem not to be used. 

I did a desperate try to enable them by passing 
AS=/usr/sfw/sparc-sun-solaris2.11/bin/as LD=/usr/sfw/sparc-sun-solaris2.11/bin/ 
to dmake, but then I got another complaint about an illeagal switch for as.

At this point I don't see a way out of this mess, would be most thankful for 
some more tips. I'm still hoping that I can find a solution by setting 
environment variables properly.

Regards,
/Mladen
--
This message posted from opensolaris.org

Reply via email to