-m32 command switch does not work

Sysprogs forums Forums VisualGDB -m32 command switch does not work

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6589
    jungtao
    Participant

    Hi,

    I am using the trial version now. I have a fedora20 x86_64 as a linux build server (virtual machine).

    I am able to build under Linux terminal with compiler switch -m32. But not from Windows VS2015 with the CFLAGS under VisualGDB Project Properties set to:

    -m32 -Wall -ffloat-store -ggdb -ffunction-sections -O0

    Got this error message inside a pop-up window titled “Toolchain Test Failed”:

    Tool arguments: -Wl,–start-group “/tmp/VisualGDB_ToolchainTestProgram.o” -o “/tmp/VisualGDB_ToolchainTestProgram” -Wl,-gc-sections -Wl,–end-group
    /usr/bin/ld: i386 architecture of input file `/tmp/VisualGDB_ToolchainTestProgram.o’ is incompatible with i386:x86-64 output
    collect2: error: ld returned 1 exit status

    What do I need to do to enable -m32? Thanks

    #6598
    support
    Keymaster

    Looks like -m32 was specified in CFLAGS, but not in LDFLAGS, Please specify it in LDFLAGS as well.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.