[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#101069: ld cannot find -lgcc_s



Package: gcj-3.0
Version: 1:3.0-0pre010613

Taking a simple Java program as follows:

---8<---
public class Hello {
    public static void main(String[] argv) {
        System.out.println("Hello, World!");
    }
}
---8<---

And trying to compile it with gcj-3.0 gives the following error:

---8<---
evan priss:~/tmp$ gcj-3.0 --main=Hello -o Hello Hello.java 
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
---8<---

I thought there might be something wrong with the entire compilation
system, so I tried to compile a short C file:

---8<---
#include <stdio.h>

int main(int argc, char** argv) {
  printf("Hello, World!\n");
  return 0;
}
---8<---

...which worked fine:

---8<---
evan priss:~/tmp$ gcc-3.0 -o hello hello.c 
evan priss:~/tmp$ ./hello 
Hello, World!
---8<---

By the way, there -is- a libgcc_s available:

---8<---
evan priss:~/tmp$ find /usr/lib -name *libgcc_s*
/usr/lib/gcc-lib/i386-linux/3.0/libgcc_s.so
---8<---

Suggestions and/or a fix would be lovely. B-)

~ESP

-- 
Evan Prodromou
evan@debian.org



Reply to: