All of lore.kernel.org
 help / color / mirror / Atom feed
* [OpenRISC] Clang does not understand .word directive in crt0.S in newlib source
@ 2017-01-16 11:24 Rieger, David
  2017-01-16 13:44 ` Rieger, David
  2017-01-16 14:08 ` Jeremy Bennett
  0 siblings, 2 replies; 4+ messages in thread
From: Rieger, David @ 2017-01-16 11:24 UTC (permalink / raw)
  To: openrisc

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.

Thanks
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.librecores.org/pipermail/openrisc/attachments/20170116/d656ec45/attachment.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [OpenRISC] Clang does not understand .word directive in crt0.S in newlib source
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Rieger, David @ 2017-01-16 13:44 UTC (permalink / raw)
  To: openrisc

Replacing .word with .int did the trick.

________________________________
From: OpenRISC <openrisc-bounces@lists.librecores.org> on behalf of Rieger, David <david.rieger@student.kit.edu>
Sent: Monday, January 16, 2017 12:24 PM
To: openrisc@lists.librecores.org
Subject: [OpenRISC] Clang does not understand .word directive in crt0.S in newlib source


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.

Thanks
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.librecores.org/pipermail/openrisc/attachments/20170116/c4a8ab37/attachment.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [OpenRISC] Clang does not understand .word directive in crt0.S in newlib source
  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
  2017-01-16 15:50   ` Rieger, David
  1 sibling, 1 reply; 4+ messages in thread
From: Jeremy Bennett @ 2017-01-16 14:08 UTC (permalink / raw)
  To: openrisc

-----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-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [OpenRISC] Clang does not understand .word directive in crt0.S in newlib source
  2017-01-16 14:08 ` Jeremy Bennett
@ 2017-01-16 15:50   ` Rieger, David
  0 siblings, 0 replies; 4+ messages in thread
From: Rieger, David @ 2017-01-16 15:50 UTC (permalink / raw)
  To: openrisc

Hi Jeremy,

Good to know, thanks a lot!

David
________________________________________
From: OpenRISC <openrisc-bounces@lists.librecores.org> on behalf of Jeremy Bennett <jeremy.bennett@embecosm.com>
Sent: Monday, January 16, 2017 3:08 PM
To: openrisc@lists.librecores.org
Subject: Re: [OpenRISC] Clang does not understand .word directive in crt0.S in newlib source

-----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-----
_______________________________________________
OpenRISC mailing list
OpenRISC at lists.librecores.org
https://lists.librecores.org/listinfo/openrisc

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-16 15:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2017-01-16 15:50   ` Rieger, David

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.