Re: Tool Suite Build Failed - machine 'arm64-apple' not recognized

2022-04-19 Thread Karel Gardas

On 4/19/22 19:13, Cedric Berger wrote:
Yeah, you're right: I patched GMP because I first tried to build the 
toolchain on aarch64-mac. Both patches were definitely needed for that.




Just verified what's needed on x64 catalina 10.15.7/darwin 19.6.0 and 
indeed, *only* expat patch is needed for x64 platform which means gmp 
6.1.0 probably suffers from the same issue like expat not recognizing 
aarch64-darwin properly and as you confirm 6.2.1 should fix this...


Karel





Cedric


On 19.04.22 17:50, Alan Cudmore wrote:


Karel Gardas just submitted patches this morning to upgrade expat to 
work on 64 bit Arm.


A couple of months ago, I was able to build an RTEMS toolchain on 
aarch64 Linux with just an expat upgrade. I was not aware that GMP was 
needed as well.


Alan

*From: *Cedric Berger <mailto:ced...@precidata.com>
*Sent: *Tuesday, April 19, 2022 11:23 AM
*To: *Jay Zhu <mailto:jing...@usc.edu>; devel@rtems.org
*Subject: *Re: Tool Suite Build Failed - machine 'arm64-apple' not 
recognized


Hello,

On 10.04.22 20:37, Jay Zhu wrote:

> Hi,

> I am a student new to RTEMS and trying to get my first lines to run. 
When following the quick-start guide, I was stuck in Install Tool 
Suite procedure. Using this command:


> ../source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/6 
6/rtems-sparc


> The output was:

>

> error: building expat-2.1.0-arm64-apple-darwin21.4.0-1

> Build FAILED

>    See error report: 
rsb-report-expat-2.1.0-arm64-apple-darwin21.4.0-1.txt


>

> Then I lookup the log file, in which the errors are:

>

> Invalid configuration `arm64-apple-darwin21.4.0': machine 
`arm64-apple' not recognized


> configure: error: /bin/sh conftools/config.sub 
arm64-apple-darwin21.4.0 failed


> checking build system type...

> checking build system type...

> shell cmd failed: /bin/sh -ex 
/Users/Jay/quick-start/src/rsb/rtems/build/expat-2.1.0-arm64-apple-darwin21.4.0-1/do-build 



> error: building expat-2.1.0-arm64-apple-darwin21.4.0-1

>

> Can you kindly tell me how can I fix this?

I can't help you fix this, but I've successfully built 6/rtems-arm tools

+ BSP on a M1 Mac using multipass. basically:

1) create the ubuntu VM: "multipass launch -n u2004 -c 6 -d 16G -m 4G 
20.04"


2) create a shared folder: "multipass mount /opt/vm/rtems

u2004:/opt/vm/rtems"

3) upgrade expat to 2.4.8 and gmp to 6.2.1

4) before building, specify "ulimit -n 4096" on the linux VM otherwise

GCC will fail to link with incomprehensible error.

Cedric

___

devel mailing list

devel@rtems.org

http://lists.rtems.org/mailman/listinfo/devel


___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: Tool Suite Build Failed - machine 'arm64-apple' not recognized

2022-04-19 Thread Cedric Berger
Yeah, you're right: I patched GMP because I first tried to build the 
toolchain on aarch64-mac. Both patches were definitely needed for that.


Cedric


On 19.04.22 17:50, Alan Cudmore wrote:


Karel Gardas just submitted patches this morning to upgrade expat to 
work on 64 bit Arm.


A couple of months ago, I was able to build an RTEMS toolchain on 
aarch64 Linux with just an expat upgrade. I was not aware that GMP was 
needed as well.


Alan

*From: *Cedric Berger <mailto:ced...@precidata.com>
*Sent: *Tuesday, April 19, 2022 11:23 AM
*To: *Jay Zhu <mailto:jing...@usc.edu>; devel@rtems.org
*Subject: *Re: Tool Suite Build Failed - machine 'arm64-apple' not 
recognized


Hello,

On 10.04.22 20:37, Jay Zhu wrote:

> Hi,

> I am a student new to RTEMS and trying to get my first lines to run. 
When following the quick-start guide, I was stuck in Install Tool 
Suite procedure. Using this command:


> ../source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/6 
6/rtems-sparc


> The output was:

>

> error: building expat-2.1.0-arm64-apple-darwin21.4.0-1

> Build FAILED

>    See error report: 
rsb-report-expat-2.1.0-arm64-apple-darwin21.4.0-1.txt


>

> Then I lookup the log file, in which the errors are:

>

> Invalid configuration `arm64-apple-darwin21.4.0': machine 
`arm64-apple' not recognized


> configure: error: /bin/sh conftools/config.sub 
arm64-apple-darwin21.4.0 failed


> checking build system type...

> checking build system type...

> shell cmd failed: /bin/sh -ex 
/Users/Jay/quick-start/src/rsb/rtems/build/expat-2.1.0-arm64-apple-darwin21.4.0-1/do-build


> error: building expat-2.1.0-arm64-apple-darwin21.4.0-1

>

> Can you kindly tell me how can I fix this?

I can't help you fix this, but I've successfully built 6/rtems-arm tools

+ BSP on a M1 Mac using multipass. basically:

1) create the ubuntu VM: "multipass launch -n u2004 -c 6 -d 16G -m 4G 
20.04"


2) create a shared folder: "multipass mount /opt/vm/rtems

u2004:/opt/vm/rtems"

3) upgrade expat to 2.4.8 and gmp to 6.2.1

4) before building, specify "ulimit -n 4096" on the linux VM otherwise

GCC will fail to link with incomprehensible error.

Cedric

___

devel mailing list

devel@rtems.org

http://lists.rtems.org/mailman/listinfo/devel


___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: Tool Suite Build Failed - machine 'arm64-apple' not recognized

2022-04-19 Thread Joel Sherrill
On Tue, Apr 19, 2022 at 10:23 AM Cedric Berger  wrote:

> Hello,
>
> On 10.04.22 20:37, Jay Zhu wrote:
> > Hi,
> > I am a student new to RTEMS and trying to get my first lines to run.
> When following the quick-start guide, I was stuck in Install Tool Suite
> procedure. Using this command:
> > ../source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/6
> 6/rtems-sparc
> > The output was:
> >
> > error: building expat-2.1.0-arm64-apple-darwin21.4.0-1
> > Build FAILED
> >See error report:
> rsb-report-expat-2.1.0-arm64-apple-darwin21.4.0-1.txt
> >
> > Then I lookup the log file, in which the errors are:
> >
> > Invalid configuration `arm64-apple-darwin21.4.0': machine `arm64-apple'
> not recognized
> > configure: error: /bin/sh conftools/config.sub arm64-apple-darwin21.4.0
> failed
> > checking build system type...
> > checking build system type...
> > shell cmd failed: /bin/sh -ex
> /Users/Jay/quick-start/src/rsb/rtems/build/expat-2.1.0-arm64-apple-darwin21.4.0-1/do-build
> > error: building expat-2.1.0-arm64-apple-darwin21.4.0-1
> >
> > Can you kindly tell me how can I fix this?
>

Download the latest expat source by itself and try to build it. Looks like
they have a release in March. Maybe that adds  arm64-apple-darwin as a
known target.

If that works, we just need to bump the expat version in the RSB.

Building with Ubuntu always side steps issues. :)

>
> I can't help you fix this, but I've successfully built 6/rtems-arm tools
> + BSP on a M1 Mac using multipass. basically:
>
> 1) create the ubuntu VM: "multipass launch -n u2004 -c 6 -d 16G -m 4G
> 20.04"
>
> 2) create a shared folder: "multipass mount /opt/vm/rtems
> u2004:/opt/vm/rtems"
>
> 3) upgrade expat to 2.4.8 and gmp to 6.2.1
>
> 4) before building, specify "ulimit -n 4096" on the linux VM otherwise
> GCC will fail to link with incomprehensible error.
>
> Cedric
>
>
>
> ___
> devel mailing list
> devel@rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: Tool Suite Build Failed - machine 'arm64-apple' not recognized

2022-04-19 Thread Cedric Berger

Hello,

On 10.04.22 20:37, Jay Zhu wrote:

Hi,
I am a student new to RTEMS and trying to get my first lines to run. When 
following the quick-start guide, I was stuck in Install Tool Suite procedure. 
Using this command:
../source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/6 
6/rtems-sparc
The output was:

error: building expat-2.1.0-arm64-apple-darwin21.4.0-1
Build FAILED
   See error report: rsb-report-expat-2.1.0-arm64-apple-darwin21.4.0-1.txt

Then I lookup the log file, in which the errors are:

Invalid configuration `arm64-apple-darwin21.4.0': machine `arm64-apple' not 
recognized
configure: error: /bin/sh conftools/config.sub arm64-apple-darwin21.4.0 failed
checking build system type...
checking build system type...
shell cmd failed: /bin/sh -ex  
/Users/Jay/quick-start/src/rsb/rtems/build/expat-2.1.0-arm64-apple-darwin21.4.0-1/do-build
error: building expat-2.1.0-arm64-apple-darwin21.4.0-1

Can you kindly tell me how can I fix this?


I can't help you fix this, but I've successfully built 6/rtems-arm tools 
+ BSP on a M1 Mac using multipass. basically:


1) create the ubuntu VM: "multipass launch -n u2004 -c 6 -d 16G -m 4G 20.04"

2) create a shared folder: "multipass mount /opt/vm/rtems 
u2004:/opt/vm/rtems"


3) upgrade expat to 2.4.8 and gmp to 6.2.1

4) before building, specify "ulimit -n 4096" on the linux VM otherwise 
GCC will fail to link with incomprehensible error.


Cedric



___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: Tool Suite Build Failed - machine 'arm64-apple' not recognized

2022-04-10 Thread Chris Johns
On 11/4/2022 4:37 am, Jay Zhu wrote:
> Hi,
> I am a student new to RTEMS and trying to get my first lines to run. When 
> following the quick-start guide, I was stuck in Install Tool Suite procedure. 
> Using this command:
> ../source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/6 
> 6/rtems-sparc
> The output was:
> 
> error: building expat-2.1.0-arm64-apple-darwin21.4.0-1
> Build FAILED
>   See error report: rsb-report-expat-2.1.0-arm64-apple-darwin21.4.0-1.txt
> 
> Then I lookup the log file, in which the errors are:
> 
> Invalid configuration `arm64-apple-darwin21.4.0': machine `arm64-apple' not 
> recognized
> configure: error: /bin/sh conftools/config.sub arm64-apple-darwin21.4.0 failed
> checking build system type... 
> checking build system type... 
> shell cmd failed: /bin/sh -ex  
> /Users/Jay/quick-start/src/rsb/rtems/build/expat-2.1.0-arm64-apple-darwin21.4.0-1/do-build
> error: building expat-2.1.0-arm64-apple-darwin21.4.0-1
> 
> Can you kindly tell me how can I fix this?

I suspect we will need a later version of expat that has the aarch64 support. I
do not have access access to an M1 Mac so I cannot test this.

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: Tool Suite Build Failed - machine 'arm64-apple' not recognized

2022-04-10 Thread Jay Zhu
I’ve attached the log if that helps

> On Apr 10, 2022, at 11:37 AM, Jay Zhu  wrote:
> 
> Jay

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel