hnwyllmm 发表于 2015-12-10 12:51 static/image/common/back.gif
回复 9# prc
github.com/zeromq/zeromq4-1(抱歉没有URL权限)
这是官方版本的下载地址,但是我自己测试 ...
更新一下codeless的代码,在zeromq4.1上是没问题的;4.04由于没有代码就没试。 本帖最后由 shihyu 于 2015-12-19 23:13 编辑
测试 linux-2.6.32.69
make defconfig
../codeless/y-Make --yz-cc=gcc --yz-postprocess=clfunction gcc()
{
/home/shihyu/github/codeless/cl.exe --yz-no-output --yz-save-dep=/home/shihyu/github/linux-2.6.32.69/cl/depends.txt --yz-save-cl=/home/shihyu/github/linux-2.6.32.69/cl/commands.txt --yz-save-condvals=/home/shihyu/github/linux-2.6.32.69/cl/condvals.txt --yz-top-dir=/home/shihyu/github/linux-2.6.32.69 --yz-cc=gcc --yz-verbose=0 "$@" || return $?
/usr/bin/gcc $*
}
function g++()
{
/home/shihyu/github/codeless/cl.exe --yz-no-output --yz-save-dep=/home/shihyu/github/linux-2.6.32.69/cl/depends.txt --yz-save-cl=/home/shihyu/github/linux-2.6.32.69/cl/commands.txt --yz-save-condvals=/home/shihyu/github/linux-2.6.32.69/cl/condvals.txt --yz-top-dir=/home/shihyu/github/linux-2.6.32.69 --yz-cc=gcc --yz-verbose=0 "$@" || return $?
/usr/bin/g++ $*
}
export -f gcc g++
/usr/bin/make SHELL=bash
bash: line 1: 13811 Segmentation fault (core dumped) /home/shihyu/github/codeless/cl.exe --yz-no-output --yz-save-dep=/home/shihyu/github/linux-2.6.32.69/cl/depends.txt --yz-save-cl=/home/shihyu/github/linux-2.6.32.69/cl/commands.txt --yz-save-condvals=/home/shihyu/github/linux-2.6.32.69/cl/condvals.txt --yz-top-dir=/home/shihyu/github/linux-2.6.32.69 --yz-cc=gcc --yz-verbose=0 "$@"
HOSTCCscripts/kconfig/conf.o
bash: line 1: 13907 Segmentation fault (core dumped) /home/shihyu/github/codeless/cl.exe --yz-no-output --yz-save-dep=/home/shihyu/github/linux-2.6.32.69/cl/depends.txt --yz-save-cl=/home/shihyu/github/linux-2.6.32.69/cl/commands.txt --yz-save-condvals=/home/shihyu/github/linux-2.6.32.69/cl/condvals.txt --yz-top-dir=/home/shihyu/github/linux-2.6.32.69 --yz-cc=gcc --yz-verbose=0 "$@"
make: *** Error 139
make: *** Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.Stop 回复 12# shihyu
bug已修复,请更新代码
本帖最后由 shihyu 于 2015-12-23 22:49 编辑
还是一样错误讯息xd 楼主,我这里也是同样的BUG
hnwyllmm@ubuntu:~/linux-2.6.32.63$ uname -a
Linux ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
使用的是Ubuntu 14.04 Server版
hnwyllmm@ubuntu:~/linux-2.6.32.63$ file core
core: ELF 64-bit LSBcore file x86-64, version 1 (SYSV), SVR4-style, from '/home/hnwyllmm/codeless/cl.exe --yz-no-output --yz-save-dep=/home/hnwyllmm/linu'hnwyllmm@ubuntu:~/linux-2.6.32.63$ gdb ../codeless/cl.exe core
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
>.
Find the GDB manual and other documentation resources online at:
<>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ../codeless/cl.exe...done.
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/home/hnwyllmm/codeless/cl.exe --yz-no-output --yz-save-dep=/home/hnwyllmm/linu'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0__GI___pthread_mutex_lock (mutex=0x0) at ../nptl/pthread_mutex_lock.c:66
66 ../nptl/pthread_mutex_lock.c: No such file or directory.
(gdb) bt
#0__GI___pthread_mutex_lock (mutex=0x0) at ../nptl/pthread_mutex_lock.c:66
#10x0000000000416fe1 in ipsc_acc_bytes (sc=0x0, index=0, val=512) at ../common/ip_sc.c:54
#20x0000000000404066 in OsFileWriter::Write (this=0x12b1400, buf=0x12b1c18, count=<optimized out>) at FileWriter.cpp:106
#30x0000000000402d8f in save_command_line (filename=..., my_args=..., cc_args=..., host_cc=...) at startup.cpp:86
#4main (argc=<optimized out>, argv=<optimized out>) at startup.cpp:215
(gdb) (gdb) f 1
#10x0000000000416fe1 in ipsc_acc_bytes (sc=0x0, index=0, val=512) at ../common/ip_sc.c:54
54 pthread_mutex_lock(&sc->lock);
(gdb) info local
No locals.
(gdb) info reg
rax 0x0 0
rbx 0x0 0
rcx 0xffffffffffffffff -1
rdx 0x200 512
rsi 0x0 0
rdi 0x0 0
rbp 0x200 0x200
rsp 0x7fff0d77cf00 0x7fff0d77cf00
r8 0x0 0
r9 0x1 1
r10 0x7fff0d77ccc0 140733419343040
r11 0x2b3edc166410 47548980421648
r12 0x0 0
r13 0x12b1c18 19602456
r14 0x0 0
r15 0x0 0
rip 0x416fe1 0x416fe1 <ipsc_acc_bytes+17>
eflags 0x10206[ PF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb) useful, thx 回复 14# shihyu
能把core和cl.exe发过来吗
ijkxyz@msn.com
回复 15# hnwyllmm
请更新代码
linux-2.6.32.69可以
可是測試 linux-4.3.3 會失敗../codeless/y-Make --yz-cc=gcc --yz-postprocess=cl
function gcc()
{
/home/shihyu/github/codeless/cl.exe --yz-no-output --yz-save-dep=/home/shihyu/github/linux-4.3.3/cl/depends.txt --yz-save-cl=/home/shihyu/github/linux-4.3.3/cl/commands.txt --yz-save-condvals=/home/shihyu/github/linux-4.3.3/cl/condvals.txt --yz-top-dir=/home/shihyu/github/linux-4.3.3 --yz-cc=gcc --yz-verbose=0 "$@" || return $?
/usr/bin/gcc $*
}
function g++()
{
/home/shihyu/github/codeless/cl.exe --yz-no-output --yz-save-dep=/home/shihyu/github/linux-4.3.3/cl/depends.txt --yz-save-cl=/home/shihyu/github/linux-4.3.3/cl/commands.txt --yz-save-condvals=/home/shihyu/github/linux-4.3.3/cl/condvals.txt --yz-top-dir=/home/shihyu/github/linux-4.3.3 --yz-cc=gcc --yz-verbose=0 "$@" || return $?
/usr/bin/g++ $*
}
export -f gcc g++
/usr/bin/make SHELL=bash
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CC arch/x86/kernel/asm-offsets.s
include/asm-generic/pgtable.h:12
./arch/x86/include/asm/pgtable.h:884
include/linux/mm.h:55
include/linux/suspend.h:8
arch/x86/kernel/asm-offsets.c:12
defined following -
make: *** Error 120
make: *** Error 2 回复 19# shihyu
已修复
页:
1
[2]