Bug#837359: ocaml: FTBFS on -fPIE binNMU on armhf - test failure
On Mon, Oct 31, 2016 at 06:46:00PM +0000, Niels Thykier wrote:
> Control: retitle -1 ocaml: FTBFS on -fPIE binNMU on armhf - test failure
>
> Dear maintainer,
>
> We have tried to binNMU ocaml in unstable now that PIE is on by default.
> This worked fine on all release architectures except armhf, where 4
> tests failed:
>
> """
> Summary:
> 468 test(s) passed
> 4 test(s) failed
> 0 unexpected error(s)
>
> List of failed tests:
> tests/asmcomp/quicksort2
> tests/asmcomp/soli
> tests/asmcomp/arith
> tests/asmcomp/tagged-integr
> """
>
> Source:
> https://buildd.debian.org/status/fetch.php?pkg=ocaml&arch=armhf&ver=4.02.3-7%2Bb1&stamp=1477553350
... testing 'quicksort2':/usr/bin/ld: quicksort2.o: relocation R_ARM_THM_MOVW_ABS_NC against `cmp' can not be used when making a shared object; recompile with -fPIC
quicksort2.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
=> failed
... testing 'soli':/usr/bin/ld: soli.o: relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
soli.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
=> failed
... testing 'arith':/usr/bin/ld: arith.o: relocation R_ARM_THM_MOVW_ABS_NC against `D' can not be used when making a shared object; recompile with -fPIC
arith.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
=> failed
... testing 'tagged-integr':/usr/bin/ld: tagged-integr.o: relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
tagged-integr.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
=> failed
Several other testcases are building fine.
The odd thing is that these worked on armel and arm64 but failed on armhf.
Note that the "recompile with -fPIC" error message can be misleading.
It is also given when building binaries where only PIE is required
(which is the default in the gcc used).
> If you believe this is a transient failure, please let me know and I
> will schedule a retry (give-back).
>
> Thanks,
> ~Niels
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
Reply to: