Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to compile uclibc-ng abiv1 toolchain in Ubuntu Xenial chroot #3

Open
ioerror opened this issue Apr 16, 2020 · 7 comments
Open

Comments

@ioerror
Copy link

ioerror commented Apr 16, 2020

I attempted to build the toolchain using an Ubuntu Xenial chroot configured as follows:

sudo apt install -y debootstrap
debootstrap xenial xenial-chroot
sudo chroot xenial-chroot add-apt-repository universe
sudo chroot xenial-chroot apt update
sudo chroot xenial-chroot apt install -y build-essential wget unzip bc git
sudo chroot xenial-chroot apt install -y texinfo bison flex libgmp-dev libmpfr-dev libmpc-dev
sudo chroot xenial-choot
# Inside Xenial chroot
git clone https://github.com/c-sky/toolchain-build
cd toolchain-build

As with #2, I have the same mklink issue when running init:

./build-csky-gcc.py --abi=abiv2 --tos=linux --libc=uclibc-ng --init

Building is sucessful with the following command until the uclibc-ng component:

./build-csky-gcc.py --abi=abiv2 --tos=linux --libc=uclibc-ng

The final component uclibc-ng fails to build with the following error:

====> start building component 'uclibc-ng' ... ...

--> multilib option: ('mlittle-endian', 'mfloat-abi=soft', 'mno-stm', 'mpic', 'mcpu=ck610f')
  MKDIR include/config
  MKDIR include/generated
  HOSTCC-o extra/config/conf.o
  GEN extra/config/zconf.tab.c
  GEN extra/config/zconf.lex.c
  GEN extra/config/zconf.hash.c
  HOSTCC-o extra/config/zconf.tab.o
  HOSTCC extra/config/conf
***
*** Can't find default configuration "extra/Configs/defconfigs/csky/ck610_le_defconfig"!
***
Makefile.in:509: recipe for target 'ck610_le_defconfig' failed

--> start error output

error code: 2
make: *** [ck610_le_defconfig] Error 1

<-- end error output

exec command: export PATH=/root/toolchain-build/install-csky-linux-uclibcabiv1-uclibc-ng/bin/:$PATH;make ARCH=csky ck610_le_defconfig
@bkzshabbaz
Copy link

Did you ever get this resolved? Is this repo no longer being maintained? That defconfig is not available anywhere.

@guoren83
Copy link
Member

@rjiejie Please have a look.

@ioerror
Copy link
Author

ioerror commented Jul 30, 2022

No, I did not find a solution to this issue.

@darhaywa
Copy link

I've got the same problem running
./build-csky-gcc.py --abi=abiv1 --tos=linux --libc=uclibc-ng
Did this ever progress?

@guoren83
Copy link
Member

guoren83 commented Feb 15, 2023 via email

@darhaywa
Copy link

I've yet to learn this python script. My colleagues could help. F.Y.I @.***

The script is working fine, although it requires python 2 without modification. The problem is when it comes to building uclibc-ng, it's failing because of this

***
*** Can't find default configuration "extra/Configs/defconfigs/csky/ck610_le_defconfig"!
***
Makefile.in:509: recipe for target 'ck610_le_defconfig' failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@ioerror @bkzshabbaz @guoren83 @darhaywa and others