Re: C compiler cannot create executables

2007-11-07 Thread Rod Person
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 06 Nov 2007 22:19:28 -0500
Philip M. Gollucci [EMAIL PROTECTED] wrote:

 Rod Person wrote:
  /usr/bin/ld cannot find -lgcc_s
 ls /lib/gcc*
 
 You should have:
 ls libgcc*
 -r--r--r--  1 root  wheel  -   43K Nov  4 01:23:20 2007 libgcc_s.so.1
 
 at least on 8.0-current.
 
 If you don't have it, copy it from somewhere -- might have on in 
 /usr/obj if you didn't wipe it.

THANK YOU SIR!!

That fixed it and everything is back to normal. It seems that some how
that file was deleted

- -- 
Rod

http://roddierod.homeunix.net:8080
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFHMaQGZe6B7B2ImpsRAmBlAJ44oBN4ijjBuwnmTlCiwuxmYFPCtACfVpWO
FJcZj858Sc4HCRSRYUDHlts=
=IsL2
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

C compiler cannot create executables

2007-11-06 Thread Rod Person
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I seem to have really hosed up my system somehow and I'm not sure what
I did. I'm running FreeBSD 7 Beta 1 i386.

I was going to upgrade to Beta 2, but when ever I compile anything it
fails and the last line is always:

configure: error: C compiler cannot create executables

I googled for awhile and found the suggestion to reinstall libtool, but
that also fails with the same error.

Any suggests would be great...

- -- 
Rod

http://roddierod.homeunix.net:8080
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFHMQkFZe6B7B2ImpsRAnuaAJ4hV6DKUSsmESO9CFkYBtsE2F10bwCfSnt2
Fn0QFwe7KMUecSG1Px+sJDU=
=KtbG
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: C compiler cannot create executables

2007-11-06 Thread Rod Person
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 06 Nov 2007 20:01:26 -0500
Steve Bertrand [EMAIL PROTECTED] wrote:

 Rod Person wrote:
  I seem to have really hosed up my system somehow and I'm not sure
  what I did. I'm running FreeBSD 7 Beta 1 i386.
  
  I was going to upgrade to Beta 2, but when ever I compile anything
  it fails and the last line is always:
  
  configure: error: C compiler cannot create executables
  
  I googled for awhile and found the suggestion to reinstall libtool,
  but that also fails with the same error.
 
 I had this exact problem with a production box quite a while ago.
 
 This was on a machine that was running 5.x.
 
 What I did was remove one of the mirrored drives, booted it in another
 machine. I put in a 6.x CD, ran sysinstall and did a binary upgrade.
 
 This was the only way I could fix the problem. Since then, the same
 box after being put back into production is currently running fine at
 6.2
 
 If you have good backups, or even better, a RAID1 system, a binary
 upgrade may be the easiest fix. It was for me.
 
 Steve

Thanks Steve,

I was kind of was thinking of doing this if nothing else works. I have
back ups of all the data. Unfortunately, this workstation doesn't have
a RAID setup, but now I'm thinking of this for the future :)

- -- 
Rod

http://roddierod.homeunix.net:8080
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFHMREzZe6B7B2ImpsRAra/AJwNk0j2b/1lQBud3iJ/878ksoB2VgCfUpm2
XXRWEfvzhc7HoVklIEbn1dQ=
=2PCA
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: C compiler cannot create executables

2007-11-06 Thread Steve Bertrand
Rod Person wrote:
 I seem to have really hosed up my system somehow and I'm not sure what
 I did. I'm running FreeBSD 7 Beta 1 i386.
 
 I was going to upgrade to Beta 2, but when ever I compile anything it
 fails and the last line is always:
 
 configure: error: C compiler cannot create executables
 
 I googled for awhile and found the suggestion to reinstall libtool, but
 that also fails with the same error.

I had this exact problem with a production box quite a while ago.

This was on a machine that was running 5.x.

What I did was remove one of the mirrored drives, booted it in another
machine. I put in a 6.x CD, ran sysinstall and did a binary upgrade.

This was the only way I could fix the problem. Since then, the same box
after being put back into production is currently running fine at 6.2

If you have good backups, or even better, a RAID1 system, a binary
upgrade may be the easiest fix. It was for me.

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: C compiler cannot create executables

2007-11-06 Thread Josh Carroll
 configure: error: C compiler cannot create executables

 I googled for awhile and found the suggestion to reinstall libtool, but
 that also fails with the same error.

Can you paste the config.log from the port's work source directory
(where configure is located)?

Can you try the following and see if it compiles?

echo '#include stdio.h\nint main(void){ printf(hello world!\\n);
return 0;}\n'  t.c ; gcc t.c -o t; ./t; rm t.c

You should either see:

hello world!

Or some compiler errors/warnings/etc.

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: C compiler cannot create executables

2007-11-06 Thread Garrett Cooper

Josh Carroll wrote:

configure: error: C compiler cannot create executables

I googled for awhile and found the suggestion to reinstall libtool, but
that also fails with the same error.



Can you paste the config.log from the port's work source directory
(where configure is located)?

Can you try the following and see if it compiles?

echo '#include stdio.h\nint main(void){ printf(hello world!\\n);
return 0;}\n'  t.c ; gcc t.c -o t; ./t; rm t.c

You should either see:

hello world!

Or some compiler errors/warnings/etc.

Josh
  

Just do...

# Exit.
echo 'int main() { return 1; } ' src.c;
# Try to compile prog.
gcc -O0 src.c  ./a.out  echo $?;
# Toss executable, if it exists.
[ -e './a.out' ]  rm ./a.out

Either you'll get a compiler error, or it should print out 1.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: C compiler cannot create executables

2007-11-06 Thread Rod Person
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 06 Nov 2007 17:31:39 -0800
Josh Carroll [EMAIL PROTECTED] wrote:

  configure: error: C compiler cannot create executables
 
  I googled for awhile and found the suggestion to reinstall libtool,
  but that also fails with the same error.
 
 Can you paste the config.log from the port's work source directory
 (where configure is located)?
 
 Can you try the following and see if it compiles?
 
 echo '#include stdio.h\nint main(void){ printf(hello world!\\n);
 return 0;}\n'  t.c ; gcc t.c -o t; ./t; rm t.c
 
 You should either see:
 
 hello world!
 
 Or some compiler errors/warnings/etc.

I tried this earlier a got this:
 gcc -o test test.c
 ./test.c
   
This returns:

/usr/bin/ld cannot find -lgcc_s

 ldd `which gcc`  
returns:

ldd: /usr/bin/gcc:  not a dynamic executable

I've attached the config.log from libtool15


- -- 
Rod

http://roddierod.homeunix.net:8080
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFHMRuBZe6B7B2ImpsRAtpfAKCUBj1eWLzVbVjHJu3zEJiV0r91MgCfdw7h
Gxd5aMBBOh8n8AzK5LU6CyQ=
=EAT4
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]