Changes between Initial Version and Version 1 of Ticket #27925
- Timestamp:
- Jan 11, 2011, 10:22:00 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27925
- Property Owner changed from macports-tickets@… to mww@…
-
Ticket #27925 – Description
initial v1 1 1 Building 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) 2 2 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 {{{ 4 ld warning: in /opt/local/lib/gcc45/libstdc++.dylib, file is not of required architecture 5 ld warning: in /opt/local/lib/gcc45/libgcc_ext.10.5.dylib, missing required architecture x86_64 in file 6 ld warning: in /opt/local/lib/gcc45/gcc/i386-apple-darwin9/4.5.2/libgcc.a, file is not of required architecture 7 }}} 8 8 9 9 C++ example code for testing from http://en.literateprograms.org/Sieve_of_Eratosthenes_%28C_Plus_Plus%29 10 10 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 13 14 $ ./test32 25 14 15 … … 24 25 19 25 26 23 27 }}} 26 28 29 '''64-bit build process with errors:''' 30 {{{ 31 $ g++-mp-4.5 -O3 -o test64 test.cpp Sieve.cpp -m64 27 32 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]] 33 ld warning: in /opt/local/lib/gcc45/libstdc++.dylib, file is not of required architecture 34 ld warning: in /opt/local/lib/gcc45/libgcc_ext.10.5.dylib, missing required architecture x86_64 in file 33 35 ld warning: in /opt/local/lib/gcc45/gcc/i386-apple-darwin9/4.5.2/libgcc.a, file is not of required architecture 34 36 Undefined symbols: … … 89 91 ld: symbol(s) not found 90 92 collect2: ld returned 1 exit status 93 }}}