龙芯开源社区

 找回密码
 注册新用户(newuser)
查看: 2448|回复: 1

C compiler cannot create executables

[复制链接]
发表于 2009-12-30 15:12:08 | 显示全部楼层 |阅读模式
弄n32系统时出的
---------Coreutils-----------
tar xvf ${DOWNLOADDIR}/coreutils-7.2.tar.gz -C ${BUILDDIR}
pushd ${BUILDDIR}/coreutils-7.2
        patch -Np1 -i ${DOWNLOADDIR}/coreutils-7.2-uname-1.patch
        touch man/hostname.1 man/*.1
        cp -v src/Makefile.in{,.orig}
        sed -e "/binPROGRAMS_INSTALL=/s:./ginstall:install:" src/Makefile.in.orig \
                > src/Makefile.in
        cat > config.cache << EOF
fu_cv_sys_stat_statfs2_bsize=yes
gl_cv_func_mbrtowc_incomplete_state=yes
gl_cv_func_mbrtowc_nul_retval=yes
gl_cv_func_mbrtowc_null_arg=yes
gl_cv_func_mbrtowc_retval=yes
gl_cv_func_btowc_eof=yes
gl_cv_func_wcrtomb_retval=yes
gl_cv_func_wctob_works=yes
EOF
        ./configure --build=${CROSS_HOST} --host=${CROSS_TARGET} --prefix=/usr \
                --enable-install-program=hostname \
                --enable-no-install-program=kill,uptime --cache-file=config.cache
        make
        make DESTDIR=${TARGET_DIR} install
        mv -v ${TARGET_DIR}/usr/bin/{cat,chgrp,chmod,chown,cp,date} ${TARGET_DIR}/bin
        mv -v ${TARGET_DIR}/usr/bin/{dd,df,echo,false,hostname,ls,mkdir} ${TARGET_DIR}/bin
        mv -v ${TARGET_DIR}/usr/bin/{mv,pwd,rm,rmdir,stty,true,ln,uname} ${TARGET_DIR}/bin
        mv -v ${TARGET_DIR}/usr/bin/chroot ${TARGET_DIR}/usr/sbin

        mv -v ${TARGET_DIR}/usr/bin/{[,basename,head,install,nice} ${TARGET_DIR}/bin
        mv -v ${TARGET_DIR}/usr/bin/{readlink,sleep,sync,test,touch} ${TARGET_DIR}/bin
        ln -svf ../../bin/install ${TARGET_DIR}/usr/bin
        cd ..
        rm -rf coreutils-7.2
popd

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册新用户(newuser)

x
发表于 2009-12-30 15:24:28 | 显示全部楼层
configure:4091: checking for C compiler default output file name
configure:4113: mips64el-unknown-linux-gnu-gcc -march=loongson2f -mabi=n32    conftest.c  >&5
/loongson/cross-tools/lib/gcc/mips64el-unknown-linux-gnu/4.4.0/../../../../mips64el-unknown-linux-gnu/bin/as: Symbol `mips_builtin_opcodes' has different size in shared object, consider re-linking
mips64el-unknown-linux-gnu-gcc: Internal error: Segmentation fault (program as)
Please submit a full bug report.

本版积分规则

小黑屋|手机版|Archiver|Lemote Inc.  

GMT+8, 2019-6-20 19:05 , Processed in 0.189005 second(s), 21 queries .

快速回复 返回顶部 返回列表