You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to get the clx macro defined. This isnt exactly our architecture but it seems a
90
+
reasonable lowest common denominator for now.
91
+
92
+
Further arm.S does not compile correctly as the makefile uses `gcc` to assemble
93
+
and preprocess. Changing to `cc` gets this compiled.
94
+
95
+
```
96
+
cc -c -DSYS_freebsd -DMODEL_armv6 -o arm.o arm.S
97
+
```
98
+
99
+
Finally we modify asmcomp/arch.ml at the very top so that `Config.sysytem = "freebsd"`
100
+
maps to EABI.
101
+
102
+
Now we can run `make opt` and get a native code compiler. However, on running it we get
103
+
104
+
```
105
+
% ocamlopt test.ml
106
+
/usr/bin/ld: ERROR: Source object /tmp/camlstartupd0882d.o has EABI version 0, but target a.out has EABI version 5
107
+
/usr/bin/ld: failed to merge target specific data of file /tmp/camlstartupd0882d.o
108
+
/usr/bin/ld: ERROR: Source object /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/std_exit.o has EABI version 0, but target a.out has EABI version 5
109
+
/usr/bin/ld: failed to merge target specific data of file /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/std_exit.o
110
+
/usr/bin/ld: ERROR: Source object test.o has EABI version 0, but target a.out has EABI version 5
111
+
/usr/bin/ld: failed to merge target specific data of file test.o
112
+
/usr/bin/ld: ERROR: Source object /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(pervasives.o) has EABI version 0, but target a.out has EABI version 5
113
+
/usr/bin/ld: failed to merge target specific data of file /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(pervasives.o)
114
+
/usr/bin/ld: ERROR: Source object /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(list.o) has EABI version 0, but target a.out has EABI version 5
115
+
/usr/bin/ld: failed to merge target specific data of file /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(list.o)
116
+
/usr/bin/ld: ERROR: Source object /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(char.o) has EABI version 0, but target a.out has EABI version 5
117
+
/usr/bin/ld: failed to merge target specific data of file /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(char.o)
118
+
/usr/bin/ld: ERROR: Source object /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(string.o) has EABI version 0, but target a.out has EABI version 5
119
+
/usr/bin/ld: failed to merge target specific data of file /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(string.o)
120
+
/usr/bin/ld: ERROR: Source object /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(sys.o) has EABI version 0, but target a.out has EABI version 5
121
+
/usr/bin/ld: failed to merge target specific data of file /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(sys.o)
122
+
/usr/bin/ld: ERROR: Source object /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(buffer.o) has EABI version 0, but target a.out has EABI version 5
123
+
/usr/bin/ld: failed to merge target specific data of file /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(buffer.o)
124
+
/usr/bin/ld: ERROR: Source object /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(printf.o) has EABI version 0, but target a.out has EABI version 5
125
+
/usr/bin/ld: failed to merge target specific data of file /home/pi/dev/ocaml/ocaml-4.01.0-install/lib/ocaml/stdlib.a(printf.o)
126
+
cc: error: linker command failed with exit code 1 (use -v to see invocation)
0 commit comments