comp.lang.ada
 help / color / mirror / Atom feed
From: Thiago Holanda <tholanda@gmail.com>
Subject: Build error: cannot find -lc
Date: Wed, 7 Sep 2011 17:09:23 -0700 (PDT)
Date: 2011-09-07T17:09:23-07:00	[thread overview]
Message-ID: <3e304b4f-7319-42d9-96c1-df74aca531c3@24g2000yqr.googlegroups.com> (raw)

Hello all,

I am using the Ubuntu 11.04 and I downloaded and installed the gnat-
gpl-2011-x86_64-pc-linux-gnu-bin.tar.gz.

My code (uglyform.adb) in GPS is:

with Ada.Text_IO;
use Ada.Text_IO;
procedure UglyForm is begin
   Put   ("Good form ");
   Put("can aid in ");
   Put("understanding a program,");
   New_Line;
   Put("and bad form ");
   Put("can make a program ");
   Put("unreadable.");
   New_Line;
end UglyForm;

I can compile it:

gnatmake -ws -c -u -P/home/thiago/Documents/works/Ada/default.gpr -
XBUILD=Debug uglyform.adb
gcc -c -g -g -gnato -fstack-check -gnatVa -I- -gnatA /home/thiago/
Documents/works/Ada/src/uglyform.adb

[2011-09-07 20:59:41] process terminated successfully (elapsed time:
00.15s)

But, when I build it, one error happens:

gnatmake -d -P/home/thiago/Documents/works/Ada/default.gpr -
XBUILD=Debug uglyform.adb

gnatlink /home/thiago/Documents/works/Ada/bin/uglyform.ali -g -g -o /
home/thiago/Documents/works/Ada/exec/uglyform
/usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/ld: cannot find -lc
collect2: ld returned 1 exit status
gnatlink: error when calling /usr/gnat/bin/gcc
gnatmake: *** link failed.

[2011-09-07 21:03:36] process exited with status 4 (elapsed time:
00.15s)

Thank you for any help.

Regards,

Thiago



             reply	other threads:[~2011-09-08  0:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-08  0:09 Thiago Holanda [this message]
2011-09-08  4:23 ` Build error: cannot find -lc David Sauvage
2011-09-09  0:46   ` Thiago Holanda
2011-09-09  3:44     ` David Sauvage
2011-09-09  5:40     ` Pascal Obry
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox