-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/ld: multiple definition of `__moddi3' under archlinux/go1.4/i686 #9437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This looks more likely to be a bug in the gcc(go) bits than the go bits. Can you show the version of the gcc/gccgo/gccgo-4.9 packages you have installed? And a gist of the output of running go build -compiler gccgo -x ? |
For ubuntu, gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2. And gccgo just build succeeded in archlinux/i686, here is the output,
|
The names 00000.o and 000002.o indicate that the __moddi3 symbol is being defined in multiple object files compiled by gcc, which is odd. (This doesn't have anything to do with gccgo as far as I can see.) For the failing build, please run "go build -x" and show us the complete output. Thanks. |
Actually, never mind, I can recreate this easily enough. Issue #9510. Now I don't know why ArchLinux is different from any other GNU/Linux system. |
I'm getting the same problem on Ubuntu 14.04. |
Merge into #9510. This is a general problem, not specific to any linux distribution. |
I build a sample for this case and tested on platforms and architectures. Only
archlinux/go1.4/i686
could not compile success.Here is the error messages, results table and sample code(package
github.com/mattn/go-sqlite3
is required).Error
Results
Sample
The text was updated successfully, but these errors were encountered: