Giter Site home page Giter Site logo

Comments (10)

fgsfdsfgs avatar fgsfdsfgs commented on September 16, 2024 1

Ah shit, misclicked. Can you try with -m? Change it on line 68 or just pull the latest commit. Seems to work on the VM.
Don't forget to run clean before you rebuild as well to get rid of the 64-bit objects.

from perfect_dark.

fgsfdsfgs avatar fgsfdsfgs commented on September 16, 2024

Absolutely no reason, that's just how I have it set up locally. I do development in a 32-bit MinGW environment on Windows, so when I was testing it on Linux I set it up essentially the same way. Will probably change later.

from perfect_dark.

megatog615 avatar megatog615 commented on September 16, 2024

Ah, okay. Thanks for supporting Linux.

from perfect_dark.

fgsfdsfgs avatar fgsfdsfgs commented on September 16, 2024

Made it default to host gcc with -m32 on Linux specifically. Old behavior can be achieved by specifying TOOLCHAIN=i686-linux-gnu- on the command line. Thanks for the suggestion.
Note that you still have to pass TARGET_PLATFORM=i686-linux when building on x86_64.

from perfect_dark.

megatog615 avatar megatog615 commented on September 16, 2024

It is broken now. Ends up dying at invitems.c, lots of errors about initializer element is not computable at load time. -std=c11 is getting passed so I don't know why this is happening.

EDIT: the file command is showing that the .o files are 64-bit and -m32 isn't being passed to gcc.

from perfect_dark.

fgsfdsfgs avatar fgsfdsfgs commented on September 16, 2024

How are you invoking make?
Should be something like make -f Makefile.port TARGET_PLATFORM=i686-linux.
Also can you give me the output of uname -p and uname -s?

from perfect_dark.

megatog615 avatar megatog615 commented on September 16, 2024

make -f Makefile.port
I have tried with TARGET_PLATFORM=i686-linux and it does the same thing.

uname -p: unknown
uname -s: Linux

I think uname -p is unreliable. The -m flag returns x86_64.

from perfect_dark.

fgsfdsfgs avatar fgsfdsfgs commented on September 16, 2024

I think uname -p is unreliable. The -m flag returns x86_64.

Yeah, probably. I've only tested it on one Ubuntu VM and there it does indeed return x86_64. Under MSYS it does return unknown, but there I just check for MINGW64 instead.

from perfect_dark.

megatog615 avatar megatog615 commented on September 16, 2024
$ make -f Makefile.port
Host platform: x86_64-linux
Target platform: x86_64-linux
Makefile.port:89: *** 64-bit target platforms are not supported yet.  Stop.

Adding TARGET_PLATFORM=i686-linux works.

from perfect_dark.

fgsfdsfgs avatar fgsfdsfgs commented on September 16, 2024

Okay, cool, that's basically the intended behavior. Thanks for testing.

from perfect_dark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.