tc-build: ld.bfd ld.gold missing and build_binutils problem
hi
i tried to build clanv last nite. i followed your building instrutions to build it but i couldn’t find the ld.gold nor ld.bfd files. i built without the -p option which i believed bfd and gold files would be created. did i miss something?
in this post https://github.com/ClangBuiltLinux/tc-build/issues/231 you mentioned --enable-gold option. where should i put this option?
also i tried to run build_binutils.py but it returned errors as below. do i need to run it separately after building llvm?
/build-binutils.py -i /tmp/binutils -m ARCH -t arm aarch64
configure: error: in
/tmp/tc-build/build/binutils/aarch64’:
configure: error: C compiler cannot create executables
See config.log' for more details Traceback (most recent call last): File "./build-binutils.py", line 125, in <module> builder.build() File "/tmp/tc-build/tc_build/binutils.py", line 63, in build self.run_cmd(configure_cmd, cwd=self.folders.build) File "/tmp/tc-build/tc_build/builder.py", line 39, in run_cmd return subprocess.run(cmd, capture_output=capture_output, check=True, cwd=cwd) File "/usr/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '[PosixPath('/tmp/tc-build/src/binutils-2.41/configure'), '--disable-compressed-debug-sections', '--disable-gdb', '--disable-nls', '--disable-werror', '--enable-deterministic-archives', '--enable-new-dtags', '--enable-plugins', '--enable-threads', '--quiet', '--with-system-zlib', '--disable-multilib', '--with-gnu-as', '--with-gnu-ld', '--prefix=/cache/binutils', '--program-prefix=aarch64-linux-gnu-', '--target=aarch64-linux-gnu', 'CC=gcc', 'CXX=g++', 'CFLAGS=-O2 -march=ARCH -mtune=ARCH', 'CXXFLAGS=-O2 -march=ARCH -mtune=ARCH']' returned non-zero exit status 77.
i am on ubuntu 20.04
thanks
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Comments: 22 (10 by maintainers)
hi
just wanna tell you, as what i expected and what you said, the built is succeed finally and seems i can see all the files i wanted. big thanks
and if you have any info about the google clang problem i mentioned pls let me know, coz those who have built the kernel successfully were using google’s
i will keep this issue as open for 1 or 2 days as to try to build my kernel. if everything is fine, i will close it
thanks for your time and help once again