On 6/6/13 4:41 AM, 武尾 実 wrote:
> Dear All,
> 
> When I tried to compile several sources written by Fortran and C using g77 
> and gcc compiler,
> the compile procedures have finished without any error. However, I have 
> received following error
> messages during the link procedure. When I used Mac OS X 10.7, I didn't 
> receive any error messages
> using same sources and same makefile. The fink version is 0.34.8 and the OS X 
> is 10.8.4, now.
> I can't seem to find a solution on Fink's FAQ. Any suggestions for what I 
> need to do?
> Thanks,
> 
> *************************
>         Minoru Takeo
> [email protected]
>   Tel: +81-3-5841-5707
> *************************
> 
> g77 -O3 -I/Users/takeo/Programs/src/HYPODD/include -c ph2dt_v3.f -o ph2dt_v3.o
> g77 -O3 -I/Users/takeo/Programs/src/HYPODD/include -c cluster.f -o cluster.o
> g77 -O3 -I/Users/takeo/Programs/src/HYPODD/include -c datetime.f -o datetime.o
> g77 -O3 -I/Users/takeo/Programs/src/HYPODD/include -c delaz.f -o delaz.o
> g77 -O3 -I/Users/takeo/Programs/src/HYPODD/include -c ifindi.f -o ifindi.o
> g77 -O3 -I/Users/takeo/Programs/src/HYPODD/include -c indexx.f -o indexx.o
> g77 -O3 -I/Users/takeo/Programs/src/HYPODD/include -c indexxi.f -o indexxi.o
> g77 -O3 -I/Users/takeo/Programs/src/HYPODD/include -c sorti.f -o sorti.o
> g77 -O3 -I/Users/takeo/Programs/src/HYPODD/include -c trimlen.f -o trimlen.o
> gcc -O0 -I/Users/takeo/Programs/src/HYPODD/include   -c -o atoangle_.o 
> atoangle_.c
> gcc -O0 -I/Users/takeo/Programs/src/HYPODD/include   -c -o atoangle.o 
> atoangle.c
> gcc -O0 -I/Users/takeo/Programs/src/HYPODD/include   -c -o rpad_.o rpad_.c
> gcc -O0 -I/Users/takeo/Programs/src/HYPODD/include   -c -o sscanf3_.o 
> sscanf3_.c
> g77 -O3 -I/Users/takeo/Programs/src/HYPODD/include ph2dt_v3.o cluster.o 
> datetime.o delaz.o ifindi.o indexx.o indexxi.o sorti.o trimlen.o atoangle_.o 
> atoangle.o rpad_.o sscanf3_.o -o ph2dt_v3
> ld: warning: -macosx_version_min not specified, assuming 10.7
> ld: warning: ld: warning: ld: warning: ld: warning: ignoring file 
> atoangle_.o, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 
> 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not 
> the architecture being linked (i386): atoangle_.oignoring file atoangle.o, 
> file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 
> 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the 
> architecture being linked (i386): atoangle.oignoring file rpad_.o, file was 
> built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 
> 0x 3 0x 0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being 
> linked (i386): rpad_.oignoring file sscanf3_.o, file was built for 
> unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 
> 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked 
> (i386): sscanf3_.o
> 
> 
> 
> Undefined symbols for architecture i386:
>    "_atoangle_", referenced from:
>        _MAIN__ in ph2dt_v3.o
>    "_rpad_", referenced from:
>        _MAIN__ in ph2dt_v3.o
>    "_sscanf3_", referenced from:
>        _MAIN__ in ph2dt_v3.o
> ld: symbol(s) not found for architecture i386
> collect2: ld はステータス 1 で終了しました
> make: *** [ph2dt_v3] Error 1
> 
> 
> 
> 

Excuse me if I'm missing something, but I don't see anything involving
Fink in this, since you're not building any Fink package and we don't
provide g77 for 10.8.

However, your error _is_ something we see occasionally, and it is due to
your g77 compiler building i386 binaries, while your gcc compiler builds
x86_64 binaries by default.  You can use "gcc -arch i386 ..." to make
gcc build as i386.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to