question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Same named object files get overwritten

See original GitHub issue

I’m trying to compile ImageMagick with wllvm. Among others it has the following 3 source files:

../MagickCore/magick.c
../coders/magick.c
../utilities/magick.c

However the manifest for magic.o.bc objects looks like this:

utilities/.magick.o.bc
.magick.o.bc
.magick.o.bc

(notice the repeated .magic.o.bc) and the symbols defined in MagicCore/magick.c are undefined in the final binary.

So I’m pretty sure that wllvm puts the .bc files for both coders/magick.c and MagicCore/magick.c into the same .magic.o.bc file, so one of them get’s overwritten.

I tried wllvm versions 1.2.2 and 1.2.7 and it seems to happen in both.

Any pointers as to how to fix this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
ianamasoncommented, Nov 28, 2019

First try gllvm, since I think this was fixed a while ago. If not I can take a look after thanksgiving.

0reactions
kren1commented, Dec 2, 2019

It seems this is only happening with debian 9, I upgraded and now it seems fine. Going to close, thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Object Storage Service:Prevent objects from being overwritten ...
Object Storage Service:Prevent objects from being overwritten by objects that have the same names. By default, if you upload an object that has ......
Read more >
java - Will an object me overridden if it has the same name as ...
Your question is confusing. Objects don't "override" each other, and objects don't have names either. Variables have names, but they're not ...
Read more >
Windows overwrote files with the same name, and now the old ...
The files appear to have been overwritten. The ways this would normally be recovered is using File History or from your backup. System...
Read more >
KB11458: "An existing file with the same name is overwritten ...
This issue occurs when a Read only file with the same name as the one being generated is already stored in the destination...
Read more >
What happens when I overwrite an existing file with the same ...
As others have said, in most cases if a program writes two files with the exact same name, the first will be lost...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found