linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Graegert <graegerts@gmail.com>
To: fabio <fabio@crearium.com>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: gcc -static -ggdb not working
Date: Wed, 26 Oct 2005 09:31:14 +0200	[thread overview]
Message-ID: <6a00c8d50510260031s6aae8f7i5fd327050d284e4d@mail.gmail.com> (raw)
In-Reply-To: <435F1695.3050206@crearium.com>

On 10/26/05, fabio <fabio@crearium.com> wrote:
> Hello, I wonder why I cant dbug C programs on Solaris/sparc with gcc:
>
> -bash-3.00$ cat 1.c;\gcc -static -ggdb 1.c -o 1
> main(){
>        printf("hello world\n");
> }
> ld: fatal: library -lc: not found
> ld: fatal: library -lc: not found
> ld: fatal: File processing errors. No output written to 1
> collect2: ld returned 1 exit status

Fabio,

First of all, what's the GCC version and what does your
LD_LIBRARY_PATH and LD_LIBRARY_PATH_64 look like?  Secondly, does it
work without -g or -ggdb options?  Looks like gcc is looking for
64-bit libs in the place where 32-bit libs are usually found.  You may
also want to check where libc.so.1 is located.

	\Steve

PS: Please note, that this is a Linux C programming list.  It's very
likely that input on problems concerning other Unices or Unix-like
OSes will be very reduced.

  reply	other threads:[~2005-10-26  7:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-26  5:39 gcc -static -ggdb not working fabio
2005-10-26  7:31 ` Steve Graegert [this message]
2005-10-26  7:28   ` fabio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6a00c8d50510260031s6aae8f7i5fd327050d284e4d@mail.gmail.com \
    --to=graegerts@gmail.com \
    --cc=fabio@crearium.com \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).