Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

canadian build: fix mingw32 #445

Closed
wants to merge 1 commit into from
Closed

Conversation

mcrapet
Copy link
Contributor

@mcrapet mcrapet commented Sep 12, 2016

Makes libgcc compilation fail because of broken "sys/types.h" include (missing __caddr_t typedef).
This issue is around for a while and apply on both eglibc and glibc.

Tested on glib-2.23 with target=arm, build=linux, host=mingw32.

Signed-off-by: Matthieu Crapet mcrapet@gmail.com

@mcrapet
Copy link
Contributor Author

mcrapet commented Sep 12, 2016

I'm using Ubuntu 14.04 (trusty).

  1. i686-w64-mingw32 toolchain (produce linux gcc 5.4 compiler to generate win32 binaries)
CT_EXPERIMENTAL=y
CT_ARCH_ARCH="core2"
CT_ARCH_x86=y
CT_TARGET_VENDOR="w64"
CT_KERNEL_windows=y
CT_WINAPI_V_4_0_4=y
CT_CC_GCC_SYSTEM_ZLIB=y
CT_CC_LANG_CXX=
  1. arm-unknown-linux-gnueabi toolchain (produce win32 gcc 4.9 compiler to generate arm binaries)
CT_EXPERIMENTAL=y
CT_ARCH_arm=y
CT_TARGET_VENDOR=""
CT_CANADIAN=y
CT_HOST="mingw32"
CT_HOST_PREFIX="${HOME}/x-tools/i686-w64-mingw32/bin/i686-w64-mingw32-"
CT_KERNEL_linux=y
CT_KERNEL_V_3_10=y
CT_CC_GCC_SHOW_LINARO=y
CT_CC_GCC_V_linaro_4_9=y
CT_CC_LANG_CXX=y

@mcrapet
Copy link
Contributor Author

mcrapet commented Sep 15, 2016

[ERROR]    /home/user/crosstool-ng/.build/src/gcc-linaro-4.9-2015.06/libgo/runtime/mprof.goc:501:19: error: 'enablegc' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Note: Tested also successfully using linaro-4.9-2016.02.

Signed-off-by: Matthieu Crapet <mcrapet@gmail.com>
@mcrapet
Copy link
Contributor Author

mcrapet commented Sep 20, 2016

Warning: It seems that I've made a mistake by rebasing my forked repository (next time I'll create a git branch).
go compilation issue is totally another topic. See related issue #96.

Tested using:

CT_EXPERIMENTAL=y
CT_ARCH_FLOAT_HW=y
CT_ARCH_arm=y
CT_KERNEL_linux=y
CT_CC_GCC_SHOW_LINARO=y
CT_CC_GCC_V_linaro_4_9=y
CT_CC_LANG_GOLANG=y

@bhundven
Copy link
Contributor

bhundven commented Oct 4, 2016

Can we get this updated?

@stilor
Copy link
Contributor

stilor commented Jan 17, 2017

Superseded by #520

@stilor stilor closed this Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants