On 2022/01/11 12:01, Christopher Zimmermann wrote:
> CVSROOT:      /cvs
> Module name:  ports
> Changes by:   chr...@cvs.openbsd.org  2022/01/11 12:01:28
> 
> Modified files:
>       lang/ocaml/patches: patch-configure_ac 
> 
> Log message:
> remove obsolete fiddling with CFLAGS
> 
> fixed upstream:
> https://github.com/ocaml/ocaml/pull/8750
> 

Build is broken on i386 and I suspect this change because it also
removes handling for LDFLAGS which is required on i386

cc -shared -o libasmrun_shared.so startup_aux.npic.o startup_nat.npic.o 
main.npic.o fail_nat.npic.o roots_nat.npic.o signals.npic.o signals_nat.npic.o 
misc.npic.o freelist.npic.o major_gc.npic.o minor_gc.npic.o memory.npic.o 
alloc.npic.o 
compare.npic.o ints.npic.o floats.npic.o str.npic.o array.npic.o io.npic.o 
extern.npic.o intern.npic.o hash.npic.o sys.npic.o parsing.npic.o 
gc_ctrl.npic.o eventlog.npic.o md5.npic.o obj.npic.o lexing.npic.o unix.npic.o 
printexc.npic.o ca
llback.npic.o weak.npic.o compact.npic.o finalise.npic.o custom.npic.o 
globroots.npic.o backtrace_nat.npic.o backtrace.npic.o dynlink_nat.npic.o 
debugger.npic.o meta.npic.o dynlink.npic.o clambda_checks.npic.o afl.npic.o 
bigarray.npic.o m
emprof.npic.o domain.npic.o skiplist.npic.o codefrag.npic.o i386_libasmrunpic.o 
-lm                                                                             
                                                                              
ld: error: can't create dynamic relocation R_386_32 against symbol: Caml_state 
in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' 
to allow text relocations in the output                                         
>>> defined in domain.npic.o                                                    
>>>                                                                             
>>>                                                                             
>>>       
>>> referenced by i386.S                                                        
>>>                                        
>>>               i386_libasmrunpic.o:(caml_call_gc)                            
>>>                                                                             
>>>                                                                             
>>>       
                                                                                
                                       
ld: error: relocation R_386_PC32 cannot be used against symbol 
caml_garbage_collection; recompile with -fPIC                                   
                                                                                
               
>>> defined in signals_nat.npic.o                                               
>>>                                                                             
>>>                                                                             
>>>       
>>> referenced by i386.S                                                        
>>>                                                                             
>>>                                                                             
>>>       
>>>               i386_libasmrunpic.o:(caml_call_gc)                            
>>>                                        
                                                                                
                                                                                
                                                                              
ld: error: can't create dynamic relocation R_386_32 against symbol: Caml_state 
in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' 
to allow text relocations in the output                                         
>>> defined in domain.npic.o                                                    
>>>                                                                             
>>>                                                                             
>>>       
>>> referenced by i386.S                                                        
>>>                                        
>>>               i386_libasmrunpic.o:(caml_alloc1)                             
>>>                                                                             
>>>                                                                             
>>>       
                                                                                
                                       
ld: error: can't create dynamic relocation R_386_32 against symbol: Caml_state 
in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' 
to allow text relocations in the output                                         
>>> defined in domain.npic.o                                                    
>>>                                        
>>> referenced by i386.S                                                        
>>>                                                                             
>>>                                                                             
>>>       
>>>               i386_libasmrunpic.o:(caml_alloc2)                             
>>>                                        

etc.etc

Reply via email to