I am using g77 (gcc 3.4.6) in my fedora 20. I got compiler errors:
g77: unrecognized option `-trapuv'
f771: error: invalid option `ips2'
How can I solve this problem?
Also, if I want to use gfortran instead, what are the equivalent options?
Thanks.
Related
I got these errors trying to execute mingw32-make:
g++: error: unrecognized command-line option '--cflags' g++: error: unrecognized command-line option '--libs'`
The makefile is the following:
all:
g++ fitscli.cpp vipsoperations.cpp fits.cpp ConsoleTable.cpp `pkg-config vips-cpp --cflags --libs` -lcfitsio -ltiff -o fitscli
After some research there was a suggestion to delete '--cflags' and '--libs` from the code, and I did it.
I know is that maybe the compiler g++ is not having able the options '--cflags' and '--libs`
I also tried to change to gcc compiler, but doesn´t work.
I am working on windows 11, with Msys URCT64
When I deleted the lines suggested, is causing another compilation error, so I want to know how to fix the flags issue without deleted them from the code.
Thanks.
The backticks ` ` don't seem to work properly in mingw32-make (because it uses CMD as the shell, which doesn't support them).
Use make instead (install with pacman -S make), which uses Bash.
I am trying to compile lode library from here.
However when running make on the yajl.o source I end up with the error:
gcc: error: unrecognized command line option ‘-combine’
I am using 4.9.2 gcc on ubuntu 12.04. I also tried gcc 4.8.1 on different pc.
I believe -combine was removed in GCC 4.6. However, there is a PR to fix this for lode here.
I have a project that is using gcc 4.6.3, and am trying to migrate to 4.8.2. However, it needs to compile on 4.6 for a while. It is using -Werror with a few specific errors turned off. To use boost 1.55 with gcc 4.8, i needed to add -Wno-unused-local-typedefs. The problem is that with -Werror, gcc 4.6 emits this error:
cc1plus: error: unrecognized command line option "-Wno-unused-local-typedefs" [-Werror]
The gcc docs on warning options have no indication this particular warning can be treated explicitly as a warnings rather than an error. Is there any way to get 4.6 to treat this as a warning?
I am using Ubuntu 12.10 with a gcc version 4.6.3. I am trying to build my code and getting an error when using 'make' command
g++: error: unrecognized option ‘--as-needed’
My Makefile looks as follows:
LFLAGS = -Wl,-rpath,. -Wl,-rpath-link,../bin --as-needed
LDFLAGS = $(RPATH) $(RPATHLINK) -L$(USRLIB) --as-needed
Previously this code was successfully building on RedHat Linux. But now I need to run this code on Ubuntu.
If anyone knows about this. Please help
Regards
Gaurav
#FatalError is right
And also better late than never answering this question.
you need to use -Wl,--as-needed
Seems like you had an extra space between the ld specifier "-Wl" and the option to be passed to ls "--as-needed". For the linker to get the extra option from g++ command, it should be "-Wl,--as-needed"
i'm using this guide: http://llvm.org/releases/3.0/docs/WritingAnLLVMPass.html for creating an llvm pass, but i have the following error when i use
opt -load ../../../Debug+Asserts/lib/Hello.so -hello < hello.bc > /dev/null
Error opening '../../../Release/lib/Hello.so': ../../../Release/lib/Hello.so: undefined symbol: _ZN4llvm12PassRegistry12registerPassERKNS_8PassInfoEb
-load request ignored.
opt: Unknown command line argument '-hello'. Try: 'opt -help'
note that i haven't the folder "Debug+Asserts" but "Release"
someone know what's the problem?
maybe because for creating the Hello.bc file i use llvm-clang instead of llvm-gcc? (this guide says to use llvm-gcc but it doesn'n work: http://llvm.org/releases/3.0/docs/GettingStarted.html#tutorial) or maybe because i have opt version 2.8 while i'm using llvm-3.0 ?
You should use the same version of opt as the LLVM version you're building the pass against.