Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28996 Discussions

Severe problem: corrupted installation?

Arjen_Markus
Honored Contributor I
456 Views
Hello,

in my examination of a problem with linking against a LAPACK library, I ran into a severe problem:
the installed compiler is not functioning anymore.

I can not be sure my actions are the real cause, so I will just report what happened:

I got runtime errors with a program linked against the LAPACK library I built from sources.
The message I got while linking it was:

LINK: warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

So I tried it with a modified command:

ifort chklink.f lapack.lib blas.lib /nodefaultlib:MSVCRT.LIB

The compiler complained about the unknown option /nodefaultlib:, but it also produced some rather
unexpected messages:

Intel Visual Fortran Compiler Professional for applications running on IA-32, Version 11.1 Build 20100414 Package ID: w_cprof_p_11.1.065

Copyright (C) 1985-2010 Intel Corporation. All rights reserved.

ifort: command line warning #10006: ignoring unknown option '/nodefaultlib:MSVCRT.LIB'

chklink.f(11): error #5149: Illegal character in statement label field

LINK: warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

^

chklink.f(11): error #5149: Illegal character in statement label field

LINK: warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

-^

chklink.f(11): error #5149: Illegal character in statement label field

LINK: warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

--^

chklink.f(11): error #5149: Illegal character in statement label field

LINK: warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

---^

chklink.f(11): error #5149: Illegal character in statement label field [:]

LINK: warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

----^

chklink.f(11): error #5144: Invalid character_kind_parameter. No underscore

LINK: warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

--------------------------------------------^

chklink.f(13): error #5149: Illegal character in statement label field

R6034

^

chklink.f(14): error #5149: Illegal character in statement label field

An application has made an attempt to load the C rntime library incorrectly.

^

chklink.f(14): error #5149: Illegal character in statement label field

An application has made an attempt to load the C rntime library incorrectly.

-^

chklink.f(14): error #5149: Illegal character in statement label field

An application has made an attempt to load the C rntime library incorrectly.

---^

chklink.f(14): error #5149: Illegal character in statement label field

An application has made an attempt to load the C rntime library incorrectly.

----^

chklink.f(11): error #5082: Syntax error, found 'DEFAULT' when expecting one of: ASSOCIATE DO FORALL SELECT WHERE IF SELECTCASE SELECTTYPE

LINK: warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

-----------------------^

chklink.f(15): error #5149: Illegal character in statement label field

Please contact the application's support team for more information.

^

chklink.f(15): error #5149: Illegal character in statement label field

Please contact the application's support team for more information.

-^

chklink.f(15): error #5149: Illegal character in statement label field

Please contact the application's support team for more information.

--^

chklink.f(15): error #5149: Illegal character in statement label field

Please contact the application's support team for more information.

---^

chklink.f(15): error #5149: Illegal character in statement label field

Please contact the application's support team for more information.

----^

chklink.f(17): error #5149: Illegal character in statement label field

The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.

^

chklink.f(17): error #5149: Illegal character in statement label field

The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.

-^

chklink.f(17): error #5149: Illegal character in statement label field

The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.

--^

chklink.f(17): error #5149: Illegal character in statement label field

The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.

----^

chklink.f(15): error #5120: Unterminated character constant

Please contact the application's support team for more information.

------------------------------^

chklink.f(17): error #5144: Invalid character_kind_parameter. No underscore

The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.

-----------------------------------------------------------------------------------------------------^

chklink.f(15): error #5082: Syntax error, found CHARACTER_CONSTANT 's support team for more information.plication failed to initialize properly (0xc0000142). Click on OK ' when expecting one of: ( % : . = =>

Please contact the application's support team for more information.

------------------------------^

chklink.f(17): error #5082: Syntax error, found END-OF-FILE when expecting one of: ;

The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.

-----------------------------------------------------------------------------------------------------^

compilation aborted for chklink.f (code 1)


I read the documentationas printed via ifort /help and saw that I needed to add /link in there.
I tried it. I got the same or almost the same set of error messages.

I even got this with:

ifort /c chklink.f

I rebooted the machine - I got the same messages!

I can only conclude that something has been corrupted on my machine, and my guess is it
has to do with the option /nodefaultlib: that I used incorrectly, but I can not be sure (and
I do not want to try it on another machine).

Regards,

Arjen
0 Kudos
2 Replies
mecej4
Honored Contributor III
456 Views
I have a suspicion that your have accidentally redirected the error messages from the compiler into what you think is a Fortran source file. Please type out the chklink.f file and see what it contains.

I think that E. Dijkstra's Rule-0 of programming can be helpful in situations such as this.
0 Kudos
Arjen_Markus
Honored Contributor I
456 Views
Oh, you may be very right! I was stupidly using this source file for logging my actions as well - and never thought that text wouldget compiled too

Well, better me being stupid, than the installation being corrupted.

Regards,

Arjen
0 Kudos
Reply