Changes between Initial Version and Version 1 of Ticket #27925


Ignore:
Timestamp:
Jan 11, 2011, 10:22:00 AM (13 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27925

    • Property Owner changed from macports-tickets@… to mww@…
  • Ticket #27925 – Description

    initial v1  
    11Building a 64-bit binary with g++ 4.5.2 fails with linking error (Core2Duo, OS X 10.5.8, MacPorts 1.9.2, gcc 4.5.2_0)
    22
    3 '''ld warning: in /opt/local/lib/gcc45/libstdc++.dylib, file is not of required architecture'''[[BR]]
    4 '''ld warning: in /opt/local/lib/gcc45/libgcc_ext.10.5.dylib, missing required architecture x86_64 in file'''[[BR]]
    5 '''ld warning: in /opt/local/lib/gcc45/gcc/i386-apple-darwin9/4.5.2/libgcc.a, file is not of required architecture'''
    6 
    7 
     3{{{
     4ld warning: in /opt/local/lib/gcc45/libstdc++.dylib, file is not of required architecture
     5ld warning: in /opt/local/lib/gcc45/libgcc_ext.10.5.dylib, missing required architecture x86_64 in file
     6ld warning: in /opt/local/lib/gcc45/gcc/i386-apple-darwin9/4.5.2/libgcc.a, file is not of required architecture
     7}}}
    88
    99C++ example code for testing from http://en.literateprograms.org/Sieve_of_Eratosthenes_%28C_Plus_Plus%29
    1010
    11 '''32-bit version from above example builds well:'''[[BR]]
    12 $ g++-mp-4.5 -O3 -o test32 test.cpp Sieve.cpp -m32[[BR]]
     11'''32-bit version from above example builds well:'''
     12{{{
     13$ g++-mp-4.5 -O3 -o test32 test.cpp Sieve.cpp -m32
    1314$ ./test32 25
    1415
     
    242519
    252623
     27}}}
    2628
     29'''64-bit build process with errors:'''
     30{{{
     31$ g++-mp-4.5 -O3 -o test64 test.cpp Sieve.cpp -m64
    2732
    28 '''64-bit build process with errors:'''[[BR]]
    29 $ g++-mp-4.5 -O3 -o test64 test.cpp Sieve.cpp -m64[[BR]]
    30 
    31 ld warning: in /opt/local/lib/gcc45/libstdc++.dylib, file is not of required architecture[[BR]]
    32 ld warning: in /opt/local/lib/gcc45/libgcc_ext.10.5.dylib, missing required architecture x86_64 in file[[BR]]
     33ld warning: in /opt/local/lib/gcc45/libstdc++.dylib, file is not of required architecture
     34ld warning: in /opt/local/lib/gcc45/libgcc_ext.10.5.dylib, missing required architecture x86_64 in file
    3335ld warning: in /opt/local/lib/gcc45/gcc/i386-apple-darwin9/4.5.2/libgcc.a, file is not of required architecture
    3436Undefined symbols:
     
    8991ld: symbol(s) not found
    9092collect2: ld returned 1 exit status
     93}}}