Pagina 1 di 1

mingw32

Inviato: ven 27 mag 2011, 14:16
da so_slack
hello
how can i compile mingw32 on slackware x64 13.1
i found a slackbuild here http://forum.slackware-fr.org/viewtopic.php?id=731
but i have this error

Codice: Seleziona tutto

./mingw32-libs.SlackBuild

Codice: Seleziona tutto

checking if mkdir takes one argument... no
*** Configuration x86_64-pc-mingw32 not supported
make: *** [configure-gcc] Error 1
thk

Re: mingw32

Inviato: ven 27 mag 2011, 14:46
da Blallo
I suppose that mingw32 is for 32bit systems
On a 64-bit system, you must install multilib packages from alien
http://connie.slackware.com/~alien/multilib/
After this, you obtain a multilib Slackware with a cross-compiler for 32bit architectures

Re: mingw32

Inviato: ven 27 mag 2011, 14:52
da so_slack
yes i already have the multilib so i can compile and install binutils-mingw32
but i have this error with mingw32-libs

Codice: Seleziona tutto

 ./mingw32-libs.SlackBuild

Codice: Seleziona tutto

/tmp/ccK5hOF6.s: Assembler messages:
/tmp/ccK5hOF6.s:5: Error: unknown pseudo-op: `.def'
/tmp/ccK5hOF6.s:5: Error: unknown pseudo-op: `.scl'
/tmp/ccK5hOF6.s:5: Error: unrecognized symbol type "32"
/tmp/ccK5hOF6.s:5: Error: unknown pseudo-op: `.endef'
/tmp/ccK5hOF6.s:7: Error: invalid instruction suffix for `push'
/tmp/ccK5hOF6.s:9: Error: invalid instruction suffix for `pop'
/tmp/ccK5hOF6.s:11: Error: unknown pseudo-op: `.def'
/tmp/ccK5hOF6.s:11: Error: unknown pseudo-op: `.scl'
/tmp/ccK5hOF6.s:11: Error: unrecognized symbol type "32"
/tmp/ccK5hOF6.s:11: Error: unknown pseudo-op: `.endef'
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/tmp/mingw32/stage1-build/gcc'
make: *** [all-gcc] Error 2

Re: mingw32

Inviato: ven 27 mag 2011, 15:05
da Vito
Maybe you've missed some dependencies.

Re: mingw32

Inviato: ven 27 mag 2011, 15:53
da hashbang

Re: mingw32

Inviato: ven 27 mag 2011, 15:56
da so_slack
Vito ha scritto:Maybe you've missed some dependencies.
this is the compilation loghttp://noog.fr/output.log and i can't find dependencies error :p

Re: mingw32

Inviato: ven 27 mag 2011, 16:36
da Vito
so_slack ha scritto: this is the compilation loghttp://noog.fr/output.log and i can't find dependencies error :p

Codice: Seleziona tutto

checking host system type... x86_64-unknown-linux-gnu
I think that this "unknown" it's not a good parameter.
But I'm not really sure.It's only an idea.

Did you try to clean your build directory?

Re: mingw32

Inviato: ven 27 mag 2011, 17:02
da so_slack
Vito ha scritto:
so_slack ha scritto: this is the compilation loghttp://noog.fr/output.log and i can't find dependencies error :p

Codice: Seleziona tutto

checking host system type... x86_64-unknown-linux-gnu
I think that this "unknown" it's not a good parameter.
But I'm not really sure.It's only an idea.

Did you try to clean your build directory?
yes i cleaned the build directory and i have the same result with a x32 slackware version on another computer :roll:

Re: mingw32

Inviato: ven 27 mag 2011, 17:16
da Vito
Try to take a look the the links that atomix suggested.

Re: mingw32

Inviato: ven 27 mag 2011, 17:29
da Blallo
Inside the SlackBuild, change

Codice: Seleziona tutto

  --build=$ARCH-pc-linux-gnu
with

Codice: Seleziona tutto

  --build=$ARCH-slackware-linux
and try to execute this

Codice: Seleziona tutto

sh /etc/profile.d/32dev.sh
before executing the SlackBuild

Re: mingw32

Inviato: ven 27 mag 2011, 18:13
da so_slack
jimmy_page_89 ha scritto:Inside the SlackBuild, change

Codice: Seleziona tutto

  --build=$ARCH-pc-linux-gnu
with

Codice: Seleziona tutto

  --build=$ARCH-slackware-linux
and try to execute this

Codice: Seleziona tutto

sh /etc/profile.d/32dev.sh
before executing the SlackBuild
ok i made the modifications but same problem
here is my log file
http://noog.fr/slackbuild/mingw/mingw32 ... utput2.log
and i transfered the whole directory here
http://noog.fr/slackbuild/mingw/mingw32-libs
with the modified slackbuild
http://noog.fr/slackbuild/mingw/mingw32 ... SlackBuild

Re: mingw32

Inviato: ven 27 mag 2011, 18:37
da 414N
The error seems to be caused by as (the assembler), which seems the system one, not the one from binutils-mingw32.
This should be caused by the mingw32 bin path (/opt/mingw32/bin) being last inside PATH.
Try to put it first in PATH, changing this snippet from mingw32-libs.SlackBuild from

Codice: Seleziona tutto

if ! echo $PATH | grep -q /opt/mingw32/bin ; then
    PATH=$PATH:/opt/mingw32/bin
fi
to

Codice: Seleziona tutto

if ! echo $PATH | grep -q /opt/mingw32/bin ; then
    PATH=/opt/mingw32/x86_64-pc-mingw32/bin:$PATH
fi
assuming that binutils-mingw32 is installed in that path. Please check that /opt/mingw32/x86_64-pc-mingw32/bin/as exists.
This should solve the issue.

Re: mingw32

Inviato: dom 29 mag 2011, 10:16
da so_slack
ok after the modification the error is the following

Codice: Seleziona tutto

	   -c /tmp/mingw32/gcc-3.4.5-20060117-2/gcc/crtstuff.c -DCRT_BEGIN \
	  -o crtbegin.o
/tmp/cc3tRX0n.s: Assembler messages:
/tmp/cc3tRX0n.s:7: Error: suffix or operands invalid for `push'
/tmp/cc3tRX0n.s:9: Error: suffix or operands invalid for `pop'
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/tmp/mingw32/stage1-build/gcc'
make: *** [all-gcc] Error 2

Re: mingw32

Inviato: dom 29 mag 2011, 10:28
da 414N
That error is typical on 64 bit systems when you try to assemble 32 bit assembly in 64 bit code.
My suggestion is to modify the CPUOPT variable, adding the "-m32" flag before compilation starts.
You can do this just before the configure:

Codice: Seleziona tutto

CPUOPT+=" -m32"

Re: mingw32

Inviato: dom 29 mag 2011, 11:57
da so_slack
414N ha scritto:That error is typical on 64 bit systems when you try to assemble 32 bit assembly in 64 bit code.
My suggestion is to modify the CPUOPT variable, adding the "-m32" flag before compilation starts.
You can do this just before the configure:

Codice: Seleziona tutto

CPUOPT+=" -m32"
i try to change

Codice: Seleziona tutto

x86_64)
    CPUOPT="-O2 -fPIC"
    ;;
*)
to

Codice: Seleziona tutto

x86_64)
    CPUOPT="-O2 -fPIC -m32"
    ;;
*)
but same error :p