Mednafen Members Members   Search Search   Help Help   Register Register   Login Login   Home Home
Home » Mednafen » Development » Trying to cross-compile..
Show: Today's Messages  :: Show Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Trying to cross-compile.. [message #3420] Thu, 24 April 2014 09:56 Go to next message
slenkar  [PM]
I am trying to compile for a MIPS processor from x86 linux

I used this command:

./configure --build i686-pc-linux-gnu --host mipsel-gcw0-linux-uclibc --prefix=/opt/gcw0-toolchain/usr -target mipsel-gcw0-linux-uclibc

it says:
configure: error: cannot run test program while cross compiling
See `config.log' for more details

in config.log it says:

configure:21914: checking for CFLocaleCopyCurrent
configure:21932: mipsel-gcw0-linux-uclibc-g++ -o conftest -g -O2 conftest.cpp -Wl,-framework -Wl,CoreFoundation >&5
conftest.cpp:118:37: fatal error: CoreFoundation/CFLocale.h: No such file or directory
#include <CoreFoundation/CFLocale.h>
^
compilation terminated.
configure:21932: $? = 1
configure: failed program was:
| /* confdefs.h */

nfigure:22004: checking whether _snprintf is declared
configure:22024: mipsel-gcw0-linux-uclibc-g++ -c -g -O2 conftest.cpp >&5
conftest.cpp: In function 'int main()':
conftest.cpp:138:22: error: '_snprintf' was not declared in this scope
char *p = (char *) _snprintf;
^
configure:22024: $? = 1
configure: failed program was:
| /* confdefs.h */

configure:21993: mipsel-gcw0-linux-uclibc-g++ -o conftest -g -O2 conftest.cpp >&5
/tmp/cc9f0khI.o:/root/Downloads/mednafen/conftest.cpp:157: undefined reference to `newlocale'
/tmp/cc9f0khI.o:/root/Downloads/mednafen/conftest.cpp:157: undefined reference to `newlocale'
collect2: error: ld returned 1 exit status
configure:21993: $? = 1
configure: failed program was:
| /* confdefs.h */
Re: Trying to cross-compile.. [message #3421 is a reply to message #3420 ] Thu, 24 April 2014 16:36 Go to previous messageGo to next message
Administrator  [PM]
Try this replacement configure script.

  • Attachment: configure
    (Size: 917.15KB, Downloaded 227 time(s))

Re: Trying to cross-compile.. [message #3422 is a reply to message #3420 ] Fri, 25 April 2014 13:03 Go to previous messageGo to next message
slenkar  [PM]
thanks it configures now but i get this error
In file included from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/stdio.h:72:0,
from ../driver.h:5,
from main.h:4,
from input.cpp:18:
../file.h:67:13: error: expected unqualified-id before '__extension__'
inline int fgetc(void)
^
../file.h:67:13: error: expected ')' before '__extension__'
../file.h:67:13: error: expected unqualified-id before ')' token
inline int fgetc(void)

[Updated on: Fri, 25 April 2014 13:07]

Re: Trying to cross-compile.. [message #3423 is a reply to message #3420 ] Fri, 25 April 2014 18:20 Go to previous messageGo to next message
Administrator  [PM]
Your toolchain's libc looks to be buggy/broken/non-conformant.

[Updated on: Fri, 25 April 2014 18:20]

Re: Trying to cross-compile.. [message #3430 is a reply to message #3420 ] Sun, 27 April 2014 20:56 Go to previous message
slenkar  [PM]
ok thanks I managed to work around that,

[Updated on: Mon, 28 April 2014 10:42]

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:Mednafen 0.9.33.2 Mac OS X 10.9 install script
Next Topic:CD support for .Z / .Z.table ?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ ]

Current Time: Sat May 18 13:14:58 CDT 2024
.:: Contact :: Home ::.

Powered by FUDforum.
Copyright © FUDforum Bulletin Board Software