g2 icon indicating copy to clipboard operation
g2 copied to clipboard

collect2: fatal error: ld terminated with signal 9 [Killed: 9]

Open spothus opened this issue 6 years ago • 9 comments

I've got this error when compiling as per explaining in the wiki:

collect2: fatal error: ld terminated with signal 9 [Killed: 9]

Screenshot 2019-04-01 at 04 26 49

I've no idea what is happening. Thanks

spothus avatar Apr 01 '19 02:04 spothus

I tried with a more simple directory but the result is not any better:

Screenshot 2019-04-01 at 04 26 49

It looks like it is gcc related ?

spothus avatar Apr 01 '19 03:04 spothus

I looked around and signal 9 means that the process used too much ram and the system killed it.

On OS X that usually means your boot drive is too full for it to effectively use as swap space.

Use Activity Monitor to see if you have anything else open that’s eating a bunch of RAM and try to free up RAM and boot drive space. On Sun, Mar 31, 2019 at 10:39 PM spothus [email protected] wrote:

I tried with a more simple directory but the result is not any better:

[image: Screenshot 2019-04-01 at 04 26 49] https://user-images.githubusercontent.com/13031668/55302199-6d4e5100-5440-11e9-9315-866f682bf08f.png

It looks like it is gcc related ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/synthetos/g2/issues/406#issuecomment-478424569, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXj0YfwfrLtqXwnnPRW8mxqwvMqQeJ3ks5vcX-DgaJpZM4cUum6 .

giseburt avatar Apr 01 '19 10:04 giseburt

Thanks for your answer.

I tried but it looks like I've enough memory...

Screenshot 2019-04-02 at 18 06 41

spothus avatar Apr 02 '19 16:04 spothus

Try with command line. In my case I got succeeded with command line. I can't recall the error that time I was getting with XCode. That might be because XCode is using more RAM.

karoria avatar Apr 02 '19 17:04 karoria

You will need to install command line tools for xcode.

karoria avatar Apr 02 '19 17:04 karoria

same thing with command line and I've installe the commande line tools for Xcode

spothus avatar Apr 02 '19 17:04 spothus

Bossac and motate paths are defined? I mean it should have the hierarchical folders which you need to manually put there. I am not from software or electronics background so dont know much about signal 9. But i can only suggest to use command line with above paths well defined.

karoria avatar Apr 02 '19 18:04 karoria

I've installed Github desktop and downloaded the project via this app. It works both via make and Xcode now... Anyway I don't know what was the issue. The only thing was that the Motate folder was empty when I downloaded the zip file and I had to perform the submodule command. Thanks for your time

spothus avatar Apr 04 '19 16:04 spothus

I fixed this issue before by switching linker from ld (GNU, default) or lld (LLVM): To switch to lld I used: .cargo/config.toml: (make sure lld is installed)

[target.x86_64-unknown-linux-gnu]
rustflags = [
    "-C", "link-arg=-fuse-ld=lld",
]

https://github.com/xd009642/tarpaulin/issues/517#issuecomment-923429731

Edit: Or give the machine more RAM. (if possible)

I don't know if this helps, but hope it does.

ralpha avatar Sep 22 '21 14:09 ralpha