gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clang ASM problems


From: Luboš Doležel
Subject: Re: clang ASM problems
Date: Mon, 20 Jul 2015 14:52:08 +0200
User-agent: Roundcube Webmail/1.0.5

Dne 20.7.2015 14:41, Riccardo Mottola napsal:
Hi,

I am on Debian/PPC and have a setup where all my core gnustep is
compiled with GCC and works fine.

I need to build an application with clang. I thus installed clang from
debian, which gave me ver. 3.5

Do you think it is feasible to just build an application against the
existing gnustep by issuing:
make CC=clang

It doesn't work for me, getting strange low-level assembler errors:

 Compiling file AppController.m ...
/tmp/AppController-7981cc.s: Assembler messages:
/tmp/AppController-7981cc.s:17504: Error: Missing symbol name in directive
/tmp/AppController-7981cc.s:17504: Error: unrecognized symbol type
".objc_sel_nameisEqualToString"
/tmp/AppController-7981cc.s:17504: Error: junk at end of line, first
unrecognized character is `:'

<...> the above repeated dozens of times and ending with:

/tmp/AppController-7981cc.s:18629: Error: unexpected `"' in expression
/tmp/AppController-7981cc.s:18635: Error: unexpected `"' in expression
/tmp/AppController-7981cc.s:18637: Error: unexpected `"' in expression
/tmp/AppController-7981cc.s:18639: Error: unexpected `"' in expression
clang: error: assembler command failed with exit code 1 (use -v to see
invocation)


Is it a problem given mixing compiler of the application vs.
framework? I hope not and that mixing can be done.
Clang doesn't work on ppc properly? or some sort of binutils incompatibility?

I'm puzzled


Riccardo

I remember working around similar issues by adding " -integrated-as" into CFLAGS.
It seems clang's output isn't always well understood by GCC's as.

--
Luboš Doležel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]