Some GNU GCC questions

From: Martynas Buozis (martynas@ti.com)
Date: Thu Apr 25 2002 - 09:56:31 EDT


Hello,

Maybe my questions are easy ones, anyway - I am asking for a help. I am
using SUN Solaris 8 version with latest MU and patches.

1. I have 2.95.3 gcc installed as package SMCgcc from
www.sunfreeware.com. While compiling program with native cpp in
/usr/lib/cpp I have no errors reported. While compiling with
/usr/local/bin/cpp from SMCgcc I have an error messages :

# /usr/local/bin/cpp -D_ASM -D__STDC__=0
/usr/share/src/httpd-2.0.35/srclib/apr/atomic/solaris_sparc/apr_atomic_sparc.s
> apr_atomic_sparc.S

In file included from
/usr/share/src/httpd-2.0.35/srclib/apr/atomic/solaris_sparc/apr_atomic_sparc.s:63:
/usr/include/sys/asm_linkage.h:104: `#' operator should be followed by a
macro argument name
/usr/include/sys/asm_linkage.h:113: `#' operator should be followed by a
macro argument name
/usr/include/sys/asm_linkage.h:120: `#' operator should be followed by a
macro argument name
/usr/include/sys/asm_linkage.h:133: `#' operator should be followed by a
macro argument name
/usr/include/sys/asm_linkage.h:133: `#' operator should be followed by a
macro argument name
/usr/include/sys/asm_linkage.h:143: `#' operator should be followed by a
macro argument name
/usr/include/sys/asm_linkage.h:143: `#' operator should be followed by a
macro argument name
/usr/include/sys/asm_linkage.h:152: `#' operator should be followed by a
macro argument name
/usr/include/sys/asm_linkage.h:169: `#' operator should be followed by a
macro argument name
/usr/include/sys/asm_linkage.h:177: `#' operator should be followed by a
macro argument name
/usr/share/src/httpd-2.0.35/srclib/apr/atomic/solaris_sparc/apr_atomic_sparc.s:113:
unterminated character constant
# /usr/lib/cpp -D_ASM -D__STDC__=0
/usr/share/src/httpd-2.0.35/srclib/apr/atomic/solaris_sparc/apr_atomic_sparc.s
> apr_atomic_sparc.S

#

Where can be a problem ?

2. For test purposes I downloaded gcc 3.0.3 as a package provided by
sunfreeware. Compiles software, found that it is working. Everything
fine. Except, that I always get an executable with a dynamic link to
/usr/local/lib/libgcc_s.so.1 (I can see this link with "ldd
<executable>"). I tried to use option -static-libgcc, but still have
dynamic link to that library. If I remove file from /usr/local/lib then
I get an error while compiling "-llibgcc_s can't be found", while I am
not specifying this flag in my command line. I contacted people on
sunfreeware and they recommended to ask community where the problem can
be. Any comments ?

With best regards,
Martynas Buozis

-- 
-------------------------------------------------------------
Martynas Buozis            Texas Instruments Deutschland GmbH
Mail:  martynas@ti.com     Haggertystrasse 1
Phone: +49 8161 80 4506    85356 Freising
Fax:   +49 8161 80 3191    Germany
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:15 EDT