Re: [go-nuts] gollvm build failed

2022-02-28 Thread 'Than McIntosh' via golang-nuts
Hello, Normally the definition of __morestack is drawn from libgcc.a, so I would look to see what the story is with libgcc.a on your system. Here are some things to try: // Ask clang where it's picking up libgcc.a $ clang --print-libgcc-file-name /usr/bin/../lib/gcc/x86_64-linux-gnu/11/libgcc.a

Re: [go-nuts] gollvm build failed

2022-02-25 Thread T Odin
Hi Than, I see there is malloc.h present in that path. But, cmake throws one more error even before the mmap issue: *-- Performing Test SPLIT_STACK_FUNCTIONAL* *-- Performing Test SPLIT_STACK_FUNCTIONAL - Failed* *-- trying -fcf-protection=none workaround* *-- Performing Test SPLIT_STACK_WORKAROU

Re: [go-nuts] [gollvm]: Build failed: error: undefined reference to 'runtime_1internal_1syscall.setErrno'

2022-02-24 Thread 'Than McIntosh' via golang-nuts
OK, I have checked in a fix for this issue (gollvm commit 9bc0905a2f6697eff106b159120030a0e81bd113). Regards, Than On Thu, Feb 24, 2022 at 10:35 AM Than McIntosh wrote: > Greetings, > > Thanks for reporting this problem. I'll send a patch shortly. > > Thanks, Than > > > On Wed, Feb 23, 2022 at

Re: [go-nuts] [gollvm]: Build failed: error: undefined reference to 'runtime_1internal_1syscall.setErrno'

2022-02-24 Thread Anyoneelse HD
Hi Than, Thanks. On Thursday, February 24, 2022 at 10:38:07 PM UTC+7 th...@google.com wrote: > Greetings, > > Thanks for reporting this problem. I'll send a patch shortly. > > Thanks, Than > > > On Wed, Feb 23, 2022 at 8:54 AM Richiise Nugraha > wrote: > >> Hi, tried to build gollvm but encou

Re: [go-nuts] [gollvm]: Build failed: error: undefined reference to 'runtime_1internal_1syscall.setErrno'

2022-02-24 Thread 'Than McIntosh' via golang-nuts
Greetings, Thanks for reporting this problem. I'll send a patch shortly. Thanks, Than On Wed, Feb 23, 2022 at 8:54 AM Richiise Nugraha wrote: > Hi, tried to build gollvm but encountered this error: > > libbacktrace commit: 2446c66076480ce07a6bd868badcbceb3eeecc2e > libffi commit: ab1677106605

[go-nuts] [gollvm]: Build failed: error: undefined reference to 'runtime_1internal_1syscall.setErrno'

2022-02-23 Thread Richiise Nugraha
Hi, tried to build gollvm but encountered this error: libbacktrace commit: 2446c66076480ce07a6bd868badcbceb3eeecc2e libffi commit: ab1677106605aba1c27665964ff90bea59612ce3 gollvm commit: 6cd24cbc9ce21c0e6c74551e356c9323f1b1afaf gofrontend commit: aee8eddbfc3ef1b03353a060e79e7d668fb229e2 llvmorg co

[go-nuts] [gollvm] Build failed: undefined reference to 'runtime_1internal_1syscall.setErrno'

2022-02-23 Thread Richiise Nugraha
Hi, tried to build gollvm but encountered this error: libbacktrace commit: 2446c66076480ce07a6bd868badcbceb3eeecc2e libffi commit: ab1677106605aba1c27665964ff90bea59612ce3 gollvm commit: 6cd24cbc9ce21c0e6c74551e356c9323f1b1afaf gofrontend commit: aee8eddbfc3ef1b03353a060e79e7d668fb229e2 llvmorg c

[go-nuts] [gollvm] Build failed: error: undefined reference to 'runtime_1internal_1syscall.setErrno'

2022-02-23 Thread Richiise Nugraha
Hi, i encountered this error while compiling the gollvm, wonder if there is something missing: llvm commit: 09629215c272f09e3ebde6cc7eac9625d28910ff gollvm commit: 6cd24cbc9ce21c0e6c74551e356c9323f1b1afaf gofrontend commit: aee8eddbfc3ef1b03353a060e79e7d668fb229e2 libffi commit: ab1677106605aba1c

Re: [go-nuts] gollvm build failed

2022-01-27 Thread 'Than McIntosh' via golang-nuts
Hello, As I understand it FreeBSD doesn't have any concept of a build essentials package, so in theory /usr/include/malloc.h should always be installed. Are you saying that this file doesn't exist on your system? Thanks, Than On Thu, Jan 27, 2022 at 5:38 AM T Odin wrote: > I'm trying to build

[go-nuts] gollvm build failed

2022-01-27 Thread T Odin
I'm trying to build gollvm on FreeBSD 13 using the command as mentioned in gollvm source page. *cmake -DCMAKE_BUILD_TYPE=Debug -DLLVM_USE_LINKER=gold -G Ninja ../llvm-project/llvm * I observed that during configuration it fails for malloc *Looking for malloc/malloc.hLooking for malloc/malloc.