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

Getting Started

pwalkergeoalgorithms
1.165Aufrufe
I have just downloaded Intel Fortran and am trying to compile and run a very simple program having one file with an "end" statement. I am following the procedure in the XCode documentation. I get a link error:

Command /Developer/usr/local/bin/ifort-11.1-base/bin/intel64/ifort failed with exit code 1

I am running OSX 10.6.1 Xcode 3.2


What have I missed? Thank-you


The error output is:

Ld build/Debug/Untitled normal i386

cd /Users/peterwalker/Desktop/Untitled

setenv MACOSX_DEPLOYMENT_TARGET 10.4

/Developer/usr/local/bin/ifort-11.1-base/bin/intel64/ifort -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/Users/peterwalker/Desktop/Untitled/build/Debug -F/Users/peterwalker/Desktop/Untitled/build/Debug -filelist /Users/peterwalker/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Objects-normal/i386/Untitled.LinkFileList -mmacosx-version-min=10.4 -dev-usr-root=/Developer/usr "" "" -o /Users/peterwalker/Desktop/Untitled/build/Debug/Untitled

Undefined symbols:

"_open$UNIX2003", referenced from:

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

"_close$UNIX2003", referenced from:

_for__io_return in libifcore.a(for_diags_intel.o)

_for__close_proc in libifcore.a(for_close_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

"_kill$UNIX2003", referenced from:

_for__get_vm in libifcore.a(for_vm.o)

_for__get_vm in libifcore.a(for_vm.o)

_for__get_vm in libifcore.a(for_vm.o)

_for__realloc_vm in libifcore.a(for_vm.o)

_for__free_vm in libifcore.a(for_vm.o)

_for_allocate in libifcore.a(for_vm.o)

_for_allocate in libifcore.a(for_vm.o)

_for_allocate in libifcore.a(for_vm.o)

_for_allocate in libifcore.a(for_vm.o)

_for_alloc_allocatable in libifcore.a(for_vm.o)

_for_alloc_allocatable in libifcore.a(for_vm.o)

_for_alloc_allocatable in libifcore.a(for_vm.o)

_for_alloc_allocatable in libifcore.a(for_vm.o)

_for_deallocate in libifcore.a(for_vm.o)

_for_deallocate in libifcore.a(for_vm.o)

_for_deallocate in libifcore.a(for_vm.o)

_for_dealloc_allocatable in libifcore.a(for_vm.o)

_for_dealloc_allocatable in libifcore.a(for_vm.o)

"_strerror$UNIX2003", referenced from:

_for_gerror_i in libifcore.a(for_diags_intel.o)

"_system$UNIX2003", referenced from:

_for__close_proc in libifcore.a(for_close_proc.o)

_for__close_proc in libifcore.a(for_close_proc.o)

"_fcntl$UNIX2003", referenced from:

_for__close_proc in libifcore.a(for_close_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

"_write$UNIX2003", referenced from:

_for__flush_file_buffer in libifcore.a(for_wseq_fmt.o)

_for__flush_file_buffer in libifcore.a(for_wseq_fmt.o)

_for__write_output. in libifcore.a(for_put.o)

_for__write_output. in libifcore.a(for_put.o)

_for__write_output. in libifcore.a(for_put.o)

_for__write_output. in libifcore.a(for_put.o)

_for__put_d in libifcore.a(for_put.o)

_for__put_d in libifcore.a(for_put.o)

_for__flush_file_buffer in libifcore.a(for_wseq.o)

_for__flush_file_buffer in libifcore.a(for_wseq.o)

"_read$UNIX2003", referenced from:

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__get_s in libifcore.a(for_get.o)

_for__get_s in libifcore.a(for_get.o)

_for__get_s in libifcore.a(for_get.o)

_for__get_s in libifcore.a(for_get.o)

_for__read_input. in libifcore.a(for_get.o)

_for__read_input. in libifcore.a(for_get.o)

_for__get_d in libifcore.a(for_get.o)

_for__get_d in libifcore.a(for_get.o)

_for__get_d in libifcore.a(for_get.o)

_for__get_d in libifcore.a(for_get.o)

ld: symbol(s) not found

Command /Developer/usr/local/bin/ifort-11.1-base/bin/intel64/ifort failed with exit code 1

0 Kudos
5 Antworten
Kevin_D_Intel
Mitarbeiter
1.165Aufrufe

Have a look at the project settings for your Target. Specifically, Build (tab) > Deployment > Mac OS X Deployment Target.

From the output provided it appears Xcode defaulted to Mac OS X 10.4, which the 11.1 compilers do not support. Change the setting mentioned above to Mac OS X 10.5 and rebuild your target.
Ron_Green
Moderator
1.165Aufrufe
I have just downloaded Intel Fortran and am trying to compile and run a very simple program having one file with an "end" statement. I am following the procedure in the XCode documentation. I get a link error:

Command /Developer/usr/local/bin/ifort-11.1-base/bin/intel64/ifort failed with exit code 1

I am running OSX 10.6.1 Xcode 3.2


What have I missed? Thank-you


The error output is:

Ld build/Debug/Untitled normal i386

cd /Users/peterwalker/Desktop/Untitled

setenv MACOSX_DEPLOYMENT_TARGET 10.4

/Developer/usr/local/bin/ifort-11.1-base/bin/intel64/ifort -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/Users/peterwalker/Desktop/Untitled/build/Debug -F/Users/peterwalker/Desktop/Untitled/build/Debug -filelist /Users/peterwalker/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Objects-normal/i386/Untitled.LinkFileList -mmacosx-version-min=10.4 -dev-usr-root=/Developer/usr "" "" -o /Users/peterwalker/Desktop/Untitled/build/Debug/Untitled

Undefined symbols:

"_open$UNIX2003", referenced from:

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

"_close$UNIX2003", referenced from:

_for__io_return in libifcore.a(for_diags_intel.o)

_for__close_proc in libifcore.a(for_close_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

"_kill$UNIX2003", referenced from:

_for__get_vm in libifcore.a(for_vm.o)

_for__get_vm in libifcore.a(for_vm.o)

_for__get_vm in libifcore.a(for_vm.o)

_for__realloc_vm in libifcore.a(for_vm.o)

_for__free_vm in libifcore.a(for_vm.o)

_for_allocate in libifcore.a(for_vm.o)

_for_allocate in libifcore.a(for_vm.o)

_for_allocate in libifcore.a(for_vm.o)

_for_allocate in libifcore.a(for_vm.o)

_for_alloc_allocatable in libifcore.a(for_vm.o)

_for_alloc_allocatable in libifcore.a(for_vm.o)

_for_alloc_allocatable in libifcore.a(for_vm.o)

_for_alloc_allocatable in libifcore.a(for_vm.o)

_for_deallocate in libifcore.a(for_vm.o)

_for_deallocate in libifcore.a(for_vm.o)

_for_deallocate in libifcore.a(for_vm.o)

_for_dealloc_allocatable in libifcore.a(for_vm.o)

_for_dealloc_allocatable in libifcore.a(for_vm.o)

"_strerror$UNIX2003", referenced from:

_for_gerror_i in libifcore.a(for_diags_intel.o)

"_system$UNIX2003", referenced from:

_for__close_proc in libifcore.a(for_close_proc.o)

_for__close_proc in libifcore.a(for_close_proc.o)

"_fcntl$UNIX2003", referenced from:

_for__close_proc in libifcore.a(for_close_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

"_write$UNIX2003", referenced from:

_for__flush_file_buffer in libifcore.a(for_wseq_fmt.o)

_for__flush_file_buffer in libifcore.a(for_wseq_fmt.o)

_for__write_output. in libifcore.a(for_put.o)

_for__write_output. in libifcore.a(for_put.o)

_for__write_output. in libifcore.a(for_put.o)

_for__write_output. in libifcore.a(for_put.o)

_for__put_d in libifcore.a(for_put.o)

_for__put_d in libifcore.a(for_put.o)

_for__flush_file_buffer in libifcore.a(for_wseq.o)

_for__flush_file_buffer in libifcore.a(for_wseq.o)

"_read$UNIX2003", referenced from:

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__open_proc. in libifcore.a(for_open_proc.o)

_for__get_s in libifcore.a(for_get.o)

_for__get_s in libifcore.a(for_get.o)

_for__get_s in libifcore.a(for_get.o)

_for__get_s in libifcore.a(for_get.o)

_for__read_input. in libifcore.a(for_get.o)

_for__read_input. in libifcore.a(for_get.o)

_for__get_d in libifcore.a(for_get.o)

_for__get_d in libifcore.a(for_get.o)

_for__get_d in libifcore.a(for_get.o)

_for__get_d in libifcore.a(for_get.o)

ld: symbol(s) not found

Command /Developer/usr/local/bin/ifort-11.1-base/bin/intel64/ifort failed with exit code 1



Can you tell me what version of the compiler you have downloaded? The package name should be something like

m_cprof_p_11.1.067.dmg

OR from a command line: ifort -V

should say "11.1.067"

And the project was created as a Standard Tool, C project right? And you removed 'main.c' from the project sources?

ron
pwalkergeoalgorithms
1.165Aufrufe

Have a look at the project settings for your Target. Specifically, Build (tab) > Deployment > Mac OS X Deployment Target.

From the output provided it appears Xcode defaulted to Mac OS X 10.4, which the 11.1 compilers do not support. Change the setting mentioned above to Mac OS X 10.5 and rebuild your target.

Thank-you. This worked. I changed the target to 10.5 as suggested, then had a second link error. When I changed the SDK from 10.4 to 10.5, I could link and execute the program. My xcode project format is set to xcode 2.4 compatible, perhaps this is the reason that the target & sdk defaulted to 10.4. The project was cleaned before the second link.

Many thanks.
pwalkergeoalgorithms
1.165Aufrufe


Can you tell me what version of the compiler you have downloaded? The package name should be something like

m_cprof_p_11.1.067.dmg

OR from a command line: ifort -V

should say "11.1.067"

And the project was created as a Standard Tool, C project right? And you removed 'main.c' from the project sources?

ron
The .dmg is the one that you named above; the issue was resolved with the change of the target and sdk to 10.5 - Thanks PW

Quoc-An_L_Intel
Moderator
1.165Aufrufe
Antworten