similar to: configure script issue with -flto with recent gcc and system ar/ranlib

Displaying 20 results from an estimated 10000 matches similar to: "configure script issue with -flto with recent gcc and system ar/ranlib"

2019 Apr 25
1
configure script issue with -flto with recent gcc and system ar/ranlib
Hi Tomas, > On 4/23/19 2:59 PM, Thomas K?nig wrote: >> Hi, >> >> there can be an issue with recent gcc where the system-installed "ar" >> and "ranlib" commands cannot handle LTO binaries.? On compilation, this >> manifests itself with error messages claiming that they need extra >> plugins. > Thanks for the report. What was the
2019 Apr 25
0
configure script issue with -flto with recent gcc and system ar/ranlib
On 4/23/19 2:59 PM, Thomas K?nig wrote: > Hi, > > there can be an issue with recent gcc where the system-installed "ar" > and "ranlib" commands cannot handle LTO binaries.? On compilation, this > manifests itself with error messages claiming that they need extra > plugins. > > This can be fixed by using the command line > > $ AR=gcc-ar
2018 Mar 21
0
LTO, llvm-(nm, ar, ranlib)
Hello, gcc-ar/gcc-nm/gcc-ranlib compared to ar/nm/ranlib provide an implicit --plugin argument, so that the former can work with LTO objects, even when the gcc-lto plugin is not in ${libdir}/bfd-plugins. Do llvm-ar, llvm-ranlib and llvm-nm also imply a --plugin argument, compared to ar/ranlib/nm concerning LTO? Also https://llvm.org/docs/LinkTimeOptimization.html does not say anything about
2011 Jun 15
2
[LLVMdev] Difficulties in using gold plugin. ("ar" not working properly)
Dear all, I'm trying to use the gold plugin to make it easier to generate LLVM bitcode from complex applications. I did the steps mentioned on "http://llvm.org/docs/GoldPlugin.html". Both linking and LLVM generation seem to work properly, however when using the tool ar, the symbol table is lost. "no archive symbol table (run ranlib)". I'm using LLVM 2.9, Ubuntu 10.10,
2012 Jun 28
2
[LLVMdev] Problem compiling with clang + gold plugin: no archive symbol table
Thanks for replying! I didn't install the new binutils to system directory in case it messes thing up. For ranlib, from the error message, it seems to be the reason. But even I export RANLIB=/bin/true, clean the code and rebuild, it still fails with the same message. I created a symlink in /usr/lib/bfd-plugins as suggested in http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-March/030101.html.
2004 Nov 14
2
[LLVMdev] IMPORTANT: llvm-ar requirements
Ignore this at your own peril. I have committed changes to CVS that introduce a fully functional llvm-ar tool, and a new lib/Linker library that uses the archive's symbol table to hasten linking. However, this implies that archives read by the LLVM tools *must* have an LLVM symbol table in them. This happens automatically for the crtend.a library, but not for the runtime libraries produced by
2012 Jun 28
2
[LLVMdev] Problem compiling with clang + gold plugin: no archive symbol table
Hi, I build llvm with gold plugin, clang and the binutils(and it's put into the PATH) with plugins support. ld.gold is renamed to ld. A quick test of clang -flto -O0 hello.c can succeed. But when I try to export CC="clang -v -flto" and compile MySQL, it failed in the linking with the following error message: "/home/ryan/binutils/bin/ld" -export-dynamic -z relro
2004 Nov 15
0
[LLVMdev] IMPORTANT: llvm-ar requirements
I forgot to mention .. This is a temporary requirement. I am working on changes so that an archive file that doesn't have a symbol table can be linked successfully, albeit a LOT slower. Reid. On Sun, 2004-11-14 at 15:41, Reid Spencer wrote: > Ignore this at your own peril. > > I have committed changes to CVS that introduce a fully functional > llvm-ar tool, and a new
2005 Nov 22
2
[LLVMdev] llvm-ranlib: Bus Error in regressions + fix
I ran the LLVM regression tests today (via make check) and noticed that llvm-ranlib crashes with a Bus Error on my test system (a fairly old RedHat 9 system), using the latest CVS version. I did some digging and I think I know what the problem is, and I have attached a quick and dirty patch that fixes the problem for me, but I need a suggestion about how it should be integrated properly. Here
2019 Jan 28
2
How to generate .bc file using configure && make on Mac OS X?
> On macOS you just omit the '-fuse-ld=gold' and it will work out of the box. > > ./configure CC=clang RANLIB=llvm-ranlib CFLAGS=-flto > > LDFLAGS=-Wl\,-plugin-opt=save-temps\ -flto\ -fuse-ld=gold > > make No. It doesn't work on Mac OS by just omitting '-fuse-ld=gold'. $ ../../../extract/bash-5.0/configure CC=clang CXX=clang++ RANLIB=llvm-ranlib
2019 Jan 25
2
How to generate .bc file using configure && make on Mac OS X?
Hi, I use the following commands to compile a GNU package to .bc files on Linux. ./configure CC=clang RANLIB=llvm-ranlib CFLAGS=-flto LDFLAGS=-Wl\,-plugin-opt=save-temps\ -flto\ -fuse-ld=gold make But since it uses ld.gold, it won't work on Mac OS X. Is there something equivalent that works on Mac OS X? Thanks. -- Regards, Peng
2019 Jan 28
2
How to generate .bc file using configure && make on Mac OS X?
On Mon, Jan 28, 2019 at 8:16 AM Tim Northover <t.p.northover at gmail.com> wrote: > > On Mon, 28 Jan 2019 at 14:10, Peng Yu via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > ld: unknown option: -plugin-opt=save-temps > > The macOS linker supports -save-temps directly (but not -plugin-opt). > I haven't tried, but I'd guess that if you modified the
2010 Mar 10
4
[LLVMdev] glod plugin use
Hi, I was trying to use gold plugin to compile and run some of my passes on some large softwares like mysql, apache etc. When I compile using llvm-gcc, everything works fine. But, when I followed the instructions on http://llvm.org/docs/GoldPlugin.html#build to use gold plugin, I got errors like: /home/vadve/ssahoo2/local/bin/ld: error: modules/standard/libstandard.a: no archive symbol table
2010 Mar 11
0
[LLVMdev] glod plugin use
Swarup Kumar Sahoo wrote: > Hi, > I was trying to use gold plugin to compile and run some of my passes on some large softwares like mysql, apache etc. When I compile using llvm-gcc, everything works fine. But, when I followed the instructions on http://llvm.org/docs/GoldPlugin.html#build to use gold plugin, I got errors like: > > /home/vadve/ssahoo2/local/bin/ld: error:
2020 Apr 20
2
How to optimize a large project in llvm pass?
Hi, I have written MyPass.cpp and I use "EP_FullLinkTimeOptimizationLast". I compile it and get libMypass.so. MyPass.so rely on some other code, such as,Init.c and Helper.c. So, I use following commands to get a static library libmypass-rt.a. " $ clang -fsanitize=safe-stack -c -emit-llvm -fpic -Wall -Wextra -O2 -I ../include -o obj/helpers.o helpers.c $ clang -fsanitize=safe-stack
2005 May 25
5
[LLVMdev] LLVM Cygwin Run Errors
Hi, I installed the cfrontend 1.5 and LLVM 1.5 from source in cygwin successfully using GCC3.4.3 and binutils2.15 (as in makefiles do not complain errors except some warnings). However when I do this, there are some errors like, *************************************************************** u0201201 at 9nnvf2ay /home/cfrontend/install/lib $ llvm-ranlib libiberty.a llvm-ranlib: Error opening
2016 Oct 02
3
(Thin)LTO llvm build
bfd linker 2.26 works fine with LLVMgold.so. As I mentioned in a previous email, 2.26 ar and ranlib also works fine as long as LLVMgold.so is put in a path binutils know about : $(bindir)/../lib/bfd-plugins/ David On Sun, Oct 2, 2016 at 3:59 AM, Carsten Mattner <carstenmattner at gmail.com> wrote: > On Sun, Oct 2, 2016 at 6:52 AM, Teresa Johnson <tejohnson at google.com> >
2009 Oct 18
3
[LLVMdev] strace for whole-program bitcodes
Hi, I don't think just use gold-plugin even modified is enough for the task of building a whole-program bc file. When we want to build a whole-program bc file by a general solution(I meant that we can use such a method for all kinds of build system),we need not only a gold-plugin to do what llvm-ld does,but also some mechanisms,not a simple trick to modify the env variables,to run
2019 Feb 06
2
Not to consolidate two structs with the same data types (but different names) in configure/make tool chain
Hi, I have the following C code. #define PTR_T char * typedef struct objcache { PTR_T data; int cs; /* cache size, number of objects */ int nc; /* number of cache entries */ } sh_obj_cache_t; struct dstack { char *delimiters; int delimiter_depth; int delimiter_space; }; When it is configured/made to generate IR with the following environment variables, CC=clang CXX=clang++
2005 Nov 23
0
[LLVMdev] llvm-ranlib: Bus Error in regressions + fix
Evan Jones wrote: > On Nov 22, 2005, at 19:10, Reid Spencer wrote: > >> 1. What is the path name associated with TmpArchive? If its the same >> as the path name associated with archPath then that's a bug, probably >> introduced when Path::makeUnique is called from >> Path::createTemporaryFileOnDisk which is called from line 377 of >> ArchiveWriter.cpp.