Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flang causes clang warnings: clang-3.9: warning: -lflang: 'linker' input unused #113

Closed
yurivict opened this issue Jun 28, 2017 · 3 comments

Comments

@yurivict
Copy link

flang -Wall -m64 -fPIC -c dsptri.f -o dsptri.o
clang-3.9: warning: -lflang: 'linker' input unused
clang-3.9: warning: -lflangmain: 'linker' input unused
clang-3.9: warning: -lflangrti: 'linker' input unused
clang-3.9: warning: -lompstub: 'linker' input unused
clang-3.9: warning: -lexecinfo: 'linker' input unused
clang-3.9: warning: argument unused during compilation: '-L/usr/local/flang/lib'
  • found this on FreeBSD 11.
@sscalpone
Copy link
Member

Doesn't happen for me :)

Can you add the -v option & post the output?

@yurivict
Copy link
Author

yurivict commented Jul 2, 2017

$ flang -v -c hw.f
clang version 3.9.1 
Target: x86_64-unknown-freebsd11.0
Thread model: posix
InstalledDir: /usr/local/flang/bin
clang-3.9: warning: -lflang: 'linker' input unused
clang-3.9: warning: -lflangmain: 'linker' input unused
clang-3.9: warning: -lflangrti: 'linker' input unused
clang-3.9: warning: -lompstub: 'linker' input unused
clang-3.9: warning: -lexecinfo: 'linker' input unused
clang-3.9: warning: argument unused during compilation: '-L/usr/local/flang/lib'
 "/usr/local/flang/bin/flang1" hw.f -opt 0 -terse 1 -inform warn -nohpf -nostatic -y 129 2 -inform warn -x 19 0x400000 -quad -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -tp px -x 57 0xfb0000 -x 58 0x78031040 -x 47 0x08 -x 48 4608 -x 49 0x100 -def unix -def __unix -def __unix__ -def linux -def __linux -def __linux__ -def __NO_MATH_INLINES -def __LP64__ -def __x86_64 -def __x86_64__ -def __LONG_MAX__=9223372036854775807L -def __SIZE_TYPE__=unsigned long int -def __PTRDIFF_TYPE__=long int -def __THROW= -def __extension__= -def __amd_64__amd64__ -def __k8 -def __k8__ -def __PGLLVM__ -nofreeform -idir /usr/local/flang/include -vect 48 -y 54 1 -x 70 0x40000000 -y 163 0xc0000000 -x 189 0x10 -stbfile /tmp/hw-4ba348.stb -modexport /tmp/hw-4ba348.cmod -modindex /tmp/hw-4ba348.cmdx -output /tmp/hw-4ba348.ilm
 "/usr/local/flang/bin/flang2" /tmp/hw-4ba348.ilm -ieee 1 -x 6 0x100 -x 42 0x400000 -y 129 4 -x 129 0x400 -fn hw.f -opt 0 -terse 1 -inform warn -y 129 2 -inform warn -x 51 0x20 -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 125 0x20000 -quad -x 59 4 -tp px -x 120 0x1000 -x 124 0x1400 -y 15 2 -x 57 0x3b0000 -x 58 0x48000000 -x 49 0x100 -astype 0 -x 183 4 -x 121 0x800 -x 54 0x10 -x 70 0x40000000 -x 249 39 -x 124 1 -y 163 0xc0000000 -x 189 0x10 -y 189 0x4000000 -x 183 0x10 -stbfile /tmp/hw-4ba348.stb -asm /tmp/hw-4ba348.ll
 "/usr/local/flang/bin/clang-3.9" -cc1 -triple x86_64-unknown-freebsd11.0 -O1 -emit-obj -mrelax-all -disable-free -main-file-name hw.f -mrelocation-model static -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -v -dwarf-column-info -debugger-tuning=gdb -coverage-file /tmp/hw.f -resource-dir /usr/local/flang/bin/../lib/clang/3.9.1 -fdebug-compilation-dir /tmp -ferror-limit 19 -fmessage-length 190 -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -o hw.o -x ir /tmp/hw-4ba348.ll
clang -cc1 version 3.9.1 based upon LLVM 3.9.1 default target x86_64-unknown-freebsd11.0

@iotamudelta
Copy link

@yurivict this is related to the FreeBSD-specific wrapper script. It's a shortcoming of the port, not upstream. Please close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants