[LLVMbugs] [Bug 4087] New: Headers for libffi not found in lib/ExecutionEngine/ Interpreter

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Apr 27 01:05:54 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4087

           Summary: Headers for libffi not found in
                    lib/ExecutionEngine/Interpreter
           Product: Build scripts
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Makefiles
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: magnus.reftel at gmail.com
                CC: llvmbugs at cs.uiuc.edu


I have libffi installed in a non-standard location (and set CFLAGS to let gcc
search there before running configure), but ExternalFunctions.cpp in
lib/ExecutionEngine/Interpreter does not find ffi.h:

make[2]: Entering directory `/c/temp/llvm-svn/lib/ExecutionEngine'
llvm[2]: Compiling ExecutionEngine.cpp for Release build 
llvm[2]: Compiling ExecutionEngineBindings.cpp for Release build 
llvm[2]: Linking Release Object Library LLVMExecutionEngine.o
make[3]: Entering directory `/c/temp/llvm-svn/lib/ExecutionEngine/Interpreter'
llvm[3]: Compiling Execution.cpp for Release build 
llvm[3]: Compiling ExternalFunctions.cpp for Release build 
ExternalFunctions.cpp:38:17: ffi.h: No such file or directory

my CFLAGS is

$ echo $CFLAGS 
-I/opt/llvm-svn/lib/libffi-3.0.8/include/

and the contents of that directory are:

$ ls /opt/llvm-svn/lib/libffi-3.0.8/include/
ffi.h  ffitarget.h

The CFLAGS was picked up by configure according to config.status:

$ ./config.status  --version
llvm config.status 2.6svn
configured by ./configure, generated by GNU Autoconf 2.60,
  with options "'--prefix=/opt/llvm-svn' '--enable-optimized' 'CC=gcc-4'
'CFLAGS=-I/opt/llvm-svn/lib/libffi-3.0.8/include/'
'LDFLAGS=-L/opt/llvm-svn/lib/'"

Copyright (C) 2006 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.

I did not have this problem with llvm-2.5. The revision I'm at now is 70196:

$ svn info
Path: .
URL: http://llvm.org/svn/llvm-project/llvm/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 70196
Node Kind: directory
Schedule: normal
Last Changed Author: nicholas
Last Changed Rev: 70185
Last Changed Date: 2009-04-27 07:09:44 +0200 (Mon, 27 Apr 2009)

I'm running cygwin on Windows Vista.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list