UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
1,251 Views
Registered: ‎10-29-2018

Instructions for building newlib in XSDK 2018.2

Jump to solution

Can you provide instructions on how to build newlib library in XSDK 2018.2?

 

Best Regards

Gaute

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
1,031 Views
Registered: ‎04-05-2017

Re: Instructions for building newlib in XSDK 2018.2

Jump to solution

Please follow the below steps for building newlib with Linaro ABE script

1.Download ABE sources https://git.linaro.org/toolchain/abe.git/log/?h=abe

 2.untar it and run the configure script

 ./configure --with-local-snapshots= [PATH_TO_NEWLIB_TAR_FILE]

 You may end up with configure errors, It will report the prerequisite Binaries.

 3.run abe.sh and you need specify the resource name that you want to build [newlib or gcc ..]

 ./abe.sh --target arm-none-eabi --disable make_docs --set makeflags="CFLAGS="-O2" CXXFLAGS="-O2"" --build newlib

 

View solution in original post

9 Replies
Xilinx Employee
Xilinx Employee
1,198 Views
Registered: ‎07-12-2018

Re: Instructions for building newlib in XSDK 2018.2

Jump to solution

HI @gaute.nilsson,

 

Please refer 

 

https://www.xilinx.com/html_docs/xilinx2018_2/SDK_Doc/SDK_tasks/sdk_t_create_new_libproj.html

 

 

Best Regards

Abhinay PS

 ----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

Best Regards
Abhinay PS
------------------------------------------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give kudos to a post which you think is helpful and reply oriented.
-------------------------------------------------------------------------------------------------------------------------------

0 Kudos
1,196 Views
Registered: ‎10-29-2018

Re: Instructions for building newlib in XSDK 2018.2

Jump to solution

Hello @abhinayp.

 

Unfortunately, this is not what I want.

 

What I need is instructions on how to recompile newlib 2.4.0 which is shipped with XSDK 2018.2.

That will be parameters to invoke the ./configure script for newlib, as well as relevant environment variables.

The reason I need this is because I need to modify some options in the library.

 

Best regards,

Gaute

0 Kudos
Moderator
Moderator
1,175 Views
Registered: ‎08-20-2018

Re: Instructions for building newlib in XSDK 2018.2

Jump to solution

Hi @gaute.nilsson

 

  1. You need to first compile the newlib --> configure here as per newlib readme
  2.  Include pre-built library to petalinux rootfs

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_2/ug1144-petalinux-tools-reference-guide.pdf 

 

3. Then in XSDK, you can include libraries and write your application

https://www.xilinx.com/html_docs/xilinx2018_2/SDK_Doc/SDK_tasks/sdk_t_proj_libraries.html?hl=library

 

Best Regards,

Nutan

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Moderator
Moderator
1,170 Views
Registered: ‎08-20-2018

Re: Instructions for building newlib in XSDK 2018.2

Jump to solution

Hi @gaute.nilsson

 

https://github.com/Xilinx/newlib

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
1,163 Views
Registered: ‎10-29-2018

Re: Instructions for building newlib in XSDK 2018.2

Jump to solution

Hi @nutang

What are the exact command line options Xilinx have used to build newlib for the arm-none-eabi target, used in XSDK 2018.2?

And what branch/tag have been used in the https://github.com/Xilinx/newlib repository?

0 Kudos
Xilinx Employee
Xilinx Employee
1,145 Views
Registered: ‎11-02-2011

Re: Instructions for building newlib in XSDK 2018.2

Jump to solution

Hi,

 

We use Linaro ABE to build the newlib.

For more details go through this link: https://wiki.linaro.org/ABE site.

0 Kudos
Scholar ericv
Scholar
1,133 Views
Registered: ‎04-13-2015

Re: Instructions for building newlib in XSDK 2018.2

Jump to solution

@gaute.nilsson

 

This may help as I've rebuilt Newlib.

I am not aware how configure can be used with SDK.

You should first run configure on a *NIX machine.

Make sure to override the default assembler /  compiler / archiver used with the --program-prefix=PREFIX and --program-suffix=SUFFIX  to match SDK's assembler /  compiler / archiver tools.

Set all the config options you want plus the 2 above and run configure.

Then create a project in your workspace and copy everything in there.

Make sure to disable the make auto generation and set the build command to make -f Makefile

 

I did not rebuild it with SDK, but on *NIX, and still...

I got hit a few snafus with tools I did not have on my machine.

 

Regards

0 Kudos
1,093 Views
Registered: ‎10-29-2018

Re: Instructions for building newlib in XSDK 2018.2

Jump to solution

@nmekala

I am able to build newlib in multiple ways, but I need to know exactly how Xilinx has built it.

We have done all our testing in the current version of newlib which is shipped in XSDK 2018.2.

Therefore it is crucial to us that a recompiled version of newlib is as close to this as possible.

I want to change only one build parameter and keep everything else the same as before.

 

Can you give some more info on how you set up ABE, and which repositories/release versions you use?

 

0 Kudos
Xilinx Employee
Xilinx Employee
1,032 Views
Registered: ‎04-05-2017

Re: Instructions for building newlib in XSDK 2018.2

Jump to solution

Please follow the below steps for building newlib with Linaro ABE script

1.Download ABE sources https://git.linaro.org/toolchain/abe.git/log/?h=abe

 2.untar it and run the configure script

 ./configure --with-local-snapshots= [PATH_TO_NEWLIB_TAR_FILE]

 You may end up with configure errors, It will report the prerequisite Binaries.

 3.run abe.sh and you need specify the resource name that you want to build [newlib or gcc ..]

 ./abe.sh --target arm-none-eabi --disable make_docs --set makeflags="CFLAGS="-O2" CXXFLAGS="-O2"" --build newlib

 

View solution in original post