Comments (11)
What are you cross compiling to?
from logrus.
All of them. :) Goxc compiles to the craziest platforms. But none of them succeed at the moment.
from logrus.
Did you ever find a solution to this?
from logrus.
I have had some luck with:
$ goxc -bc="windows,linux,darwin"
This specifies 'build constraints'. And yielded binaries for the three platforms. I'm unsure why constraining the platforms works since an unconstrained builds builds for these platforms as well.
The bug seems more goxc
related, this issue I'd close.
from logrus.
The cross compilation only fails for these architectures.
[goxc:xc] 2015/04/07 21:32:25 Have you run `goxc -t` for this platform (386,netbsd)???
[goxc:xc] 2015/04/07 21:32:25 Have you run `goxc -t` for this platform (amd64,netbsd)???
[goxc:xc] 2015/04/07 21:32:25 Have you run `goxc -t` for this platform (arm,netbsd)???
[goxc:xc] 2015/04/07 21:32:25 Have you run `goxc -t` for this platform (386,dragonfly)???
[goxc:xc] 2015/04/07 21:32:25 Have you run `goxc -t` for this platform (amd64,dragonfly)???
[goxc:xc] 2015/04/07 21:32:25 Have you run `goxc -t` for this platform (386,plan9)???
[goxc:xc] 2015/04/07 21:32:25 Have you run `goxc -t` for this platform (amd64,solaris)???
[goxc:xc] 2015/04/07 21:32:26 Have you run `goxc -t` for this platform (amd64p32,nacl)???
[goxc:xc] 2015/04/07 21:32:26 Have you run `goxc -t` for this platform (386,nacl)???
[goxc:xc] 2015/04/07 21:32:26 Have you run `goxc -t` for this platform (arm,nacl)???
The error is always this:
../../Sirupsen/logrus/text_formatter.go:29: undefined: IsTerminal
from logrus.
I just ran into problems trying to compile for dragonfly, I think it's from terminal_notwindows only explicitly listing "// +build linux darwin freebsd openbsd". I think it might be possible to fix it just by adding the remaining OSes to this list.
https://github.com/Sirupsen/logrus/blob/master/terminal_notwindows.go
from logrus.
@cgag mind doing that? :)
from logrus.
I'll give it a shot at some point soon. If anyone else wants to do it, feel free to preempt me.
from logrus.
@sirupsen I added support for the other BSDs (dragonflybsd and netbsd): #203
I couldn't build the toolchain using gox for nacl, and plan9 says it doesn't support Termios or TIOCGETA.
from logrus.
@sirupsen I added support for the Solaris OS: #289
It also hasn't SYS_IOCTL, so terminal_notwindows.go was inapplicable.
from logrus.
This issue has been pretty inactive since several years. If some cross-compiling issue accurs again, I suggest create a dedicated issue for the specific os/arch tuple.
from logrus.
Related Issues (20)
- Data race withFields() HOT 2
- v1.9.1 causes panic in writer
- How to change log level of all logrus loggers? HOT 2
- Skip debug level log from console output but should present in log file HOT 2
- CVE reported on logrus HOT 2
- How to Access IsDebugEnabled in FieldLogger? HOT 3
- can't build for wasm (go 1.21 rc) HOT 3
- Data race in hooks.test package HOT 3
- virter vm cp not working HOT 2
- Info requested: How to buffer messages and release at the end HOT 2
- Vulnerability of dependency "gopkg.in/yaml.v3" HOT 2
- Logrus potential DOS - Please open a CVE for issue #1370 to encourage users to patch HOT 3
- Feature: Add slog compatibility layer HOT 5
- logrus+lumberjackrus, After the old log is deleted, the hard drive will not be released, HOT 2
- Vulnerability: gopkg.in/yaml.v3 CVE-2022-28948 HOT 2
- Bazel compilation failling HOT 2
- Question: Any way to view the value of a field from a logrus.FieldLogger? HOT 2
- How to apply colours for a custom log format? HOT 2
- How to safely change Logger.Out on the fly? HOT 2
- How should I position my problem? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logrus.