All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Bennett <jeremy.bennett@embecosm.com>
To: openrisc@lists.librecores.org
Subject: [OpenRISC] Clang does not understand .word directive in crt0.S in newlib source
Date: Mon, 16 Jan 2017 14:08:39 +0000	[thread overview]
Message-ID: <8952702f-a3f2-d170-56b8-e74e14a439b3@embecosm.com> (raw)
In-Reply-To: <bc71a06a3bf94b40b2adcdc8f816199f@kit-msx-25.kit.edu>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 16/01/17 11:24, Rieger, David wrote:
> Hello everyone
> 
> I am trying to compile newlib using clang/LLVM 3.8.1 with the or1k 
> target. However, compilation fails on
> newlib-source/libgloss/or1k/crt0.S with clang complaining it does
> not know the ".word" assembler directive:
> 
> ../newlib-source/libgloss/or1k/crt0.S:83:19: error: unknown
> directive _or1k_stack_size: .word 8192 ^ 
> ../newlib-source/libgloss/or1k/crt0.S:84:29: error: unknown
> directive _or1k_exception_stack_size: .word 8192
> 
> Any help in how I can fix this so clang compiles the file would be 
> greatly appreciated.

Hi David,

Looks like your assembler is broken. One option is to not use the
integrated assembler, but instead use the standalone assembler from
the GNU tool chain.

Rather than using .int as in your following message, you might like to
use .2byte or .4byte which are more explicit about their exact meaning.

HTH,


Jeremy

> 
> Thanks David
> 
> 
> 
> _______________________________________________ OpenRISC mailing
> list OpenRISC at lists.librecores.org 
> https://lists.librecores.org/listinfo/openrisc
> 


- -- 
Tel:     +44 (1590) 610184
Cell:    +44 (7970) 676050
SkypeID: jeremybennett
Twitter: @jeremypbennett
Email:   jeremy.bennett at embecosm.com
Web:     www.embecosm.com
PGP key: 1024D/BEF58172FB4754E1 2009-03-20
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlh80+cACgkQvvWBcvtHVOGEzgCdGgCz8sgYXSwvaFhzNwyN7qaH
TK0AoIYilwmJVT2vs5utnBoHsRWSHLeA
=+eDh
-----END PGP SIGNATURE-----

  parent reply	other threads:[~2017-01-16 14:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-16 11:24 [OpenRISC] Clang does not understand .word directive in crt0.S in newlib source Rieger, David
2017-01-16 13:44 ` Rieger, David
2017-01-16 14:08 ` Jeremy Bennett [this message]
2017-01-16 15:50   ` Rieger, David

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8952702f-a3f2-d170-56b8-e74e14a439b3@embecosm.com \
    --to=jeremy.bennett@embecosm.com \
    --cc=openrisc@lists.librecores.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.