public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "comexk at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug go/46986] Go is not supported on Darwin Date: Sat, 26 Feb 2011 23:42:00 -0000 [thread overview] Message-ID: <bug-46986-4-5zxqKG4DLd@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-46986-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 comexk at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |comexk at gmail dot com --- Comment #3 from comexk at gmail dot com 2011-02-26 23:25:36 UTC --- I was able to get gcc to compile, and compile and run a trivial Go program on OS X with the attached patch. Since I know little about gcc, the patch is just a hack, but maybe it can help. The issues it addresses are: - some of the stuff that mksysinfo.sh generates doesn't compile. - The frontend hardcodes ".go_export" both in the C++ code and in the argument to objcopy, but Darwin wants both a segment and section name. - A lot of code relies on asm() for symbol names, but Darwin wants an underscore at the beginning (hardcode the underscore; obviously not a good plan). - SIGRTMIN is not defined (use SIGUSR1/2). - xnu doesn't support sem_init() (use pthreads). - the compiler seems to want an explicit -o with -c, but compiler_c_o in libtool somehow gets defined as no. - syscall.Sysctl isn't defined (I didn't bother to fix this but just commented out the only use). - a typo in libgo/runtime/go-new-map.c which is probably unrelated and belongs in another bug. GCC version: gcc-4.6-20110219 System: Mac OS X 10.6.6 (with MacPorts installed) Configuration: ./configure --prefix=/opt/gccgo --with-boot-ldflags="/opt/local/lib/libiconv.dylib /usr/lib/libiconv.dylib" --disable-bootstrap --with-ppl=/opt/local --with-cloog=/opt/local --with-mpfr=/opt/local --enable-gold=no --enable-ld=no --enable-languages=c,c++,go LDFLAGS="/opt/local/lib/libiconv.dylib /usr/lib/libiconv.dylib"
next prev parent reply other threads:[~2011-02-26 23:25 UTC|newest] Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-12-17 0:59 [Bug go/46986] New: Fails to build due to -Werror with --disable-werror manphiz at gmail dot com 2010-12-17 1:08 ` [Bug go/46986] Go is not supported on Darwin pinskia at gcc dot gnu.org 2011-01-05 5:37 ` ian at airs dot com 2011-02-26 23:42 ` comexk at gmail dot com [this message] 2011-02-27 0:24 ` comexk at gmail dot com 2011-04-21 0:19 ` ian at airs dot com 2011-04-28 16:47 ` rguenth at gcc dot gnu.org 2011-09-01 18:10 ` afb at users dot sourceforge.net 2011-09-01 18:11 ` afb at users dot sourceforge.net 2011-09-01 22:49 ` howarth at nitro dot med.uc.edu 2011-09-02 6:40 ` afb at users dot sourceforge.net 2011-09-02 8:46 ` afb at users dot sourceforge.net 2011-09-02 9:07 ` afb at users dot sourceforge.net 2011-09-02 11:08 ` afb at users dot sourceforge.net 2011-09-02 11:11 ` afb at users dot sourceforge.net 2011-09-04 17:30 ` howarth at nitro dot med.uc.edu 2011-09-04 18:15 ` afb at users dot sourceforge.net 2011-09-05 14:03 ` afb at users dot sourceforge.net 2011-12-14 1:53 ` ian at airs dot com 2012-02-14 20:00 ` ian at airs dot com 2012-02-15 22:24 ` afb at users dot sourceforge.net 2012-02-15 22:30 ` afb at users dot sourceforge.net 2012-02-15 22:32 ` afb at users dot sourceforge.net 2012-02-15 22:48 ` afb at users dot sourceforge.net 2012-02-15 23:40 ` mrs at gcc dot gnu.org 2012-02-16 3:57 ` howarth at nitro dot med.uc.edu 2012-02-16 14:44 ` howarth at nitro dot med.uc.edu 2012-02-16 15:53 ` ian at airs dot com 2012-02-16 16:31 ` howarth at nitro dot med.uc.edu 2012-02-16 16:54 ` ian at airs dot com 2012-02-16 19:34 ` afb at users dot sourceforge.net 2012-02-16 19:36 ` afb at users dot sourceforge.net 2012-02-16 19:40 ` afb at users dot sourceforge.net 2012-02-16 19:44 ` afb at users dot sourceforge.net 2012-02-18 14:09 ` afb at users dot sourceforge.net 2012-02-18 14:17 ` afb at users dot sourceforge.net 2012-02-18 15:25 ` afb at users dot sourceforge.net 2013-01-24 18:14 ` ian at gcc dot gnu.org 2013-01-24 19:44 ` ian at gcc dot gnu.org 2013-02-05 22:38 ` ian at airs dot com 2021-07-24 5:09 ` egallager at gcc dot gnu.org 2021-07-24 23:40 ` ian at airs dot com 2022-10-30 7:14 ` vital.had at gmail dot com 2022-10-30 17:15 ` ian at airs dot com 2022-10-30 17:19 ` iains at gcc dot gnu.org 2022-10-30 17:25 ` ian at airs dot com 2022-10-30 17:41 ` vital.had at gmail dot com 2022-10-30 18:14 ` iains at gcc dot gnu.org 2023-10-08 5:33 ` vital.had at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-46986-4-5zxqKG4DLd@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).