Re: Keep MLton from being kicked out of Debian?

Christopher Cramer <[email protected]> Mon, 7 Nov 2016 16:55:24 -0500
Newsgroups gmane.comp.lang.ml.mlton.user
Message-ID <[email protected]>
On Mon, Nov 07, 2016 at 04:38:44PM -0500, Matthew Fluet wrote:
> You could add it to the `mlton/Makefile` where it detects compiling
> with an older version:
>   https://github.com/MLton/mlton/blob/master/mlton/Makefile#L40
> You could add a
>   FLAGS += -cc-opt -fno-pie -link-opt -fno-pie

Yeah, I did exactly that (and also had to stick it into bin/upgrade-basis).

But the next problem I'm having is that the self-compiling stage
isn't working:

Compiling mllex
"mlton" -target self mllex.mlb
/usr/bin/ld: /tmp/fileM3o02U.o: relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /tmp/fileuuCnoI.o: relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
call to system failed with exit status 1:
gcc -o mllex /tmp/filepfaQ8o.o /tmp/fileofptQJ.o /tmp/fileM3o02U.o /tmp/fileuuCnoI.o -L/home/tsuyoshi/src/mlton-20100608/build/lib/targets/self -lmlton -lgdtoa -lm -lgmp -m64 -Wl,-znoexecstack

Does the mlton codegen support PIC, or do we just need to disable it?
I remember we ran into this problem on OSX before, and I believe that's
what you use, so what did you do for OSX?

-- 
You received this message because you are subscribed to the Google Groups "MLton-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi