Error building on OS X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to build a PowerPC-targeted gcc (4.3.3) on a PowerPC OS X
10.5 system.  I have the latest Xcode installed, which comes with gcc
4.0 and 4.2.  The reason I'm doing this is because I want to build a
4.3-based toolchain that can generate Linux binaries for PowerPC
embedded systems.

Unfortunately, I'm not getting very far at all.  When I run this command:

../gcc-4.3.3/configure --target=powerpc-linux --program-prefix=powerpc-

I get this error:

checking for C compiler default output file name... configure: error:
C compiler cannot create executables

and config.log says this:

configure:3194: checking for C compiler default output file name
configure:3197: gcc    conftest.c  >&5
/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld: warning unknown
-macosx_version_min parameter value: 10.5.6 ignored (using 10.1)
/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld:
/usr/lib/gcc/powerpc-apple-darwin9/4.0.1/../../../libgcc_s.10.5.dylib
load command 7 unknown cmd field
/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld:
/usr/lib/gcc/powerpc-apple-darwin9/4.0.1/../../../libSystem.dylib
unknown flags (type) of section 9 (__TEXT,__dof_plockstat) in load
command 0
collect2: ld returned 1 exit status
configure:3200: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3239: error: C compiler cannot create executables
See `config.log' for more details.



-- 
Timur Tabi
Linux kernel developer at Freescale

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux