编译gcc出现问题 C compiler cannot create executables

esolodo 发布于 2015/05/26 17:58
阅读 13K+
收藏 0
GCC

今天编译gcc 出现问题,一直困扰,大神求助:

gmp,mpc ,mpfr ,isl都手动装好了但是还是有如下错误:

  1. checking for x86_64-none-linux-strip... x86_64-none-linux-strip
  2. checking for a thread-safe mkdir -p... /bin/mkdir -p
  3. checking for gawk... mawk
  4. checking whether make sets $(MAKE)... yes
  5. checking for x86_64-none-linux-gcc... /home/moon/work/build/gcc-build/./gcc/xgcc -B/home/moon/work/build/gcc-build/./gcc/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/bin/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/lib/ -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/include -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/sys-include   
  6. checking for C compiler default output file name... 
  7. configure: error: in `/home/moon/work/build/gcc-build/x86_64-none-linux/libatomic':
  8. configure: error: C compiler cannot create executables
  9. See `config.log' for more details.
  10. make[1]: *** [configure-target-libatomic] Error 1
  11. make[1]: Leaving directory `/home/moon/work/build/gcc-build'
  12. make: *** [all] Error 2

config.log 如下:

  1. This file contains any messages produced by compilers while
  2. running configure, to aid debugging if configure makes a mistake.


  3. It was created by GNU Atomic Library configure 1.0, which was
  4. generated by GNU Autoconf 2.64.  Invocation command line was


  5.   $ /home/moon/work/build/gcc-4.9.2/libatomic/configure --cache-file=./config.cache --enable-multilib --with-cross-host=x86_64-unknown-linux-gnu --prefix=/home/moon/work/cross-gcc-tmp --with-sysroot=/home/moon/work/sysroot --with-newlib --disable-shared --disable-threads --disable-decimal-float --disable-libquadmath --disable-libmudflap --disable-libgomp --disable-nls --disable-libssp --enable-languages=c,lto --program-transform-name=s&^&x86_64-none-linux-& --disable-option-checking --with-target-subdir=x86_64-none-linux --build=x86_64-unknown-linux-gnu --host=x86_64-none-linux --target=x86_64-none-linux --srcdir=../../../gcc-4.9.2/libatomic


  6. ## --------- ##
  7. ## Platform. ##
  8. ## --------- ##


  9. hostname = moon-PC
  10. uname -m = x86_64
  11. uname -r = 3.16.0-30-generic
  12. uname -s = Linux
  13. uname -v = #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015


  14. /usr/bin/uname -p = unknown
  15. /bin/uname -X     = unknown


  16. /bin/arch              = unknown
  17. /usr/bin/arch -k       = unknown
  18. /usr/convex/getsysinfo = unknown
  19. /usr/bin/hostinfo      = unknown
  20. /bin/machine           = unknown
  21. /usr/bin/oslevel       = unknown
  22. /bin/universe          = unknown


  23. PATH: /home/moon/work/cross-tool/bin
  24. PATH: /home/moon/work/cross-gcc-tmp/bin
  25. PATH: /sbin
  26. PATH: /usr/sbin
  27. PATH: /usr/local/sbin
  28. PATH: /usr/local/bin
  29. PATH: /usr/sbin
  30. PATH: /usr/bin
  31. PATH: /sbin
  32. PATH: /bin
  33. PATH: /usr/games
  34. PATH: /usr/local/games




  35. ## ----------- ##
  36. ## Core tests. ##
  37. ## ----------- ##


  38. configure:2360: loading cache ./config.cache
  39. configure:2451: checking for --enable-version-specific-runtime-libs
  40. configure:2466: result: no
  41. configure:2474: checking for --enable-generated-files-in-srcdir
  42. configure:2489: result: no
  43. configure:2545: checking build system type
  44. configure:2559: result: x86_64-unknown-linux-gnu
  45. configure:2579: checking host system type
  46. configure:2592: result: x86_64-none-linux-gnu
  47. configure:2612: checking target system type
  48. configure:2625: result: x86_64-none-linux-gnu
  49. configure:2682: checking for a BSD-compatible install
  50. configure:2750: result: /usr/bin/install -c
  51. configure:2761: checking whether build environment is sane
  52. configure:2811: result: yes
  53. configure:2860: checking for x86_64-none-linux-strip
  54. configure:2887: result: x86_64-none-linux-strip
  55. configure:2952: checking for a thread-safe mkdir -p
  56. configure:2991: result: /bin/mkdir -p
  57. configure:3004: checking for gawk
  58. configure:3031: result: mawk
  59. configure:3042: checking whether make sets $(MAKE)
  60. configure:3064: result: yes
  61. configure:3228: checking for x86_64-none-linux-gcc
  62. configure:3255: result: /home/moon/work/build/gcc-build/./gcc/xgcc -B/home/moon/work/build/gcc-build/./gcc/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/bin/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/lib/ -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/include -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/sys-include   
  63. configure:3524: checking for C compiler version
  64. configure:3533: /home/moon/work/build/gcc-build/./gcc/xgcc -B/home/moon/work/build/gcc-build/./gcc/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/bin/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/lib/ -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/include -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/sys-include    --version >&5
  65. xgcc (GCC) 4.9.2
  66. Copyright (C) 2014 Free Software Foundation, Inc.
  67. This is free software; see the source for copying conditions.  There is NO
  68. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


  69. configure:3544: $? = 0
  70. configure:3533: /home/moon/work/build/gcc-build/./gcc/xgcc -B/home/moon/work/build/gcc-build/./gcc/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/bin/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/lib/ -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/include -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/sys-include    -v >&5
  71. Reading specs from /home/moon/work/build/gcc-build/./gcc/specs
  72. COLLECT_GCC=/home/moon/work/build/gcc-build/./gcc/xgcc
  73. COLLECT_LTO_WRAPPER=/home/moon/work/build/gcc-build/./gcc/lto-wrapper
  74. Target: x86_64-none-linux
  75. Configured with: ../gcc-4.9.2/configure --prefix=/home/moon/work/cross-gcc-tmp --target=x86_64-none-linux --with-sysroot=/home/moon/work/sysroot --with-newlib --enable-languages=c --with-gmp=/home/moon/work/cross-gcc-tmp --with-mpfr=/home/moon/work/cross-gcc-tmp --with-mpc=/home/moon/work/cross-gcc-tmp --disable-shared --disable-threads --disable-decimal-float --disable-libquadmath --disable-libmudflap --disable-libgomp --disable-nls --disable-libssp : (reconfigured) ../gcc-4.9.2/configure --prefix=/home/moon/work/cross-gcc-tmp --target=x86_64-none-linux --with-sysroot=/home/moon/work/sysroot --with-newlib --enable-languages=c --with-gmp=/home/moon/work/cross-gcc-tmp --with-mpfr=/home/moon/work/cross-gcc-tmp --with-mpc=/home/moon/work/cross-gcc-tmp --disable-shared --disable-threads --disable-decimal-float --disable-libquadmath --disable-libmudflap --disable-libgomp --disable-nls --disable-libssp
  76. Thread model: single
  77. gcc version 4.9.2 (GCC) 
  78. configure:3544: $? = 0
  79. configure:3533: /home/moon/work/build/gcc-build/./gcc/xgcc -B/home/moon/work/build/gcc-build/./gcc/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/bin/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/lib/ -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/include -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/sys-include    -V >&5
  80. xgcc: error: unrecognized command line option '-V'
  81. xgcc: fatal error: no input files
  82. compilation terminated.
  83. configure:3544: $? = 1
  84. configure:3533: /home/moon/work/build/gcc-build/./gcc/xgcc -B/home/moon/work/build/gcc-build/./gcc/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/bin/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/lib/ -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/include -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/sys-include    -qversion >&5
  85. xgcc: error: unrecognized command line option '-qversion'
  86. xgcc: fatal error: no input files
  87. compilation terminated.
  88. configure:3544: $? = 1
  89. configure:3564: checking for C compiler default output file name
  90. configure:3586: /home/moon/work/build/gcc-build/./gcc/xgcc -B/home/moon/work/build/gcc-build/./gcc/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/bin/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/lib/ -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/include -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/sys-include    -g -O2   conftest.c  >&5
  91. /home/moon/work/cross-tool/bin/x86_64-none-linux-ld: cannot find crt1.o: No such file or directory
  92. /home/moon/work/cross-tool/bin/x86_64-none-linux-ld: cannot find crti.o: No such file or directory
  93. /home/moon/work/cross-tool/bin/x86_64-none-linux-ld: cannot find -lc
  94. /home/moon/work/cross-tool/bin/x86_64-none-linux-ld: cannot find crtn.o: No such file or directory
  95. collect2: error: ld returned 1 exit status
  96. configure:3590: $? = 1
  97. configure:3627: result: 
  98. configure: failed program was:
  99. | /* confdefs.h */
  100. | #define PACKAGE_NAME "GNU Atomic Library"
  101. | #define PACKAGE_TARNAME "libatomic"
  102. | #define PACKAGE_VERSION "1.0"
  103. | #define PACKAGE_STRING "GNU Atomic Library 1.0"
  104. | #define PACKAGE_BUGREPORT ""
  105. | #define PACKAGE_URL "http://www.gnu.org/software/libatomic/"
  106. | #define PACKAGE "libatomic"
  107. | #define VERSION "1.0"
  108. | /* end confdefs.h.  */
  109. | int
  110. | main ()
  111. | {
  112. |   ;
  113. |   return 0;
  114. | }
  115. configure:3633: error: in `/home/moon/work/build/gcc-build/x86_64-none-linux/libatomic':
  116. configure:3637: error: C compiler cannot create executables
  117. See `config.log' for more details.


  118. ## ---------------- ##
  119. ## Cache variables. ##
  120. ## ---------------- ##


  121. ac_cv_build=x86_64-unknown-linux-gnu
  122. ac_cv_env_CPPFLAGS_set=set
  123. ac_cv_env_CPPFLAGS_value=
  124. ac_cv_env_CPP_set=
  125. ac_cv_env_CPP_value=
  126. ac_cv_env_build_alias_set=set
  127. ac_cv_env_build_alias_value=x86_64-unknown-linux-gnu
  128. ac_cv_env_host_alias_set=set
  129. ac_cv_env_host_alias_value=x86_64-none-linux
  130. ac_cv_env_target_alias_set=set
  131. ac_cv_env_target_alias_value=x86_64-none-linux
  132. ac_cv_host=x86_64-none-linux-gnu
  133. ac_cv_path_mkdir=/bin/mkdir
  134. ac_cv_prog_AWK=mawk
  135. ac_cv_prog_CC='/home/moon/work/build/gcc-build/./gcc/xgcc -B/home/moon/work/build/gcc-build/./gcc/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/bin/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/lib/ -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/include -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/sys-include   '
  136. ac_cv_prog_STRIP=x86_64-none-linux-strip
  137. ac_cv_prog_make_make_set=yes
  138. ac_cv_target=x86_64-none-linux-gnu


  139. ## ----------------- ##
  140. ## Output variables. ##
  141. ## ----------------- ##


  142. ACLOCAL='${SHELL} /home/moon/work/build/gcc-4.9.2/missing --run aclocal-1.11'
  143. AMDEPBACKSLASH=''
  144. AMDEP_FALSE=''
  145. AMDEP_TRUE=''
  146. AMTAR='${SHELL} /home/moon/work/build/gcc-4.9.2/missing --run tar'
  147. AR='x86_64-none-linux-ar'
  148. ARCH_ARM_LINUX_FALSE=''
  149. ARCH_ARM_LINUX_TRUE=''
  150. ARCH_I386_FALSE=''
  151. ARCH_I386_TRUE=''
  152. ARCH_X86_64_FALSE=''
  153. ARCH_X86_64_TRUE=''
  154. AUTOCONF='${SHELL} /home/moon/work/build/gcc-4.9.2/missing --run autoconf'
  155. AUTOHEADER='${SHELL} /home/moon/work/build/gcc-4.9.2/missing --run autoheader'
  156. AUTOMAKE='${SHELL} /home/moon/work/build/gcc-4.9.2/missing --run automake-1.11'
  157. AWK='mawk'
  158. CC='/home/moon/work/build/gcc-build/./gcc/xgcc -B/home/moon/work/build/gcc-build/./gcc/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/bin/ -B/home/moon/work/cross-gcc-tmp/x86_64-none-linux/lib/ -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/include -isystem /home/moon/work/cross-gcc-tmp/x86_64-none-linux/sys-include   '
  159. CCAS=''
  160. CCASDEPMODE=''
  161. CCASFLAGS=''
  162. CCDEPMODE=''
  163. CFLAGS='-g -O2'
  164. CPP=''
  165. CPPFLAGS=''
  166. CYGPATH_W='echo'
  167. DEFS=''
  168. DEPDIR=''
  169. DSYMUTIL=''
  170. DUMPBIN=''
  171. ECHO_C=''
  172. ECHO_N='-n'
  173. ECHO_T=''
  174. EGREP=''
  175. EXEEXT=''
  176. FGREP=''
  177. GENINSRC_FALSE=''
  178. GENINSRC_TRUE='#'
  179. GREP=''
  180. HAVE_IFUNC_FALSE=''
  181. HAVE_IFUNC_TRUE=''
  182. INSTALL_DATA='/usr/bin/install -c -m 644'
  183. INSTALL_PROGRAM='/usr/bin/install -c'
  184. INSTALL_SCRIPT='/usr/bin/install -c'
  185. INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
  186. LD='/home/moon/work/build/gcc-build/./gcc/collect-ld'
  187. LDFLAGS=''
  188. LIBAT_BUILD_VERSIONED_SHLIB_FALSE=''
  189. LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=''
  190. LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=''
  191. LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=''
  192. LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=''
  193. LIBAT_BUILD_VERSIONED_SHLIB_TRUE=''
  194. LIBOBJS=''
  195. LIBS=''
  196. LIBTOOL=''
  197. LIPO='x86_64-none-linux-lipo'
  198. LN_S=''
  199. LTLIBOBJS=''
  200. MAINT=''
  201. MAINTAINER_MODE_FALSE=''
  202. MAINTAINER_MODE_TRUE=''
  203. MAKEINFO='/home/moon/work/build/gcc-4.9.2/missing makeinfo --split-size=5000000'
  204. MKDIR_P='/bin/mkdir -p'
  205. NM='/home/moon/work/build/gcc-build/./gcc/nm'
  206. NMEDIT=''
  207. OBJDUMP='x86_64-none-linux-objdump'
  208. OBJEXT=''
  209. OPT_LDFLAGS=''
  210. OTOOL64=''
  211. OTOOL=''
  212. PACKAGE='libatomic'
  213. PACKAGE_BUGREPORT=''
  214. PACKAGE_NAME='GNU Atomic Library'
  215. PACKAGE_STRING='GNU Atomic Library 1.0'
  216. PACKAGE_TARNAME='libatomic'
  217. PACKAGE_URL='http://www.gnu.org/software/libatomic/'
  218. PACKAGE_VERSION='1.0'
  219. PATH_SEPARATOR=':'
  220. PERL=''
  221. RANLIB='x86_64-none-linux-ranlib'
  222. SECTION_LDFLAGS=''
  223. SED='/bin/sed'
  224. SET_MAKE=''
  225. SHELL='/bin/bash'
  226. SIZES=''
  227. STRIP='x86_64-none-linux-strip'
  228. VERSION='1.0'
  229. XCFLAGS=''
  230. XLDFLAGS=''
  231. ac_ct_CC=''
  232. ac_ct_DUMPBIN=''
  233. am__EXEEXT_FALSE=''
  234. am__EXEEXT_TRUE=''
  235. am__fastdepCCAS_FALSE=''
  236. am__fastdepCCAS_TRUE=''
  237. am__fastdepCC_FALSE=''
  238. am__fastdepCC_TRUE=''
  239. am__include=''
  240. am__isrc=' -I$(srcdir)'
  241. am__leading_dot='.'
  242. am__quote=''
  243. am__tar='${AMTAR} chof - "$$tardir"'
  244. am__untar='${AMTAR} xf -'
  245. bindir='${exec_prefix}/bin'
  246. build='x86_64-unknown-linux-gnu'
  247. build_alias='x86_64-unknown-linux-gnu'
  248. build_cpu='x86_64'
  249. build_os='linux-gnu'
  250. build_vendor='unknown'
  251. config_path=''
  252. datadir='${datarootdir}'
  253. datarootdir='${prefix}/share'
  254. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  255. dvidir='${docdir}'
  256. enable_shared='no'
  257. enable_static=''
  258. exec_prefix='NONE'
  259. host='x86_64-none-linux-gnu'
  260. host_alias='x86_64-none-linux'
  261. host_cpu='x86_64'
  262. host_os='linux-gnu'
  263. host_vendor='none'
  264. htmldir='${docdir}'
  265. includedir='${prefix}/include'
  266. infodir='${datarootdir}/info'
  267. install_sh='${SHELL} /home/moon/work/build/gcc-4.9.2/install-sh'
  268. libdir='${exec_prefix}/lib'
  269. libexecdir='${exec_prefix}/libexec'
  270. libtool_VERSION=''
  271. localedir='${datarootdir}/locale'
  272. localstatedir='${prefix}/var'
  273. mandir='${datarootdir}/man'
  274. mkdir_p='/bin/mkdir -p'
  275. multi_basedir='../../../gcc-4.9.2/libatomic/..'
  276. oldincludedir='/usr/include'
  277. pdfdir='${docdir}'
  278. prefix='/home/moon/work/cross-gcc-tmp'
  279. program_transform_name='s&^&x86_64-none-linux-&'
  280. psdir='${docdir}'
  281. sbindir='${exec_prefix}/sbin'
  282. sharedstatedir='${prefix}/com'
  283. sysconfdir='${prefix}/etc'
  284. target='x86_64-none-linux-gnu'
  285. target_alias='x86_64-none-linux'
  286. target_cpu='x86_64'
  287. target_os='linux-gnu'
  288. target_vendor='none'
  289. toolexecdir='$(exec_prefix)/$(target_alias)'
  290. toolexeclibdir='$(toolexecdir)/lib/../lib64'


  291. ## ----------- ##
  292. ## confdefs.h. ##
  293. ## ----------- ##


  294. /* confdefs.h */
  295. #define PACKAGE_NAME "GNU Atomic Library"
  296. #define PACKAGE_TARNAME "libatomic"
  297. #define PACKAGE_VERSION "1.0"
  298. #define PACKAGE_STRING "GNU Atomic Library 1.0"
  299. #define PACKAGE_BUGREPORT ""
  300. #define PACKAGE_URL "http://www.gnu.org/software/libatomic/"
  301. #define PACKAGE "libatomic"
  302. #define VERSION "1.0"


  303. configure: exit 77


加载中
0
老汉-憨憨
老汉-憨憨
  1. /home/moon/work/cross-tool/bin/x86_64-none-linux-ld: cannot find crt1.o: No such file or directory
  2. /home/moon/work/cross-tool/bin/x86_64-none-linux-ld: cannot find crti.o: No such file or directory
  3. /home/moon/work/cross-tool/bin/x86_64-none-linux-ld: cannot find -lc
  4. /home/moon/work/cross-tool/bin/x86_64-none-linux-ld: cannot find crtn.o: No such file or directory
  5. collect2: error: ld returned 1 exit status
0
老汉-憨憨
老汉-憨憨
工具链  没有搞对   
0
esolodo
esolodo
谢谢了!我重新编译一下工具链试试
0
中山野鬼
中山野鬼

引用来自“esolodo”的评论

谢谢了!我重新编译一下工具链试试
哈,慢慢来,不要灰心,我没见过谁,搞c一路过来,没出现过你这种情况的。哈。
0
esolodo
esolodo
今天第一次编译,但是编译binutils还是遇到了makeinfo缺失的问题,看linux内核的代码有点枯燥,自己编译试试换换心情
0
esolodo
esolodo

引用来自“痞子汤”的评论

  1. /home/moon/work/cross-tool/bin/x86_64-none-linux-ld: cannot find crt1.o: No such file or directory
  2. /home/moon/work/cross-tool/bin/x86_64-none-linux-ld: cannot find crti.o: No such file or directory
  3. /home/moon/work/cross-tool/bin/x86_64-none-linux-ld: cannot find -lc
  4. /home/moon/work/cross-tool/bin/x86_64-none-linux-ld: cannot find crtn.o: No such file or directory
  5. collect2: error: ld returned 1 exit status

但是,我重新编译了还是有这个问题。我编译的是freestanding的gcc,

../gcc-4.9.2/configure \
  --prefix=$CROSS_GCC_TMP --target=$TARGET\
  --with-sysroot=$SYSROOT\
  --with-newlib --enable-languages=c \
  --with-gmp=$CROSS_GCC_TMP \
  --with-mpfr=$CROSS_GCC_TMP \
  --with-mpc=$CROSS_GCC_TMP \
  --disable-shared --disable-threads \
  --disable-decimal-float --disable-libquadmath \
  --disable-libmudflap --disable-libgomp \
  --disable-nls --disable-libssp
其中有--disable-shared 应该是编译的静态的啊!缺少crt1.o应该是动态连接才对。 我弄了几天了,还是不太明白。

0
老汉-憨憨
老汉-憨憨

你可以先 find 一下 crti.o   crtn.o 文件的路径

然后将路径 加入到 

LIBRARY_PATH

环境变量中去

搜索

复制

0
老汉-憨憨
老汉-憨憨
这个两个文件 和  --disable-shared 没关系

搜索

复制

0
esolodo
esolodo

谢谢你的耐心解答!我还是有些疑问:

1 编译freestanding gcc使用的是target的ld,还是用的host的gcc中的ld呢?

2 缺少crt1.o就是没有安装Glibc,但是我们建立交叉编译环境是binutils->gcc->内核头文件->Glibc.但是我们在编译gcc前还没有编译Glibc,这感觉是蛋与鸡的问题。 那么我推测这些全是host中的gcc编译的,那么我们为什么要把target的/bin(ld as等)放在PATH最前面呢?

0
esolodo
esolodo
还有一点 ld链接是不是在 (configure 时 --sysroot path)path中去寻找库文件呢?
返回顶部
顶部