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

Defines GOOS and GOARCH for windows builds #1621

Merged
merged 3 commits into from
Aug 11, 2016
Merged

Conversation

dzrw
Copy link
Contributor

@dzrw dzrw commented Aug 10, 2016

Partial solution for issue #1619. Unfortunately, I can't fix the gdm issue, because I don't know which revisions of the missing packages to use.

Required for all PRs:

  • CHANGELOG.md updated
  • Sign CLA (if not already signed)
  • README.md updated (if adding a new plugin)

@sparrc
Copy link
Contributor

sparrc commented Aug 10, 2016

if there are packages missing then use the latest

@@ -16,7 +16,7 @@ build:
go install -ldflags "-X main.version=$(VERSION)" ./...

build-windows:
go build -o telegraf.exe -ldflags \
GOOS=windows GOARCH=386 go build -o telegraf.exe -ldflags \
Copy link
Contributor

@sparrc sparrc Aug 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer if we default to amd64 unless there is a significant reason not to

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I derived the value 386 from /scripts/build.py.

On Wed, Aug 10, 2016, 2:58 PM Cameron Sparr [email protected]
wrote:

In Makefile
#1621 (comment):

@@ -16,7 +16,7 @@ build:
go install -ldflags "-X main.version=$(VERSION)" ./...

build-windows:

  • go build -o telegraf.exe -ldflags \
  • GOOS=windows GOARCH=386 go build -o telegraf.exe -ldflags \

why 386? are windows servers still 32-bit?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/influxdata/telegraf/pull/1621/files/3115d751b00c6bdabc3795f5f71c9dac918093c3#r74339009,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABGK3xw1rzcOgpCDOic7QjOHhikFvE_tks5qekmMgaJpZM4Jhf2Q
.

@dzrw
Copy link
Contributor Author

dzrw commented Aug 10, 2016

@sparrc Updated per your feedback; thanks!

@sparrc
Copy link
Contributor

sparrc commented Aug 11, 2016

thx @politician

@marianob85
Copy link
Contributor

Unfortunately it's not possible to build telegraf under windows using Gnu makefile. Defining env before command is not supported.

@dzrw
Copy link
Contributor Author

dzrw commented Sep 5, 2016

Correct, this change merely enables us to build telegraf for (not on)
Windows via cross-compilation using the provided Makefile.

On Mon, Sep 5, 2016, 9:32 AM Mariusz Brzeski [email protected]
wrote:

Unfortunately it's not possible to build telegraf under windows using Gnu
makefile. Defining env before command is not supported.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1621 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABGK34oObv8XvXD9TPDEF8uTKbA369b2ks5qnEQ0gaJpZM4Jhf2Q
.

@marianob85
Copy link
Contributor

But it would be great to have also possibility to build it on windows platform :(

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.

3 participants