c-sky / forum

C-SKY Linux 论坛,更多资料请访问 c-sky.github.io
https://c-sky.github.io
32 stars 4 forks source link

can't build from githup #4

Open sczh01 opened 7 years ago

sczh01 commented 7 years ago

make csky_gx6605s_fbcon_defconfig make

Get below Error : per website info, this error is that's GIT url changed from http to https.

[tony@gujmVM buildroot]$ make WARNING: no hash file for csky-addons-4d8cf67c57ab2d70dfb7e5908fe0e9b6199c8a71.tar.gz

csky-addons 4d8cf67c57ab2d70dfb7e5908fe0e9b6199c8a71 Extracting gzip -d -c /sde1/githup/buildroot/dl/csky-addons-"4d8cf67c57ab2d70dfb7e5908fe0e9b6199c8a71".tar.gz | tar --strip-components=1 -C /sde1/githup/buildroot/output/build/csky-addons-"4d8cf67c57ab2d70dfb7e5908fe0e9b6199c8a71" -xf - csky-addons 4d8cf67c57ab2d70dfb7e5908fe0e9b6199c8a71 Patching csky-addons 4d8cf67c57ab2d70dfb7e5908fe0e9b6199c8a71 Configuring csky-addons 4d8cf67c57ab2d70dfb7e5908fe0e9b6199c8a71 Building csky-addons 4d8cf67c57ab2d70dfb7e5908fe0e9b6199c8a71 Installing to target WARNING: no hash file for csky-arch-2b45a8c810e5d4810b3daff21ce6929e9e28f828.tar.gz csky-arch 2b45a8c810e5d4810b3daff21ce6929e9e28f828 Extracting gzip -d -c /sde1/githup/buildroot/dl/csky-arch-"2b45a8c810e5d4810b3daff21ce6929e9e28f828".tar.gz | tar --strip-components=1 -C /sde1/githup/buildroot/output/build/csky-arch-"2b45a8c810e5d4810b3daff21ce6929e9e28f828" -xf - csky-arch 2b45a8c810e5d4810b3daff21ce6929e9e28f828 Patching csky-arch 2b45a8c810e5d4810b3daff21ce6929e9e28f828 Configuring csky-arch 2b45a8c810e5d4810b3daff21ce6929e9e28f828 Building csky-arch 2b45a8c810e5d4810b3daff21ce6929e9e28f828 Installing to target linux-firmware 6d3bc8886517d171068fd1263176b8b5c51df204 Downloading Doing full clone Initialized empty Git repository in /sde1/githup/buildroot/output/build/.linux-firmware-6d3bc8886517d171068fd1263176b8b5c51df204.tar.gz.TjcbQ1/linux-firmware-6d3bc8886517d171068fd1263176b8b5c51df204/.git/ error: RPC failed; result=22, HTTP code = 405

guoren83 commented 7 years ago

The problem is from buildroot/package/linux-firmware/, buildroot's url is not stable. You can make menuconfig and deselect the linux-firmware package to build in temporary.

guoren83 commented 7 years ago

You can see buildroot/package/linux-firmware/linux-firmware.mk , it will connect to http://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git.

From my point, it's a very famous url :), isn't it?

guoren83 commented 7 years ago

csky_gx6605s_fbcon_defconfig is OK in gitlab, I tried it few minutes ago. See here:

https://gitlab.com/c-sky/buildroot/pipelines/10680451

sczh01 commented 7 years ago

Thanks,I should try gitlab version firstly.

sczh01 commented 7 years ago

I switch to gitlab, but issue is same before. Just change the http://git.... to https://git., then it can compile next action. But I still can't build the host-kmod. Below is the error info. I checked the source file "util.c", and locate the line 52 in this file, it's "assert_cc(EAGAIN == EWOULDBLOCK);", seem they can't match the below error info.

host-kmod 24 Building PATH="/sde1/githup/gitlab_buildroot/buildroot/output/host/bin:/sde1/githup/gitlab_buildroot/buildroot/output/host/sbin:/sde1/githup/gitlab_buildroot/buildroot/output/host/usr/bin:/sde1/githup/gitlab_buildroot/buildroot/output/host/usr/sbin:/home/tony/.pyenv/plugins/pyenv-virtualenv/shims:/home/tony/.pyenv/shims:/home/tony/.pyenv/bin:/usr/lib64/qt-3.3/bin:/app/local64/bin:/app/local64/java/default/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/tony/bin" PKG_CONFIG="/sde1/githup/gitlab_buildroot/buildroot/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/sde1/githup/gitlab_buildroot/buildroot/output/host/usr/lib/pkgconfig:/sde1/githup/gitlab_buildroot/buildroot/output/host/usr/share/pkgconfig" /usr/bin/make -j5 -C /sde1/githup/gitlab_buildroot/buildroot/output/build/host-kmod-24/ make[1]: Entering directory /sde1/githup/gitlab_buildroot/buildroot/output/build/host-kmod-24' /usr/bin/make --no-print-directory all-recursive Making all in . CC shared/util.lo CC tools/rmmod.o CC tools/insmod.o CC tools/modinfo.o CC tools/modprobe.o CC tools/depmod.o shared/util.c:52: error: expected identifier or ‘(’ before ‘do’ shared/util.c:52: error: expected identifier or ‘(’ before ‘while’ make[3]: *** [shared/util.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make[1]: Leaving directory/sde1/githup/gitlab_buildroot/buildroot/output/build/host-kmod-24' make: *** [/sde1/githup/gitlab_buildroot/buildroot/output/build/host-kmod-24/.stamp_built] Error 2 [tony@gujmVM buildroot]$ cd output/build/host-kmod-24/

guoren83 commented 7 years ago

You needn't try gitlab, gitlab is our test CI enviornment to prove the code is right!

Pls use github url.

guoren83 commented 7 years ago

What's sde1 filesystem format? Are you building on vfat/ntfs disk partition?

You can compile host-kmod on your PC alone, to find out why compile fail ?

From my point, Pls try ubuntu 16.04

sczh01 commented 7 years ago

sde1 is ext4. I still use the centos 6.5. its GCC version is 4.4.7.

sczh01 commented 7 years ago

Seems GCC and some lib is too old, but there are no error when I config the host-kmod.

sczh01 commented 7 years ago

Just delete this line, and then complie successfully.

guoren83 commented 7 years ago

Good