eclipse-iceoryx / iceoryx

Eclipse iceoryx™ - true zero-copy inter-process-communication
https://iceoryx.io
Apache License 2.0
1.69k stars 393 forks source link

bazel build fails on macos #2345

Closed wep21 closed 2 months ago

wep21 commented 2 months ago

Required information

Operating system: macOS sonoma

Compiler version: E.g. GCC 7.4.0

Eclipse iceoryx version: main branch

Observed result or behaviour: IFS env variable doesn't work correctly in macos bash, so config header generated by bazel script is wrong as below.

❯ cat bazel-out/darwin_arm64-fastbuild/bin/iceoryx_platform/generated/include/iceoryx_versions.h
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_ICEORYX_VERSIONS_H
#define IOX_ICEORYX_VERSIONS_H

#define ICEORYX_VERSION_MAJOR    2 95 2
#define ICEORYX_VERSION_MINOR    0
#define ICEORYX_VERSION_PATCH    0
#define ICEORYX_VERSION_TWEAK    0

#define ICEORYX_LATEST_RELEASE_VERSION    "2.95.2"
#define ICEORYX_BUILDDATE                 "builddate_not_set"
#define ICEORYX_SHA1                      "sha1_not_set"

#endif // IOX_ICEORYX_VERSIONS_H

Expected result or behaviour: bazel build is also successful on macos.

Conditions where it occurred / Performed steps: Describe how one can reproduce the bug.

Additional helpful information

If there is a core dump, please run the following command and add the output to the issue in a separate comment

gdb --batch \
   --ex "shell printf '\n\033[33m#### Local Variables ####\033[m\n'"  --ex "info locals" \
   --ex "shell printf '\n\033[33m#### Threads ####\033[m\n'"          --ex "info threads" \
   --ex "shell printf '\n\033[33m#### Shared Libraries ####\033[m\n'" --ex "info sharedlibrary" \
   --ex "shell printf '\n\033[33m#### Stack Frame ####\033[m\n'"      --ex "info frame" \
   --ex "shell printf '\n\033[33m#### Register ####\033[m\n'"         --ex "info register" \
   --ex "shell printf '\n\033[33m#### Backtrace ####\033[m'"          --ex "thread apply all bt" \
   --core coreDumpFile binaryFile