[LLVMbugs] [Bug 11085] New: error in backend: expected relocatable expression when compiling objective-c header file
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Oct 7 04:23:44 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=11085
Summary: error in backend: expected relocatable expression when
compiling objective-c header file
Product: clang
Version: trunk
Platform: PC
OS/Version: OpenBSD
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sebastia at l00-bugdead-prods.de
CC: llvmbugs at cs.uiuc.edu
compiling opengroupware with llvm/clang from svn (checkout from Thursday
2011-01-06) the compilation stops the following way:
$ clang LSWSchedulerPreferences.m -c -v -integrated-as -MMD -MP -Wall -DGNUSTEP
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1
-DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fexceptions -fobjc-exceptions
-D_NATIVE_OBJC_EXCEPTIONS -fPIC -DDEBUG -fno-om>
clang version 3.0 (trunk 141278)
Target: i386-unknown-openbsd5.0
Thread model: posix
"/usr/local/bin/clang" -cc1 -triple i386-unknown-openbsd5.0 -emit-obj
-mrelax-all -disable-free -main-file-name LSWSchedulerPreferences.m -pic-level
2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases
-target-cpu i486 -target-linker-version 2.15 -momit-leaf-frame-pointer -v -g
-coverage-file obj/LSWScheduler.obj/LSWSchedulerPreferences.m.o -resource-dir
/usr/local/bin/../lib/clang/3.0 -dependency-file
obj/LSWScheduler.obj/LSWSchedulerPreferences.m.d -MT
obj/LSWScheduler.obj/LSWSchedulerPreferences.m.o -MP -D GNUSTEP -D
GNUSTEP_BASE_LIBRARY=1 -D GNU_GUI_LIBRARY=1 -D GNU_RUNTIME=1 -D
GNUSTEP_BASE_LIBRARY=1 -D _NATIVE_OBJC_EXCEPTIONS -D DEBUG -D GSWARN -D
GSDIAGNOSE -I .. -I ../.. -I ../../../Logic -I ../../../DocumentAPI -I
../../../SOPE/sope-ical -I . -I /usr/local/include -I
/opengroupware-5.5_writes_to_HOME/GNUstep/Library/Headers -I /usr/local/include
-fmodule-cache-path /var/tmp/clang-module-cache -O0 -Wall -Wall -Wno-import
-fconstant-string-class NSConstantString -ferror-limit 19 -fmessage-length 267
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fobjc-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
obj/LSWScheduler.obj/LSWSchedulerPreferences.m.o -x objective-c
LSWSchedulerPreferences.m
clang -cc1 version 3.0 based upon llvm 3.0svn hosted on i386-unknown-openbsd5.0
ignoring nonexistent directory
"/opengroupware-5.5_writes_to_HOME/GNUstep/Library/Headers"
ignoring duplicate directory "/usr/local/include"
ignoring duplicate directory "/usr/local/include"
as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
..
../..
../../../Logic
../../../DocumentAPI
../../../SOPE/sope-ical
.
/usr/local/include
/usr/local/bin/../lib/clang/3.0/include
/usr/include
End of search list.
LSWSchedulerPreferences.m:1146:3: warning: incompatible pointer types assigning
to 'NSMutableArray *' from 'NSArray *' [-Wincompatible-pointer-types]
ASSIGN(self->participants, _p);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/GNUstepBase/GNUstep.h:125:10: note: expanded from:
object = [(value) retain]; \
^ ~~~~~~~~~~~~~~~~
/usr/local/include/Foundation/NSObject.h:173:1: note: instance method 'retain'
is assumed to return an instance of its receiver type ('NSArray *')
- (id) retain NS_AUTOMATED_REFCOUNT_UNAVAILABLE;
^
LSWSchedulerPreferences.m:1162:3: warning: incompatible pointer types assigning
to 'NSMutableArray *' from 'NSArray *' [-Wincompatible-pointer-types]
ASSIGN(self->writeAccess, _p);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/GNUstepBase/GNUstep.h:125:10: note: expanded from:
object = [(value) retain]; \
^ ~~~~~~~~~~~~~~~~
/usr/local/include/Foundation/NSObject.h:173:1: note: instance method 'retain'
is assumed to return an instance of its receiver type ('NSArray *')
- (id) retain NS_AUTOMATED_REFCOUNT_UNAVAILABLE;
^
In file included from LSWSchedulerPreferences.m:125:
In file included from ./common.h:40:
In file included from ../../../Logic/LSFoundation/LSFoundation.h:31:
In file included from ../../../Logic/LSFoundation/LSSortCommand.h:25:
../../../Logic/LSFoundation/LSBaseCommand.h:165:13: warning: unused function
'LSCommandSet' [-Wunused-function]
static void LSCommandSet(LSBaseCommand *_cmd, NSString *_argument, id _value) {
^
../../../Logic/LSFoundation/LSBaseCommand.h:168:11: warning: unused function
'LSCommandGet' [-Wunused-function]
static id LSCommandGet(LSBaseCommand *_cmd, NSString *_argument) {
^
../../../Logic/LSFoundation/LSBaseCommand.h:172:11: warning: unused function
'LSCommandLookup' [-Wunused-function]
static id LSCommandLookup(id _factory, NSString *_domain, NSString *_command) {
^
fatal error: error in backend: expected relocatable expression
also without the -integrated-as, the same problem.
the file I want to compile is this:
http://opengroupware.hg.sourceforge.net/hgweb/opengroupware/opengroupware/file/a1b46fe89065/opengroupware/Logic/LSFoundation/LSBaseCommand.h
--
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