Bug 6010 – -fPIC is broken on freebsd/64

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
FreeBSD
Creation time
2011-05-15T12:55:00Z
Last change time
2013-11-16T10:44:13Z
Assigned to
nobody
Creator
braddr

Comments

Comment #0 by braddr — 2011-05-15T12:55:03Z
All -fPIC testing is currently disabled on freebsd since it's somewhat broken. dmd/test/d_do_test.d: // win32 doesn't support pic, nor does freebsd/64 currently if (envData.os == "win32" || envData.os == "freebsd") { auto index = std.string.indexOf(testArgs.permuteArgs, "-fPIC"); if (index != -1) testArgs.permuteArgs = testArgs.permuteArgs[0 .. index] ~ testArgs.permuteArgs[index+5 .. $]; }
Comment #1 by code — 2013-03-14T13:44:49Z
Does this still hold true? I don't think that FreeBSD64 is different from linux.
Comment #2 by braddr — 2013-03-14T15:23:49Z
As far as I know, no one has done anything to fix it, though it's not impossible that I missed some important changes. Easy enough to test.. find the code below in d_do_test.d, disable it, and run the tests.
Comment #3 by github-bugzilla — 2013-11-16T10:26:13Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5085acbadba20b0c2d0f94ba6822853200030109 close Issue 6010 - fPIC is broken on FreeBSD/64 - The ABI doesn't differ from linux so reenable the tests. https://github.com/D-Programming-Language/dmd/commit/46c194b696d8ca9604e97c61a41a19a3787d5df5 Merge pull request #2781 from dawgfoto/fix6010 close Issue 6010 - fPIC is broken on FreeBSD/64
Comment #4 by braddr — 2013-11-16T10:43:57Z
I'm curious what was broken and when it was fixed. It definitely was thoroughly broken back when initially adding freebsd 32 and 64 to the test fleet. Not worth the time to bisect though.