Skip to content

ci: Move to GCC 5.4 (Xenial default) for prebuilts#946

Merged
mattklein123 merged 6 commits into
masterfrom
bump_gcc
May 11, 2017
Merged

ci: Move to GCC 5.4 (Xenial default) for prebuilts#946
mattklein123 merged 6 commits into
masterfrom
bump_gcc

Conversation

@mattklein123
Copy link
Copy Markdown
Member

This is part 1 of a change to switch us over to a GCC 5.4 so that
we get a thread safe std::string implementation. Will follow up
with another commit with CI and doc changes.

This is part 1 of a change to switch us over to a GCC 5.4 so that
we get a thread safe std::string implementation. Will follow up
with another commit with CI and doc changes.
danielhochman
danielhochman previously approved these changes May 11, 2017
apt-get install -y g++-4.9
clang-format-3.6 bc libtool automake zip time golang g++ gdb strace
# clang head (currently 5.0)
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we could save some time by doing all the repo adding and coalescing the apt-get update

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So I tried this, but wget isn't installed by default. Sigh.

htuch
htuch previously approved these changes May 11, 2017
# GCC 4.9 for everything.
export CC=gcc-4.9
export CXX=g++-4.9

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it worth invoking gcc here for a version check to ensure we have the version we think we do?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah might as well. I will add an echo that we can look at in the job. I actually think default GCC in Xenial might be 5.3.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's probably still good to see CC=gcc etc. just to ensure that we don't accidentally get defaulted into clang one day by Bazel magic.

@mattklein123 mattklein123 dismissed stale reviews from htuch and danielhochman via 7a0c45c May 11, 2017 20:43
@mattklein123
Copy link
Copy Markdown
Member Author

@htuch updated

Comment thread ci/build_container/build_container.sh Outdated
# GCC for everything.
export CC=gcc
export CXX=g++
g++ --version
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could also do a `[ $(g++ --version) == "g++ ... 5.3.blah" ] || (echo "Unexpected compiler version"; exit 1)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This requires a bunch of sed stuff, I can try to figure this out.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just compare the exact string - this is only used in the container where that will be stable.

htuch
htuch previously approved these changes May 11, 2017
@htuch
Copy link
Copy Markdown
Member

htuch commented May 11, 2017

Nit: maybe use CXX when invoking the compiler..

@mattklein123
Copy link
Copy Markdown
Member Author

@htuch updated

@mattklein123 mattklein123 merged commit fc747b3 into master May 11, 2017
@mattklein123 mattklein123 deleted the bump_gcc branch May 11, 2017 23:49
tschroed pushed a commit to tschroed/envoy that referenced this pull request May 12, 2017
This is part 1 of a change to switch us over to a GCC 5.4 so that
we get a thread safe std::string implementation. Will follow up
with another commit with CI and doc changes.
rshriram pushed a commit to rshriram/envoy that referenced this pull request Oct 30, 2018
Automatic merge from submit-queue.

[DO NOT MERGE] Auto PR to update dependencies of proxy

This PR will be merged automatically once checks are successful.
```release-note
none
```
jpsim pushed a commit that referenced this pull request Nov 28, 2022
Signed-off-by: Mike Schore <mike.schore@gmail.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
Signed-off-by: Mike Schore <mike.schore@gmail.com>
Signed-off-by: JP Simard <jp@jpsim.com>
nezdolik pushed a commit to nezdolik/envoy that referenced this pull request May 4, 2024
This fixes test miscompilations on some clang 6.0
installations. Particularly issue envoyproxy#946.

Defines tested by tcmalloc.h where totally wrong defines. configure
actually puts defines of HAVE_DECL_FOOBAR kind in config.h. Which is
what we're using now.
mathetake added a commit that referenced this pull request Mar 3, 2026
**Description**

This adds an example usage of ClientTrafficPolicy which is every will
have to configure most cases.

**Related Issues/PRs (if applicable)**

Closes #828

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
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.

4 participants