[Bug 305] New: Multiple definition error
gdc-bugzilla at gdcproject.org
gdc-bugzilla at gdcproject.org
Mon Aug 27 20:25:21 UTC 2018
https://bugzilla.gdcproject.org/show_bug.cgi?id=305
Bug ID: 305
Summary: Multiple definition error
Product: GDC
Version: 7.x
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Normal
Component: gdc
Assignee: ibuclaw at gdcproject.org
Reporter: aruncxy at gmail.com
Coming from https://forum.dlang.org/post/tiflsaeatatnnzyzvcyk@forum.dlang.org
$ which gdc
/opt/dev-setup/gdc-7.3.0_2.081.2-linux-x86_64/bin/gdc
$ gdc --version
gdc (GCC) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ rm -rf ~/.dub/packages/
$ dub -v build --compiler=gdc >> /tmp/err.log
Using dub registry url 'https://code.dlang.org/'
Refreshing local packages (refresh existing: true)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/arun/.dub/packages/local-packages.json
Note: Failed to determine version of package aimes-test-client at .. Assuming
~master.
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/arun/.dub/packages/local-packages.json
Missing dependency requests 0.8.3 of aimes-test-client
Missing dependency painlessjson 1.3.8 of aimes-test-client
Missing dependency darg 0.0.4 of aimes-test-client
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/arun/.dub/packages/local-packages.json
Missing dependency requests 0.8.3 of aimes-test-client
Missing dependency painlessjson 1.3.8 of aimes-test-client
Missing dependency darg 0.0.4 of aimes-test-client
Checking for missing dependencies.
Using fixed selection requests 0.8.3
Using fixed selection vibe-d 0.8.2
Using fixed selection libevent 2.0.2+2.0.16
Using fixed selection libasync 0.8.3
Using fixed selection memutils 0.4.9
Using fixed selection vibe-core 1.3.0
Using fixed selection eventcore 0.8.27
Using fixed selection taggedalgebraic 0.10.9
Using fixed selection openssl 1.1.6+1.0.1g
Using fixed selection botan 1.12.9
Using fixed selection botan-math 1.0.3
Using fixed selection diet-ng 1.4.3
Using fixed selection painlessjson 1.3.8
Using fixed selection painlesstraits 0.3.0
Using fixed selection dunit 1.0.14
Using fixed selection darg 0.0.4
Fetching eventcore 0.8.27 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/eventcore/0.8.27.zip'
Placing to /home/arun/.dub/packages/...
Fetching libevent 2.0.2+2.0.16 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/libevent/2.0.2+2.0.16.zip'
Placing to /home/arun/.dub/packages/...
Fetching diet-ng 1.4.3 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/diet-ng/1.4.3.zip'
Placing to /home/arun/.dub/packages/...
Fetching taggedalgebraic 0.10.9 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/taggedalgebraic/0.10.9.zip'
Placing to /home/arun/.dub/packages/...
Fetching requests 0.8.3 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/requests/0.8.3.zip'
Placing to /home/arun/.dub/packages/...
Fetching openssl 1.1.6+1.0.1g (getting selected version)...
Downloading from 'https://code.dlang.org/packages/openssl/1.1.6+1.0.1g.zip'
Placing to /home/arun/.dub/packages/...
Fetching botan 1.12.9 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/botan/1.12.9.zip'
Placing to /home/arun/.dub/packages/...
Fetching memutils 0.4.9 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/memutils/0.4.9.zip'
Placing to /home/arun/.dub/packages/...
Fetching vibe-d 0.8.2 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/vibe-d/0.8.2.zip'
Placing to /home/arun/.dub/packages/...
Fetching painlesstraits 0.3.0 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/painlesstraits/0.3.0.zip'
Placing to /home/arun/.dub/packages/...
Fetching vibe-core 1.3.0 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/vibe-core/1.3.0.zip'
Placing to /home/arun/.dub/packages/...
Fetching darg 0.0.4 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/darg/0.0.4.zip'
Placing to /home/arun/.dub/packages/...
Fetching libasync 0.8.3 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/libasync/0.8.3.zip'
Placing to /home/arun/.dub/packages/...
Fetching botan-math 1.0.3 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/botan-math/1.0.3.zip'
Placing to /home/arun/.dub/packages/...
Fetching painlessjson 1.3.8 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/painlessjson/1.3.8.zip'
Placing to /home/arun/.dub/packages/...
Fetching dunit 1.0.14 (getting selected version)...
Downloading from 'https://code.dlang.org/packages/dunit/1.0.14.zip'
Placing to /home/arun/.dub/packages/...
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/arun/.dub/packages/local-packages.json
Found dependency requests 0.8.3
Found dependency vibe-d 0.8.2
Found dependency vibe-d:redis 0.8.2
Found dependency vibe-d:http 0.8.2
Found dependency vibe-d:tls 0.8.2
Found dependency vibe-d:stream 0.8.2
Found dependency vibe-d:core 0.8.2
Found dependency vibe-d:utils 0.8.2
Found dependency vibe-d:data 0.8.2
Found dependency libevent 2.0.2+2.0.16
Found dependency libasync 0.8.3
Found dependency memutils 0.4.9
Found dependency vibe-core 1.3.0
Found dependency eventcore 0.8.27
Found dependency taggedalgebraic 0.10.9
Found dependency openssl 1.1.6+1.0.1g
Found dependency botan 1.12.9
Found dependency botan-math 1.0.3
Found dependency vibe-d:crypto 0.8.2
Found dependency vibe-d:inet 0.8.2
Found dependency vibe-d:textfilter 0.8.2
Found dependency diet-ng 1.4.3
Found dependency vibe-d:mongodb 0.8.2
Found dependency vibe-d:web 0.8.2
Found dependency vibe-d:mail 0.8.2
Found dependency painlessjson 1.3.8
Found dependency painlesstraits 0.3.0
Found dependency dunit 1.0.14
Found dependency darg 0.0.4
Checking for upgrades.
Using cached upgrade results...
Package eventcore can be upgraded from 0.8.27 to 0.8.35.
Package diet-ng can be upgraded from 1.4.3 to 1.5.0.
Package taggedalgebraic can be upgraded from 0.10.9 to 0.10.11.
Non-selected package dproto is available with version 2.1.4.
Package botan can be upgraded from 1.12.9 to 1.12.10.
Package memutils can be upgraded from 0.4.9 to 0.4.11.
Package vibe-d can be upgraded from 0.8.2 to 0.8.4.
Non-selected package mir-linux-kernel is available with version 1.0.0.
Package vibe-core can be upgraded from 1.3.0 to 1.4.1.
Package darg can be upgraded from 0.0.4 to 0.0.5.
Package painlessjson can be upgraded from 1.3.8 to 1.3.9.
Non-selected package stdx-allocator is available with version 2.77.2.
Use "dub upgrade" to perform those changes.
Selected package painlesstraits 0.3.0 does not match the dependency
specification ~>0.2.0 in package painlessjson. Need to "dub upgrade"?
Generating using build
Configuring dependent aimes-test-client, deps:"darg", "painlessjson",
"requests"
Configuring dependent darg, deps:
Configuring dependent painlessjson, deps:"dunit", "painlesstraits"
Configuring dependent dunit, deps:
Configuring dependent painlesstraits, deps:
Configuring dependent requests, deps:
Performing "debug" build using gdc for x86_64.
Target
'/home/arun/.dub/packages/darg-0.0.4/darg/.dub/build/library-debug-linux.posix-x86_64-gdc_2081-7A95236C6C5A6053AB7BDB693E218567/libdarg.a'
doesn't exist, need rebuild.
darg 0.0.4: building configuration "library"...
gdc -c -o
/home/arun/.dub/packages/darg-0.0.4/darg/.dub/build/library-debug-linux.posix-x86_64-gdc_2081-7A95236C6C5A6053AB7BDB693E218567/libdarg.a
-fdebug -g -Werror -Wall -fversion=Have_darg
-I/home/arun/.dub/packages/darg-0.0.4/darg/source/
/home/arun/.dub/packages/darg-0.0.4/darg/source/darg.d
Copying target from
/home/arun/.dub/packages/darg-0.0.4/darg/.dub/build/library-debug-linux.posix-x86_64-gdc_2081-7A95236C6C5A6053AB7BDB693E218567/libdarg.a
to /home/arun/.dub/packages/darg-0.0.4/darg
Target
'/home/arun/.dub/packages/dunit-1.0.14/dunit/.dub/build/library-debug-linux.posix-x86_64-gdc_2081-46136F0DDD89B2C624F750C9E30AFB3A/libdunit.a'
doesn't exist, need rebuild.
dunit 1.0.14: building configuration "library"...
gdc -c -o
/home/arun/.dub/packages/dunit-1.0.14/dunit/.dub/build/library-debug-linux.posix-x86_64-gdc_2081-46136F0DDD89B2C624F750C9E30AFB3A/libdunit.a
-fdebug -g -Werror -Wall -fversion=Have_dunit
-I/home/arun/.dub/packages/dunit-1.0.14/dunit/source/
/home/arun/.dub/packages/dunit-1.0.14/dunit/source/dunit/error.d
/home/arun/.dub/packages/dunit-1.0.14/dunit/source/dunit/mockable.d
/home/arun/.dub/packages/dunit-1.0.14/dunit/source/dunit/moduleunittester.d
/home/arun/.dub/packages/dunit-1.0.14/dunit/source/dunit/output/console.d
/home/arun/.dub/packages/dunit-1.0.14/dunit/source/dunit/reflection.d
/home/arun/.dub/packages/dunit-1.0.14/dunit/source/dunit/result/moduleresult.d
/home/arun/.dub/packages/dunit-1.0.14/dunit/source/dunit/result/moduleresultcollection.d
/home/arun/.dub/packages/dunit-1.0.14/dunit/source/dunit/toolkit.d
Copying target from
/home/arun/.dub/packages/dunit-1.0.14/dunit/.dub/build/library-debug-linux.posix-x86_64-gdc_2081-46136F0DDD89B2C624F750C9E30AFB3A/libdunit.a
to /home/arun/.dub/packages/dunit-1.0.14/dunit
Target
'/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/.dub/build/unittest-debug-linux.posix-x86_64-gdc_2081-A4103E8AB68732967475F4211CF35B36/libpainlesstraits.a'
doesn't exist, need rebuild.
painlesstraits 0.3.0: building configuration "unittest"...
gdc -c -o
/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/.dub/build/unittest-debug-linux.posix-x86_64-gdc_2081-A4103E8AB68732967475F4211CF35B36/libpainlesstraits.a
-fdebug -g -Werror -Wall -fversion=Have_painlesstraits
-I/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/source/
-I/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/source
-I/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/test
/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/source/painlesstraits.d
/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/test/publicmembers.d
Copying target from
/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/.dub/build/unittest-debug-linux.posix-x86_64-gdc_2081-A4103E8AB68732967475F4211CF35B36/libpainlesstraits.a
to /home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits
Target
'/home/arun/.dub/packages/painlessjson-1.3.8/painlessjson/.dub/build/library-debug-linux.posix-x86_64-gdc_2081-6F6BB9276A1263C76D30D556B215566E/libpainlessjson.a'
doesn't exist, need rebuild.
painlessjson 1.3.8: building configuration "library"...
gdc -c -o
/home/arun/.dub/packages/painlessjson-1.3.8/painlessjson/.dub/build/library-debug-linux.posix-x86_64-gdc_2081-6F6BB9276A1263C76D30D556B215566E/libpainlessjson.a
-fdebug -g -Werror -Wall -fversion=Have_painlessjson -fversion=Have_dunit
-fversion=Have_painlesstraits
-I/home/arun/.dub/packages/painlessjson-1.3.8/painlessjson/source/
-I/home/arun/.dub/packages/dunit-1.0.14/dunit/source/
-I/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/source/
-I/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/source
-I/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/test
/home/arun/.dub/packages/painlessjson-1.3.8/painlessjson/source/painlessjson/annotations.d
/home/arun/.dub/packages/painlessjson-1.3.8/painlessjson/source/painlessjson/package.d
/home/arun/.dub/packages/painlessjson-1.3.8/painlessjson/source/painlessjson/painlessjson.d
/home/arun/.dub/packages/painlessjson-1.3.8/painlessjson/source/painlessjson/string.d
/home/arun/.dub/packages/painlessjson-1.3.8/painlessjson/source/painlessjson/unittesttypes.d
/home/arun/.dub/packages/painlessjson-1.3.8/painlessjson/source/painlessjson/unittesttypes_local_import.d
Copying target from
/home/arun/.dub/packages/painlessjson-1.3.8/painlessjson/.dub/build/library-debug-linux.posix-x86_64-gdc_2081-6F6BB9276A1263C76D30D556B215566E/libpainlessjson.a
to /home/arun/.dub/packages/painlessjson-1.3.8/painlessjson
Target
'/home/arun/.dub/packages/requests-0.8.3/requests/.dub/build/std-debug-linux.posix-x86_64-gdc_2081-63276C8FBF5E54140F3F65C5F4BADD45/librequests.a'
doesn't exist, need rebuild.
requests 0.8.3: building configuration "std"...
gdc -c -o
/home/arun/.dub/packages/requests-0.8.3/requests/.dub/build/std-debug-linux.posix-x86_64-gdc_2081-63276C8FBF5E54140F3F65C5F4BADD45/librequests.a
-fdebug -g -Werror -Wall -fversion=Have_requests
-I/home/arun/.dub/packages/requests-0.8.3/requests/tests
-I/home/arun/.dub/packages/requests-0.8.3/requests/source
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/base.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/ftp.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/http.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/idna/package.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/idna/punycode/codec.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/idna/punycode/package.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/package.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/pool.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/request.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/server/httpd.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/server/package.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/ssl_adapter.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/streams.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/uri.d
/home/arun/.dub/packages/requests-0.8.3/requests/source/requests/utils.d
/home/arun/.dub/packages/requests-0.8.3/requests/tests/app.d
/home/arun/.dub/packages/requests-0.8.3/requests/tests/httpbin.d
Copying target from
/home/arun/.dub/packages/requests-0.8.3/requests/.dub/build/std-debug-linux.posix-x86_64-gdc_2081-63276C8FBF5E54140F3F65C5F4BADD45/librequests.a
to /home/arun/.dub/packages/requests-0.8.3/requests
Target
'/home/arun/code/cbp/edge/test/.dub/build/application-debug-linux.posix-x86_64-gdc_2081-0B1FA69BC544878EF95F241578743397/aimes-test-client'
doesn't exist, need rebuild.
aimes-test-client ~master: building configuration "application"...
gdc -o
.dub/build/application-debug-linux.posix-x86_64-gdc_2081-0B1FA69BC544878EF95F241578743397/aimes-test-client
-fdebug -g -Werror -Wall -fversion=Have_aimes_test_client -fversion=Have_darg
-fversion=Have_painlessjson -fversion=Have_requests -fversion=Have_dunit
-fversion=Have_painlesstraits -Isrc/
-I/home/arun/.dub/packages/darg-0.0.4/darg/source/
-I/home/arun/.dub/packages/painlessjson-1.3.8/painlessjson/source/
-I/home/arun/.dub/packages/dunit-1.0.14/dunit/source/
-I/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/source/
-I/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/source
-I/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/test
-I/home/arun/.dub/packages/requests-0.8.3/requests/tests
-I/home/arun/.dub/packages/requests-0.8.3/requests/source src/app.d
/home/arun/.dub/packages/darg-0.0.4/darg/.dub/build/library-debug-linux.posix-x86_64-gdc_2081-7A95236C6C5A6053AB7BDB693E218567/libdarg.a
/home/arun/.dub/packages/painlessjson-1.3.8/painlessjson/.dub/build/library-debug-linux.posix-x86_64-gdc_2081-6F6BB9276A1263C76D30D556B215566E/libpainlessjson.a
/home/arun/.dub/packages/dunit-1.0.14/dunit/.dub/build/library-debug-linux.posix-x86_64-gdc_2081-46136F0DDD89B2C624F750C9E30AFB3A/libdunit.a
/home/arun/.dub/packages/painlesstraits-0.3.0/painlesstraits/.dub/build/unittest-debug-linux.posix-x86_64-gdc_2081-A4103E8AB68732967475F4211CF35B36/libpainlesstraits.a
/home/arun/.dub/packages/requests-0.8.3/requests/.dub/build/std-debug-linux.posix-x86_64-gdc_2081-63276C8FBF5E54140F3F65C5F4BADD45/librequests.a
/home/arun/.dub/packages/requests-0.8.3/requests/.dub/build/std-debug-linux.posix-x86_64-gdc_2081-63276C8FBF5E54140F3F65C5F4BADD45/librequests.a:(.data+0x53e0):
multiple definition of `_D3app12__ModuleInfoZ'
/tmp/ccmyuMSK.o:(.data+0x1e0): first defined here
/home/arun/.dub/packages/requests-0.8.3/requests/.dub/build/std-debug-linux.posix-x86_64-gdc_2081-63276C8FBF5E54140F3F65C5F4BADD45/librequests.a:(minfo+0x78):
multiple definition of `_D3app11__moduleRefZ'
/tmp/ccmyuMSK.o:(minfo+0x0): first defined here
collect2: error: ld returned 1 exit status
FAIL
.dub/build/application-debug-linux.posix-x86_64-gdc_2081-0B1FA69BC544878EF95F241578743397/
aimes-test-client executable
gdc failed with exit code 1.
My dependencies look like this:
"dependencies" : {
"darg": "~>0.0.4",
"painlessjson": "~>1.3.5",
"requests": "~>0.8.3"
}
--
You are receiving this mail because:
You are watching all bug changes.
More information about the D.gnu
mailing list