您尚未登录。

楼主 #1 2019-10-22 15:03:12

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 259
积分: 237

大家有没有遇到使用buildroot-2017.08编译host-flex 2.6.4 失败

如题,前几天还是好的,今天就不行了

离线

楼主 #3 2019-10-22 15:36:15

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 259
积分: 237

Re: 大家有没有遇到使用buildroot-2017.08编译host-flex 2.6.4 失败

libtool: link: /usr/bin/gcc -shared  -fPIC -DPIC  .libs/libmain.o .libs/libyywrap.o   -L/home/paulwu/buildroot-2017.08/output/host/lib -lm  -O2 -Wl,-rpath -Wl,/home/paulwu/buildroot-2017.08/output/host/lib   -Wl,-soname -Wl,libfl.so.2 -o .libs/libfl.so.2.0.0
libtool: link: (cd ".libs" && rm -f "libfl.so.2" && ln -s "libfl.so.2.0.0" "libfl.so.2")
libtool: link: (cd ".libs" && rm -f "libfl.so" && ln -s "libfl.so.2.0.0" "libfl.so")
/bin/bash ../libtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -I/home/paulwu/buildroot-2017.08/output/host/include  -L/home/paulwu/buildroot-2017.08/output/host/lib -Wl,-rpath,/home/paulwu/buildroot-2017.08/output/host/lib -o stage1flex stage1flex-scan.o stage1flex-buf.o stage1flex-ccl.o stage1flex-dfa.o stage1flex-ecs.o stage1flex-filter.o stage1flex-gen.o stage1flex-main.o stage1flex-misc.o stage1flex-nfa.o stage1flex-options.o stage1flex-parse.o stage1flex-regex.o stage1flex-scanflags.o stage1flex-scanopt.o stage1flex-skel.o stage1flex-sym.o stage1flex-tables.o stage1flex-tables_shared.o stage1flex-tblcmp.o stage1flex-yylex.o    -lm
libtool: link: ( cd ".libs" && rm -f "libfl.la" && ln -s "../libfl.la" "libfl.la" )
libtool: link: /usr/bin/gcc -O2 -I/home/paulwu/buildroot-2017.08/output/host/include -Wl,-rpath -Wl,/home/paulwu/buildroot-2017.08/output/host/lib -o stage1flex stage1flex-scan.o stage1flex-buf.o stage1flex-ccl.o stage1flex-dfa.o stage1flex-ecs.o stage1flex-filter.o stage1flex-gen.o stage1flex-main.o stage1flex-misc.o stage1flex-nfa.o stage1flex-options.o stage1flex-parse.o stage1flex-regex.o stage1flex-scanflags.o stage1flex-scanopt.o stage1flex-skel.o stage1flex-sym.o stage1flex-tables.o stage1flex-tables_shared.o stage1flex-tblcmp.o stage1flex-yylex.o  -L/home/paulwu/buildroot-2017.08/output/host/lib -lm
./stage1flex   -o stage1scan.c ./scan.l
Makefile:1696: recipe for target 'stage1scan.c' failed
make[3]: *** [stage1scan.c] 段错误 (core dumped)
make[3]: 离开目录“/home/paulwu/buildroot-2017.08/output/build/host-flex-2.6.4/src”
Makefile:546: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: 离开目录“/home/paulwu/buildroot-2017.08/output/build/host-flex-2.6.4/src”
Makefile:532: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: 离开目录“/home/paulwu/buildroot-2017.08/output/build/host-flex-2.6.4”
package/pkg-generic.mk:227: recipe for target '/home/paulwu/buildroot-2017.08/output/build/host-flex-2.6.4/.stamp_built' failed
make: *** [/home/paulwu/buildroot-2017.08/output/build/host-flex-2.6.4/.stamp_built] Error 2

离线

楼主 #5 2019-10-22 16:08:54

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 259
积分: 237

Re: 大家有没有遇到使用buildroot-2017.08编译host-flex 2.6.4 失败

显示已经是最新版本

离线

楼主 #7 2019-10-22 16:10:31

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 259
积分: 237

Re: 大家有没有遇到使用buildroot-2017.08编译host-flex 2.6.4 失败

remove后,还是一样

离线

楼主 #8 2019-10-22 16:11:21

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 259
积分: 237

Re: 大家有没有遇到使用buildroot-2017.08编译host-flex 2.6.4 失败

make clean,试了N次,一样的结果

离线

楼主 #10 2019-10-22 16:40:31

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 259
积分: 237

Re: 大家有没有遇到使用buildroot-2017.08编译host-flex 2.6.4 失败

7.4

离线

楼主 #11 2019-10-22 16:41:26

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 259
积分: 237

Re: 大家有没有遇到使用buildroot-2017.08编译host-flex 2.6.4 失败

现在用回buildroot的toolchain,把gcc调到6.x,正在编译

离线

楼主 #13 2019-10-22 16:54:36

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 259
积分: 237

Re: 大家有没有遇到使用buildroot-2017.08编译host-flex 2.6.4 失败

嗯,也测试了按commit修改,还是不行

离线

楼主 #14 2019-10-22 18:03:59

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 259
积分: 237

Re: 大家有没有遇到使用buildroot-2017.08编译host-flex 2.6.4 失败

修改两个文件,编译过了。遇到有朋友可以借鉴一吓
1.修改Buildroot-2017.08/output/build/host-flex-2.6.4/configure.ac
AC_INIT([the fast lexical analyser generator],[2.6.4],[flex-help@lists.sourceforge.net],[flex])
AC_PREREQ([2.60])
AC_CONFIG_SRCDIR([src/scan.l])
AC_CONFIG_AUX_DIR([build-aux])
AC_USE_SYSTEM_EXTENSIONS
LT_INIT
AM_INIT_AUTOMAKE([1.11.3 -Wno-portability foreign check-news std-options dist-lzip parallel-tests subdir-objects])
AC_CONFIG_HEADER([src/config.h])

2.修改Buildroot-2017.08/output/build/host-flex-2.6.4/src/scan.l
/* scan.l - scanner for flex input -*-C-*- */

%top{
/* flexdef.h includes config.h, which may contain macros that alter the API */
/* of libc functions. Must include first before any libc header. */
#include "flexdef.h"
}

%{
/*  Copyright (c) 1990 The Regents of the University of California. */
/*  All rights reserved. */
@@ -32,7 +38,6 @@
/*  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
/*  PURPOSE. */

#include "flexdef.h"
#include "parse.h"
extern bool tablesverify, tablesext;
extern int trlcontxt; /* Set in  parse.y for each rule. */

离线

楼主 #15 2019-10-22 18:04:42

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 259
积分: 237

Re: 大家有没有遇到使用buildroot-2017.08编译host-flex 2.6.4 失败

修改后再不行,请sudo apt-get install help2man

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn