https://bugs.winehq.org/show_bug.cgi?id=41158
Bug ID: 41158 Summary: libs/port - error building on NetBSD Product: Wine-staging Version: 1.9.16 Hardware: x86-64 OS: NetBSD Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: adrien_fernandes2@hotmail.com CC: erich.e.hoover@wine-staging.com, michael@fds-team.de, sebastian@fds-team.de
Created attachment 55379 --> https://bugs.winehq.org/attachment.cgi?id=55379 Compile error in libs/port
Hello, First of all, you might know that NetBSD amd64 doesn't have user_ldt yet so MAYBE it is the cause of the compilation error (I have no idea... unfortunately). Even if it builds correctly, I won't be able to use it but I want to continue to maintain the package until we can use it.
I didn't apply any patch, I am building wine-staging 1.9.16 from https://github.com/wine-compholio/wine-patched/archive/staging-1.9.16.tar.gz which is already patched.
Here is more informations about my OS : NetBSD 7.99.34 (GENERIC.201607240240Z) amd64 It is NetBSD-current.
In advance, excuse me if it is not a real issue, if it is because of amd64 or maybe an error from me.
Please let me know if you have any question. Adrien.
https://bugs.winehq.org/show_bug.cgi?id=41158
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |-unknown Product|Wine-staging |Wine
--- Comment #1 from Sebastian Lackner sebastian@fds-team.de --- This issue does not look Wine Staging related. On the first sight it seems there is something wrong with the way how you are trying to compiling Wine.
When I'm correctly interpreting the log you are trying to use a 64-bit compiler (x86_64--netbsd-gcc) to do a 32-bit build (no --enable-win64 passed to ./configure). As a result, Wines ./configure script defines __i386__ so you end up trying to compile 32-bit and 64-bit at the same time.
https://bugs.winehq.org/show_bug.cgi?id=41158
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Without --enable-win64 it should be a fully 32-bit build, but the compiler is apparently still 64-bit, even though we use cc -m32. It looks like a toolchain bug.
https://bugs.winehq.org/show_bug.cgi?id=41158
--- Comment #3 from Adrien Fernandes adrien_fernandes2@hotmail.com --- Oh God... That newbie mistake :( I was so used to build in i386 that I totally forgot to enable it !
https://bugs.winehq.org/show_bug.cgi?id=41158
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
--- Comment #4 from Austin English austinenglish@gmail.com --- (In reply to Adrien Fernandes from comment #3)
Oh God... That newbie mistake :( I was so used to build in i386 that I totally forgot to enable it !
So, if you enable i386, does it work? I.e. is this invalid?
https://bugs.winehq.org/show_bug.cgi?id=41158
--- Comment #5 from Adrien Fernandes adrien_fernandes2@hotmail.com --- No, in pkgsrc, when you "bootstrapped" in 64 bits, you can NOT build in 32 bits. You have to make a new pkgsrc prefix in 32 bits. I already tried on NetBSD i386 and it perfectly built but I didn't try on NetBSD amd64 to build i386 Wine
https://bugs.winehq.org/show_bug.cgi?id=41158
--- Comment #6 from Austin English austinenglish@gmail.com --- (In reply to Adrien Fernandes from comment #5)
No, in pkgsrc, when you "bootstrapped" in 64 bits, you can NOT build in 32 bits. You have to make a new pkgsrc prefix in 32 bits. I already tried on NetBSD i386 and it perfectly built but I didn't try on NetBSD amd64 to build i386 Wine
Can you attach logs with --enable-win64?