Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005679OCamlOCaml internal build/install (Makefiles, configure)public2012-07-11 10:382012-07-11 18:06
Reporterpboutill 
Assigned Tolefessan 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Platformi386OSMacOSOS Version10.5.8
Product Version4.00.0+beta2/+rc1 
Target VersionFixed in Version4.00.0+dev 
Summary0005679: make opt fails on pervasives.cmx on (old?) MacOS
DescriptionWhen I use either Xcode 3.1.3 or 3.1.4(
as -version = Apple Inc version cctools-698.1~1, GNU assembler version 1.38
gcc-4.2 --version = i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5577)
)
to compile Ocaml4.00 I can read :

cd stdlib; make allopt
../boot/ocamlrun ../ocamlopt -warn-error A -nostdlib -g `./Compflags pervasives.cmx` -c pervasives.ml
/var/folders/a6/a6KJ8MUxEnqHzTCErC+DkU+++TI/-Tmp-/camlasmd97cd2.s:634:Missing string
/var/folders/a6/a6KJ8MUxEnqHzTCErC+DkU+++TI/-Tmp-/camlasmd97cd2.s:634:Rest of line ignored. 1st junk character valued 49 (1).
/var/folders/a6/a6KJ8MUxEnqHzTCErC+DkU+++TI/-Tmp-/camlasmd97cd2.s:635:Unknown pseudo-op: .loc
/var/folders/a6/a6KJ8MUxEnqHzTCErC+DkU+++TI/-Tmp-/camlasmd97cd2.s:635:Rest of line ignored. 1st junk character valued 49 (1).

and then 30 other lines where "Unknown pseudo-op: .loc"

Is it because my computer is full of garbage or is it because 10.5 is too old ? (I'm OK with that, just don't mention it explicitelly in the README then)
Steps To Reproduce> ./configure
or
> ./configure -cc gcc-4.2
or
> ./configure -as "gcc-4.2 -c" -cc gcc-4.2
and then
> make opt
TagsNo tags attached.
Attached Files? file icon ocamlc.config [^] (693 bytes) 2012-07-11 10:55
? file icon pervasives.s [^] (63,365 bytes) 2012-07-11 10:56
? file icon ocamlopt.verbose [^] (15,397 bytes) 2012-07-11 10:57

- Relationships

-  Notes
(0007703)
lefessan (developer)
2012-07-11 10:45

Could you provide more information:
- ./boot/ocamlrun ./ocamlc -config > ocamlc.config
- In stdlib/ (notice the -S and -verbose):
../boot/ocamlrun ../ocamlopt -warn-error A -verbose -S -nostdlib -g `./Compflags pervasives.cmx` -c pervasives.ml > ocamlopt.verbose
and attach the files:
- ocamlc.config
- stdlib/pervasives.s
- stdlib/ocamlopt.verbose
to this bug report ?
(0007713)
lefessan (developer)
2012-07-11 17:08

Indeed, new .line and .loc directives were added in i386/amd64 backends. Since they are not available on LLVM before 2011, we should probably either check for their support, or activate them only if .cfi directives are also accepted.
(0007716)
lefessan (developer)
2012-07-11 17:32

I committed a fix that checks for support of .line/.loc directives at the same time as .cfi directives, and generate either both of them or none of them.

Could you test the new version (starting with ./configure ...) ?
(0007719)
pboutill (reporter)
2012-07-11 18:06

It works. Thanks a lot for your reactivity...

- Issue History
Date Modified Username Field Change
2012-07-11 10:38 pboutill New Issue
2012-07-11 10:45 lefessan Note Added: 0007703
2012-07-11 10:55 pboutill File Added: ocamlc.config
2012-07-11 10:55 gasche Summary make opt fails on pervasives.cmx => make opt fails on pervasives.cmx on (old?) MacOS
2012-07-11 10:56 pboutill File Added: pervasives.s
2012-07-11 10:57 pboutill File Added: ocamlopt.verbose
2012-07-11 17:08 lefessan Note Added: 0007713
2012-07-11 17:08 lefessan Assigned To => lefessan
2012-07-11 17:08 lefessan Status new => confirmed
2012-07-11 17:32 lefessan Note Added: 0007716
2012-07-11 17:32 lefessan Status confirmed => resolved
2012-07-11 17:32 lefessan Fixed in Version => 4.00.0+dev
2012-07-11 17:32 lefessan Resolution open => fixed
2012-07-11 18:06 pboutill Note Added: 0007719


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker