LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 07-08-2018, 04:21 PM   #1
caffe
LQ Newbie
 
Registered: Feb 2015
Posts: 13

Rep: Reputation: Disabled
go pegs cpu, does not return (gcc-go)


I'm not a go expert, just trying to build some other software which uses go. On both 14.2 and current, running a simple go example pegs one CPU at 100% and does not return (even after hours of running).

Example

Code:
$ cat test.go
package main

import (
        "os"
)

func main() {
        os.Exit(0)
}

$ /usr/bin/go run test.go
This returns immediately on x86/x86_64, but has the problem described above on arm. Has anyone else noticed this?
 
Old 07-09-2018, 02:54 AM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 739

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
"go" has been broken since its inclusion. I have no idea what is wrong with it. If you find out, let me know!
I've looked at this a few times and looked at Debian and Fedora for patches but there were none that had any relation to "go", so perhaps the problem is elsewhere.

Last edited by drmozes; 07-09-2018 at 04:22 AM.
 
Old 07-09-2018, 11:09 PM   #3
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware (x86 and ARM)
Posts: 134

Rep: Reputation: Disabled
I'll confirm it's broken, in both SMP and UP, on ARM but not on x86. "go do anything" even fails to parse. The failure is very early: the standard libpath libraries load, then it deadlocks in an infinite loop.
 
Old 09-10-2018, 12:28 PM   #4
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 739

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
Quote:
Originally Posted by gus3 View Post
I'll confirm it's broken, in both SMP and UP, on ARM but not on x86. "go do anything" even fails to parse. The failure is very early: the standard libpath libraries load, then it deadlocks in an infinite loop.
I've been experimenting with gcc-go and now I get something more useful.
Does the test code actually work properly elsewhere?

Code:
root@zippy:~/ac/source/d/gcc/test-code# cat test-go.sh
# https://www.linuxquestions.org/questions/slackware-arm-108/go-pegs-cpu-does-not-return-gcc-go-4175633577/
cat << 'EOF' > /tmp/test.go
package main

import (
        "os"
)

func main() {
        os.Exit(0)
}
EOF

go run /tmp/test.go

root@zippy:~/ac/source/d/gcc/test-code# sh test-go.sh
# command-line-arguments
/tmp/go-build588487404/b001/_buildid.s: Assembler messages:
/tmp/go-build588487404/b001/_buildid.s:8: Error: junk at end of line, first unrecognized character is `,'
/tmp/go-build588487404/b001/_buildid.s:9: Error: junk at end of line, first unrecognized character is `,'
root@zippy:~/ac/source/d/gcc/test-code#
 
Old 09-10-2018, 03:30 PM   #5
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 739

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
Quote:
Originally Posted by drmozes View Post
I've been experimenting with gcc-go and now I get something more useful.
Does the test code actually work properly elsewhere?
Yes it does. *shrug*
 
Old 09-14-2018, 12:19 AM   #6
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware (x86 and ARM)
Posts: 134

Rep: Reputation: Disabled
It's still broken here on ARM, but not on x86.
 
Old 09-21-2018, 09:28 AM   #7
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 655

Rep: Reputation: 130Reputation: 130
since this thread is about gcc-go.... after last upgrade-all
.
.
No such file 'gcc-go-8.2.0-arm-2.txz.asc'.
ERROR - Package not installed! md5sum error!
.
.

at ftp://ftp.arm.slackware.com/slackwar...sting/packages
gcc-go-8.2.0-arm-2.txz is there but gcc-go-8.2.0-arm-2.txz.asc is not

Thank you Stuart.
 
Old 09-21-2018, 11:25 AM   #8
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 739

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
Quote:
Originally Posted by glorsplitz View Post
gcc-go-8.2.0-arm-2.txz is there but gcc-go-8.2.0-arm-2.txz.asc is not
Thanks. Fixed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cups pegs cpu rbees Linux - Software 7 01-10-2014 04:45 PM
Cyrus IMAP pegs processor and slowly eats resources digitolx Linux - Server 2 04-07-2010 03:21 PM
Athlon XP-M 3000+ won't return to highest CPU freq after being on battery lydgate Linux - Laptop and Netbook 3 12-22-2005 08:52 PM
Return code from main() using gcc Meatwad Programming 13 01-27-2004 07:36 PM
Optimise GCC for your CPU jatbudhwar Slackware 9 04-07-2003 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 05:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration