Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002557OCamlCamlIDLpublic2004-05-06 03:432004-05-12 14:41
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002557: camlidl always fails
DescriptionFull_Name: Chris Curtis
Version: 3.07
OS: Mac OS X 10.3.3
Submission from: dsl093-224-176.slc1.dsl.speakeasy.net (66.93.224.176)


I built camlidl-1.04 with no problems, but regardless of what file I attempt to
process it fails with the following error:

[widget:~/camlidl-1.04/tests] chris% make
../compiler/camlidl -header basics.idl
File basics.idl, line 1, column 0: Illegal character #
make: *** [basics.o] Error 2
[widget:~/camlidl-1.04/tests] chris%

I have made no changes to camlidl other than configuring the Makefile as
specified.


In case it's helpful, an extract from the tempfile created is:

# 1 "../tests/basics.idl"
#pragma GCC set_debug_pwd "/Users/chris/camlidl-1.04/compiler"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "../tests/basics.idl"


[pointer_default(ref)]
interface Basics {

int f1([in] int x);

... etc.






TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000093)
administrator (administrator)
2004-05-08 17:30

> I built camlidl-1.04 with no problems, but regardless of what file I
> attempt to process it fails with the following error:
> [widget:~/camlidl-1.04/tests] chris% make
> ../compiler/camlidl -header basics.idl
> File basics.idl, line 1, column 0: Illegal character #
> make: *** [basics.o] Error 2
> [widget:~/camlidl-1.04/tests] chris%
> In case it's helpful, an extract from the tempfile created is:
> # 1 "../tests/basics.idl"
> #pragma GCC set_debug_pwd "/Users/chris/camlidl-1.04/compiler"

This cpp-introduced #pragma is the source of the problem. Setting

CPP=cpp -traditional

in config/Makefile might help. Alternatively, if your .idl source
files do not need to be preprocessed by cpp, just pass the -nocpp flag
to camlidl.

- Xavier Leroy

(0000094)
administrator (administrator)
2004-05-12 14:41

cpp madness. Fixed 2004-05-12 by XL.

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker