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

IFX compiler makes a futile attempt to assemble

mecej4
Honored Contributor III
626 Views

When the ifx compiler driver is asked to produce assembly output with the /Fa option, after producing a GNU assembler format file it seems to attempt to assemble the file just produced but as if it were in MASM format.

From years of using ifort, we expect that the output assembly file is meant only for inspection and rarely suitable for assembling. The driver was not given any input assembly files, so it should not be attempting conversion to .OBJ files.

A related thread from about two years ago:

https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-response-from-IFX-compiler-to-FA-option/m-p/1239635

 

 

S:\FPU_BENCH>ifx /O2 /Qxhost /Fa nfpub.f
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2023.0.0 Build 20221201
Copyright (C) 1985-2022 Intel Corporation. All rights reserved.

 Assembling: nfpub.asm
nfpub.asm(1) : error A2008:syntax error : .
nfpub.asm(2) : error A2008:syntax error : .
nfpub.asm(3) : error A2008:syntax error : .
nfpub.asm(4) : error A2008:syntax error : .type
nfpub.asm(5) : error A2008:syntax error : .
nfpub.asm(6) : error A2008:syntax error : .
nfpub.asm(7) : error A2008:syntax error : .
nfpub.asm(8) : error A2008:syntax error : .
nfpub.asm(9) : error A2008:syntax error : .
nfpub.asm(10) : error A2008:syntax error : .
nfpub.asm(11) : error A2008:syntax error : .type
nfpub.asm(12) : error A2008:syntax error : .
nfpub.asm(13) : error A2008:syntax error : .
nfpub.asm(14) : error A2008:syntax error : .
nfpub.asm(15) : error A2008:syntax error : .
nfpub.asm(16) : error A2034:must be in segment block
   ....
nfpub.asm(100) : error A2008:syntax error : .
nfpub.asm(101) : fatal error A1012:error count exceeds 100; stopping assembly

 

 

0 Kudos
5 Replies
Barbara_P_Intel
Moderator
522 Views

The remedy for this and the other thread you point to is in its final stages. Look for it in a release later this year. 

 

0 Kudos
mecej4
Honored Contributor III
478 Views

Thanks, that is good to know.

0 Kudos
rokelley
New Contributor I
258 Views

Is this fixed now? Related question: is there somewhere we can look for more detailed release notes for each version (bug fixes, etc.)?

0 Kudos
Barbara_P_Intel
Moderator
222 Views

As reported in the thread that @mecej4 noted above. Yes.

I just tested ifx 2024.0.0 and it works.

>ifx /Fa p5.f90
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2024.0.0 Build 20231017
Copyright (C) 1985-2023 Intel Corporation. All rights reserved.

ifx: command line remark #10439: option '/Fa' creates an assembly file but not an object file.
>more p5.asm
        .text
        .def    @feat.00;
        .scl    3;
        .type   0;
        .endef
        .globl  @feat.00
.set @feat.00, 0
        .file   "p5.f90"
        .def    M.;
        .scl    2;
        .type   32;
        .endef
        .globl  M.
        .p2align        4, 0x90
M.:
        retq

        .def    M_mp_SUB;
        .scl    2;
        .type   32;
        .endef
        .globl  M_mp_SUB
        .p2align        4, 0x90
M_mp_SUB:
.seh_proc M_mp_SUB
        pushq   %r14
        .seh_pushreg %r14
        pushq   %rsi
        .seh_pushreg %rsi

 

0 Kudos
Barbara_P_Intel
Moderator
221 Views

>> is there somewhere we can look for more detailed release notes for each version (bug fixes, etc.)?

No, we don't publish a list of bug fixes. I argue against it because often the subject lines are just too cryptic for the reader to decide if the bug is related to their issue.

We do make the effort to post on the original thread when a bug is fixed along with the compiler version.

0 Kudos
Reply