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

Re: sysroot not supported in gcc-sh4-cross package

Hi Mr.Nobuhiro,

To try out the --sysroot support correctly. I confirm and rebuild my cross
toolchain as below condition.
Host machine: x86-64 Ubuntu 9.10
Target CPU: SH4

Build steps:
1. export -n ARCH=sh4  # set and do not export to invoked commands
2. apt-get source binutils
3. download patch from
4. cd {binutils dir}
5. export TARGET=$(dpkg-architecture -a$ARCH -qDEB_HOST_GNU_TYPE 2>
6. BUILD_SYSROOT=/usr fakeroot debian/rules binary-cross > ../binutils.build
2>&1 || echo 'Build error'
7. unset TARGET
8. cd ..

The compilation result is failed. Error message as below ---
checking for x86_64-linux-gnu-gcc... gcc
checking for C compiler default output file name... 
configure: error: in
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[2]: *** [configure-opcodes] Error 1
make[2]: Leaving directory
make[1]: *** [all] Error 2
make[1]: Leaving directory
make: *** [build-sh4-linux-gnu-stamp] Error 2

Does any specific setting require for x86-64 host system?


http://old.nabble.com/file/p28287954/binutils.build binutils.build 

http://old.nabble.com/file/p28287954/binutils.build binutils.build 

Nobuhiro Iwamatsu wrote:
> Hi,
> 2010/4/19 Jordan Pan <pan.jordan@gmail.com>:
>> Hi Hector,
>> Thanks for your help. I've find out the key work of "WITH_SYSROOT" needed
>> for binutils and gcc. So I should rebuild a new cross toolchain for Sh4.
>> However, look at the internet resources for the building step, I could
>> not
>> find how to receive the necessary pack as below lines,
>> $ dpkg-cross -a <debian_arch> -b linux-libc-dev_XXX_<debian_arch>.deb
>> $ dpkg-cross -a <debian_arch> -b libc6_XXX_<debian_arch>.deb
>> $ dpkg-cross -a <debian_arch> -b libc6-dev_XXX_<debian_arch>.deb
>> # You can also try to get this packages with apt-cross tool.
>> Do you know where could I find those debian packages? or you know how to
>> build it from scratch for Sh4?
> You can find from debian-ports.org.
> Best regards,
>   Nobuhiro
> -- 
> Nobuhiro Iwamatsu
>    iwamatsu at {nigauri.org / debian.org}
>    GPG ID: 40AD1FA6
> -- 
> To UNSUBSCRIBE, email to debian-superh-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> Archive:
> [🔎] i2g29ab51dc1004182252w2db906fbm704536a84f640203@mail.gmail.com">http://lists.debian.org/[🔎] i2g29ab51dc1004182252w2db906fbm704536a84f640203@mail.gmail.com

View this message in context: http://old.nabble.com/sysroot-not-supported-in-gcc-sh4-cross-package-tp28280677p28287954.html
Sent from the debian-superh mailing list archive at Nabble.com.

Reply to: