mingw32

Se avete problemi con l'installazione e la configurazione di Slackware64 postate qui. Non usate questo forum per argomenti che trattano la Slackware32 o generali... per quelli usate rispettivamente il forum Slackware e Gnu/Linux in genere.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware64 usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware64, se l'argomento è Slackware32 o generale usate rispettivamente il forum Slackware o Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Rispondi
so_slack
Linux 0.x
Linux 0.x
Messaggi: 19
Iscritto il: gio 6 gen 2011, 16:16
Nome Cognome: noog
Slackware: 13.1
Kernel: x86_64

mingw32

Messaggio 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

Avatar utente
Blallo
Packager
Packager
Messaggi: 3302
Iscritto il: ven 12 ott 2007, 11:37
Nome Cognome: Savino Liguori
Slackware: 14.2 / 12.2
Kernel: 4.4.14-smp
Desktop: DWM
Località: Torino / Torremaggiore (FG)
Contatta:

Re: mingw32

Messaggio 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

so_slack
Linux 0.x
Linux 0.x
Messaggi: 19
Iscritto il: gio 6 gen 2011, 16:16
Nome Cognome: noog
Slackware: 13.1
Kernel: x86_64

Re: mingw32

Messaggio 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

Avatar utente
Vito
Staff
Staff
Messaggi: 4182
Iscritto il: mar 5 dic 2006, 17:28
Nome Cognome: Vito
Desktop: MacOS
Località: Monaco (DE)
Contatta:

Re: mingw32

Messaggio da Vito »

Maybe you've missed some dependencies.
"Stat rosa pristina nomina, nomina nuda tenemus." [ Umberto Eco - Il nome della rosa]

"Faber est suae quisque fortunae ." [ Appio Claudio Cieco]


so_slack
Linux 0.x
Linux 0.x
Messaggi: 19
Iscritto il: gio 6 gen 2011, 16:16
Nome Cognome: noog
Slackware: 13.1
Kernel: x86_64

Re: mingw32

Messaggio 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

Avatar utente
Vito
Staff
Staff
Messaggi: 4182
Iscritto il: mar 5 dic 2006, 17:28
Nome Cognome: Vito
Desktop: MacOS
Località: Monaco (DE)
Contatta:

Re: mingw32

Messaggio 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?
"Stat rosa pristina nomina, nomina nuda tenemus." [ Umberto Eco - Il nome della rosa]

"Faber est suae quisque fortunae ." [ Appio Claudio Cieco]

so_slack
Linux 0.x
Linux 0.x
Messaggi: 19
Iscritto il: gio 6 gen 2011, 16:16
Nome Cognome: noog
Slackware: 13.1
Kernel: x86_64

Re: mingw32

Messaggio 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:

Avatar utente
Vito
Staff
Staff
Messaggi: 4182
Iscritto il: mar 5 dic 2006, 17:28
Nome Cognome: Vito
Desktop: MacOS
Località: Monaco (DE)
Contatta:

Re: mingw32

Messaggio da Vito »

Try to take a look the the links that atomix suggested.
"Stat rosa pristina nomina, nomina nuda tenemus." [ Umberto Eco - Il nome della rosa]

"Faber est suae quisque fortunae ." [ Appio Claudio Cieco]

Avatar utente
Blallo
Packager
Packager
Messaggi: 3302
Iscritto il: ven 12 ott 2007, 11:37
Nome Cognome: Savino Liguori
Slackware: 14.2 / 12.2
Kernel: 4.4.14-smp
Desktop: DWM
Località: Torino / Torremaggiore (FG)
Contatta:

Re: mingw32

Messaggio 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

so_slack
Linux 0.x
Linux 0.x
Messaggi: 19
Iscritto il: gio 6 gen 2011, 16:16
Nome Cognome: noog
Slackware: 13.1
Kernel: x86_64

Re: mingw32

Messaggio 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

Avatar utente
414N
Iper Master
Iper Master
Messaggi: 2922
Iscritto il: mer 13 feb 2008, 16:19
Slackware: 15.0
Kernel: 5.15.19
Desktop: KDE5
Località: Bulagna
Contatta:

Re: mingw32

Messaggio 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.

so_slack
Linux 0.x
Linux 0.x
Messaggi: 19
Iscritto il: gio 6 gen 2011, 16:16
Nome Cognome: noog
Slackware: 13.1
Kernel: x86_64

Re: mingw32

Messaggio 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

Avatar utente
414N
Iper Master
Iper Master
Messaggi: 2922
Iscritto il: mer 13 feb 2008, 16:19
Slackware: 15.0
Kernel: 5.15.19
Desktop: KDE5
Località: Bulagna
Contatta:

Re: mingw32

Messaggio 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"

so_slack
Linux 0.x
Linux 0.x
Messaggi: 19
Iscritto il: gio 6 gen 2011, 16:16
Nome Cognome: noog
Slackware: 13.1
Kernel: x86_64

Re: mingw32

Messaggio 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

Rispondi