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

updates for patches #11

Merged
merged 11 commits into from
Mar 13, 2024
Merged

updates for patches #11

merged 11 commits into from
Mar 13, 2024

Conversation

netskink
Copy link
Collaborator

These changes add:

  • a setenv.sh script for resumption of work
  • applies the patches and prepares way for pax additions
  • uses the sed operation before doing the gclient sync operation

README.md Outdated
@@ -193,14 +193,14 @@ v8port/patches/. Adjust the path to v8port to match your environment. Example:
This is a large patch which updates multiple portions of the codebase.
```
$ cd $HOME/zopen/dev/v8base/v8
$ git apply ../../v8port/patches/git.20231122.fce38915e4.diff
$ git apply ../../patches/git.20231122.fce38915e4.diff
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this mean you have the v8port patches directly under $HOME/zopen/dev/patches/? Because this line indicates there is a $HOME/zopen/dev/v8port/ that should contain the patches directory.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, the dir structure is like this:

v8port
  \_ v8base
       \_ v8

@netskink
Copy link
Collaborator Author

netskink commented Mar 4, 2024

Some errors with the current patch level

during gclient step

This is probably just a temporary google thing.

$ gclient sync -D
...<stuff deleted>

________ running 'python3 third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth -u --bucket v8-wasm-spec-tests -s test/wasm-spec-tests/tests.tar.gz.sha1' in '/z/jd895801/zopen/dev/v8port/v8base/v8'
Failed to fetch file gs://v8-wasm-spec-tests/bbc70e15271750e0b4617b63fabf42652267488a for test/wasm-spec-tests/tests.tar.gz. [Err: /z/jd895801/zopen/dev/v8port/v8base/v8/third_party/depot_tools/external_bin/gsutil/gsutil_4.68/gsutil/gslib/vendored/boto/boto/pyami/config.py:69: UserWarning: Unable to load AWS_CREDENTIAL_FILE ()
  warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path)
INFO:root:Retrying request, attempt #1...
INFO 0304 10:21:22.490718 retry_util.py] Retrying request, attempt #1...
INFO:root:Retrying request, attempt #2...
INFO 0304 10:22:24.947036 retry_util.py] Retrying request, attempt #2...
INFO:root:Retrying request, attempt #3...

This repeats a few times for various files.

clone and buld of zoslib

A high priority task is to change this over to the z/OS Open Tools version of this code. However in an effort to migrate from manual to framework build, this is simply redoing the manual effort. Perhaps the exports are being taken into effect.

Cloning into 'zoslib'...
~/zopen/dev/v8port/v8base/v8/third_party/zoslib/build ~/zopen/dev/v8port/v8base/v8/third_party/zoslib
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /C/CCplus/LangV2GA/usr/lpp/IBM/oelcpp/v2r0/bin/clang
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /C/CCplus/LangV2GA/usr/lpp/IBM/oelcpp/v2r0/bin/clang++
-- Check for working CXX compiler: /C/CCplus/LangV2GA/usr/lpp/IBM/oelcpp/v2r0/bin/clang++ - broken
CMake Error at /z/jd895801/zopen/usr/local/zopen/cmake/CMake-heads.v3.27.8.20231124_184234.zos/share/cmake-3.27/Modules/CMakeTestCXXCompiler.cmake:60 (message):
  The C++ compiler

    "/C/CCplus/LangV2GA/usr/lpp/IBM/oelcpp/v2r0/bin/clang++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/z/jd895801/zopen/dev/v8port/v8base/v8/third_party/zoslib/build/CMakeFiles/CMakeScratch/TryCompile-ajoetb'

    Run Build Command(s): /z/jd895801/zopen/usr/local/zopen/cmake/CMake-heads.v3.27.8.20231124_184234.zos/bin/cmake -E env VERBOSE=1 /z/jd895801/zopen/usr/local/zopen/make/make-4.4.1.20231113_010159.zos/bin/make -f Makefile cmTC_31c0c/fast
    /z/jd895801/zopen/usr/local/zopen/make/make-4.4.1.20231113_010159.zos/bin/make  -f CMakeFiles/cmTC_31c0c.dir/build.make CMakeFiles/cmTC_31c0c.dir/build
    make[1]: Entering directory '/z/jd895801/zopen/dev/v8port/v8base/v8/third_party/zoslib/build/CMakeFiles/CMakeScratch/TryCompile-ajoetb'
    Building CXX object CMakeFiles/cmTC_31c0c.dir/testCXXCompiler.cxx.o
    /C/CCplus/LangV2GA/usr/lpp/IBM/oelcpp/v2r0/bin/clang++   -+ -qascii -qnocsect -qenum=int -qgonumber -O3  -I/z/jd895801/zopen/usr/local/zopen/ncurses/ncurses-6.4.20231114_180107.zos/include -isystem /z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include -isystem /z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include/c++/v1 -qinclude=/z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include/zos-v2r5-symbolfixes.h  -o CMakeFiles/cmTC_31c0c.dir/testCXXCompiler.cxx.o -c /z/jd895801/zopen/dev/v8port/v8base/v8/third_party/zoslib/build/CMakeFiles/CMakeScratch/TryCompile-ajoetb/testCXXCompiler.cxx
    clang-14: error: unknown argument: '-+'
    clang-14: error: unknown argument: '-qascii'
    clang-14: error: unknown argument '-qnocsect'; did you mean '-mnocsect'?
    clang-14: error: unknown argument: '-qenum=int'
    clang-14: error: unknown argument: '-qgonumber'
    clang-14: error: unknown argument '-qinclude=/z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include/zos-v2r5-symbolfixes.h'; did you mean '--include=/z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include/zos-v2r5-symbolfixes.h'?
    make[1]: *** [CMakeFiles/cmTC_31c0c.dir/build.make:78: CMakeFiles/cmTC_31c0c.dir/testCXXCompiler.cxx.o] Error 1
    make[1]: Leaving directory '/z/jd895801/zopen/dev/v8port/v8base/v8/third_party/zoslib/build/CMakeFiles/CMakeScratch/TryCompile-ajoetb'
    make: *** [Makefile:127: cmTC_31c0c/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:10 (project)


-- Configuring incomplete, errors occurred!

@netskink netskink requested a review from gabylb March 4, 2024 16:49
@gabylb
Copy link
Collaborator

gabylb commented Mar 4, 2024

Some errors with the current patch level

during gclient step
This is probably just a temporary google thing.

I didn't have a problem running the following just now. Can you try running the same sequence:

$ cd v8base
$ rm -rf v8 .gclient*
$ fetch v8
$ cd v8
$ git reset fce38915e4c7c73c0e7f77bb13e2a78514968d35 --hard
Updating files: 100% (2115/2115), done.
HEAD is now at fce38915e4c PPC/S390: Use kStackFrameExtraParamSlot to store stack params

$ sed -i -f ~/zopen/dev/v8port/patches/DEPS.sed DEPS

$ /bin/time gclient sync -D
________ running 'python3 third_party/depot_tools/update_depot_tools_toggle.py --disable' in '/home/gaby/v8base/tmp/v8'
________ running 'python3 build/landmines.py --landmine-scripts tools/get_landmines.py' in '/home/gaby/v8base/tmp/v8'
________ running 'python3 third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth -u --bucket v8-wasm-spec-tests -s test/wasm-spec-tests/tests.tar.gz.sha1' in '/home/gaby/v8base/tmp/v8'
0> Downloading test/wasm-spec-tests/tests.tar.gz@bbc70e15271750e0b4617b63fabf42652267488a...
0> Extracting 742 entries from test/wasm-spec-tests/tests.tar.gz to test/wasm-spec-tests/tests
Downloading 1 files took 8.231176 second(s)
________ running 'python3 third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth -u --bucket v8-wasm-spec-tests -s test/wasm-js/tests.tar.gz.sha1' in '/home/gaby/v8base/tmp/v8'
0> Downloading test/wasm-js/tests.tar.gz@bc8862831b876e630cb5c415710018260ba9f988...
0> Extracting 329 entries from test/wasm-js/tests.tar.gz to test/wasm-js/tests
Downloading 1 files took 5.450505 second(s)
________ running 'python3 build/util/lastchange.py -o build/util/LASTCHANGE' in '/home/gaby/v8base/tmp/v8'
________ running 'vpython3 -vpython-spec .vpython3 -vpython-tool install' in '/home/gaby/v8base/tmp/v8'

real    0m34.47s
user    0m22.49s
sys     0m07.49s

buildenv Outdated
@@ -141,9 +141,50 @@ zopen_build() {
# use the specified commit hash
echo "git reset fce38915e4c7c73c0e7f77bb13e2a78514968d35 --hard"
git reset fce38915e4c7c73c0e7f77bb13e2a78514968d35 --hard
# Modify DEPS via sed
echo "Modify DEPS via sed"
sed -i -f../../patches/DEPS.sed DEPS
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, you can use $ZOPEN_ROOT instead of relative directories

@netskink
Copy link
Collaborator Author

netskink commented Mar 5, 2024

Some errors with the current patch level
during gclient step
This is probably just a temporary google thing.

I didn't have a problem running the following just now. Can you try running the same sequence:

$ cd v8base
$ rm -rf v8 .gclient*
$ fetch v8
$ cd v8
$ git reset fce38915e4c7c73c0e7f77bb13e2a78514968d35 --hard
Updating files: 100% (2115/2115), done.
HEAD is now at fce38915e4c PPC/S390: Use kStackFrameExtraParamSlot to store stack params

$ sed -i -f ~/zopen/dev/v8port/patches/DEPS.sed DEPS

$ /bin/time gclient sync -D
________ running 'python3 third_party/depot_tools/update_depot_tools_toggle.py --disable' in '/home/gaby/v8base/tmp/v8'
________ running 'python3 build/landmines.py --landmine-scripts tools/get_landmines.py' in '/home/gaby/v8base/tmp/v8'
________ running 'python3 third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth -u --bucket v8-wasm-spec-tests -s test/wasm-spec-tests/tests.tar.gz.sha1' in '/home/gaby/v8base/tmp/v8'
0> Downloading test/wasm-spec-tests/tests.tar.gz@bbc70e15271750e0b4617b63fabf42652267488a...
0> Extracting 742 entries from test/wasm-spec-tests/tests.tar.gz to test/wasm-spec-tests/tests
Downloading 1 files took 8.231176 second(s)
________ running 'python3 third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth -u --bucket v8-wasm-spec-tests -s test/wasm-js/tests.tar.gz.sha1' in '/home/gaby/v8base/tmp/v8'
0> Downloading test/wasm-js/tests.tar.gz@bc8862831b876e630cb5c415710018260ba9f988...
0> Extracting 329 entries from test/wasm-js/tests.tar.gz to test/wasm-js/tests
Downloading 1 files took 5.450505 second(s)
________ running 'python3 build/util/lastchange.py -o build/util/LASTCHANGE' in '/home/gaby/v8base/tmp/v8'
________ running 'vpython3 -vpython-spec .vpython3 -vpython-tool install' in '/home/gaby/v8base/tmp/v8'

real    0m34.47s
user    0m22.49s
sys     0m07.49s

Hello Gaby, this is different from what we did before. With that said, I've modifed the build env to match your current setup. See below:

# Now you can start the fetch
  mkdir v8base
  # change into v8base
  cd v8base
  # fetch
  echo "fetch v8 ..."
  fetch v8
  # change dirs to v8
  cd v8
  # checkout main
  #echo "git checkout main"
  #git checkout main
  # pull
  #echo "git pull"
  #git pull
  # use the specified commit hash
  echo "git reset fce38915e4c7c73c0e7f77bb13e2a78514968d35 --hard"
  git reset fce38915e4c7c73c0e7f77bb13e2a78514968d35 --hard
  # Modify DEPS via sed
  echo "Modify DEPS via sed"
  sed -i -f../../patches/DEPS.sed DEPS
  # Use depot tools gclient sync
  echo "gclient sync -D"
  gclient sync -D

Never the less, this doesn't address the failure with zoslib....

@gabylb
Copy link
Collaborator

gabylb commented Mar 5, 2024

Re the zoslib build failures: there's compiler options -qnocsect -qenum=int in your output; these are not set by zoslib's CMakeLists.txt, even for xlclang. They, along with the other -q options, are likely set somewhere by zopen config in CFLAGS/CXXFLAGS.

@netskink
Copy link
Collaborator Author

netskink commented Mar 5, 2024

gclient sync -D

________ deleting 'v8/third_party/re2/src' in '/z/jd895801/zopen/dev/v8port/v8base'

________ deleting 'v8/third_party/google_benchmark_chrome/src' in '/z/jd895801/zopen/dev/v8port/v8base'

________ deleting 'v8/third_party/google_benchmark_chrome' in '/z/jd895801/zopen/dev/v8port/v8base'

________ deleting 'v8/third_party/fuzztest/src' in '/z/jd895801/zopen/dev/v8port/v8base'

________ deleting 'v8/third_party/fuzztest' in '/z/jd895801/zopen/dev/v8port/v8base'

________ deleting 'v8/third_party/fp16/src' in '/z/jd895801/zopen/dev/v8port/v8base'
________ running 'python3 third_party/depot_tools/update_depot_tools_toggle.py --disable' in '/z/jd895801/zopen/dev/v8port/v8base/v8'
________ running 'python3 build/landmines.py --landmine-scripts tools/get_landmines.py' in '/z/jd895801/zopen/dev/v8port/v8base/v8'
________ running 'python3 third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth -u --bucket v8-wasm-spec-tests -s test/wasm-spec-tests/tests.tar.gz.sha1' in '/z/jd895801/zopen/dev/v8port/v8base/v8'
Failed to fetch file gs://v8-wasm-spec-tests/bbc70e15271750e0b4617b63fabf42652267488a for test/wasm-spec-tests/tests.tar.gz. [Err: /z/jd895801/zopen/dev/v8port/v8base/v8/third_party/depot_tools/external_bin/gsutil/gsutil_4.68/gsutil/gslib/vendored/boto/boto/pyami/config.py:69: UserWarning: Unable to load AWS_CREDENTIAL_FILE ()
  warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path)
INFO:root:Retrying request, attempt #1...
INFO 0305 11:36:37.188709 retry_util.py] Retrying request, attempt #1...
INFO:root:Retrying request, attempt #2...
INFO 0305 11:37:39.010993 retry_util.py] Retrying request, attempt #2...
INFO:root:Retrying request, attempt #3...
INFO 0305 11:38:42.226054 retry_util.py] Retrying request, attempt #3...
INFO:root:Retrying request, attempt #4...
INFO 0305 11:39:52.060341 retry_util.py] Retrying request, attempt #4...
INFO:root:Retrying request, attempt #5...
INFO 0305 11:41:08.571765 retry_util.py] Retrying request, attempt #5...
INFO:root:Retrying request, attempt #6...
INFO 0305 11:42:38.621720 retry_util.py] Retrying request, attempt #6...
INFO:root:Retrying request, attempt #7...
INFO 0305 11:44:10.673659 retry_util.py] Retrying request, attempt #7...
INFO:root:Retrying request, attempt #8...
INFO 0305 11:45:42.717484 retry_util.py] Retrying request, attempt #8...
INFO:root:Retrying request, attempt #9...
INFO 0305 11:47:14.863799 retry_util.py] Retrying request, attempt #9...
INFO:root:Retrying request, attempt #10...
INFO 0305 11:48:46.912020 retry_util.py] Retrying request, attempt #10...
INFO:root:Retrying request, attempt #11...
INFO 0305 11:50:18.963063 retry_util.py] Retrying request, attempt #11...
INFO:root:Retrying request, attempt #12...
INFO 0305 11:51:51.013742 retry_util.py] Retrying request, attempt #12...
INFO:root:Retrying request, attempt #13...

@gabylb
Copy link
Collaborator

gabylb commented Mar 5, 2024

> gclient sync -D
...
/z/jd895801/zopen/dev/v8port/v8base/v8/third_party/depot_tools/external_bin/gsutil/gsutil_4.68/gsutil/gslib/vendored/boto/boto/pyami/config.py:69: UserWarning: Unable to load AWS_CREDENTIAL_FILE ()
>   warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path)
>

In the referenced config.py file:

            if "AWS_CREDENTIAL_FILE" in os.environ:      <===
                full_path = expanduser(os.environ['AWS_CREDENTIAL_FILE'])
                try:
                    self.load_credential_file(full_path)
                except IOError:
                    warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path)

it seems you have environment variable AWS_CREDENTIAL_FILE set in your environment, but its path is invalid. Try fixing its path, or unset AWS_CREDENTIAL_FILE before running gclient.

@netskink
Copy link
Collaborator Author

netskink commented Mar 5, 2024

> gclient sync -D
...
/z/jd895801/zopen/dev/v8port/v8base/v8/third_party/depot_tools/external_bin/gsutil/gsutil_4.68/gsutil/gslib/vendored/boto/boto/pyami/config.py:69: UserWarning: Unable to load AWS_CREDENTIAL_FILE ()
>   warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path)
>

In the referenced config.py file:

            if "AWS_CREDENTIAL_FILE" in os.environ:      <===
                full_path = expanduser(os.environ['AWS_CREDENTIAL_FILE'])
                try:
                    self.load_credential_file(full_path)
                except IOError:
                    warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path)

it seems you have environment variable AWS_CREDENTIAL_FILE set in your environment, but its path is invalid. Try fixing its path, or unset AWS_CREDENTIAL_FILE before running gclient.

Hello Gaby, thanks for your reply. I don't have an AWS credential file.

$ export | grep AWS

@gabylb
Copy link
Collaborator

gabylb commented Mar 5, 2024

I suggest reviewing all instances in depot_tools where AWS_CREDENTIAL_FILE is accessed/set, and resolve the issue accordingly; to view those:

cd v8/third_party/depot_tools
vi `find . -type f -exec grep -l AWS_CREDENTIAL_FILE {} \;`

@netskink
Copy link
Collaborator Author

netskink commented Mar 6, 2024

The build log for relevant errors:

<stuff snipped>
+ echo BEFORE CC: clang
BEFORE CC: clang
+ echo BEFORE CXX: clang++
BEFORE CXX: clang++
+ echo BEFORE LINK: clang++
BEFORE LINK: clang++
+ echo BEFORE CFLAGS=-qascii -std=gnu11 -qnocsect -qenum=int -qgonumber -O3  -I/z/jd895801/zopen/usr/local/zopen/ncurses/ncurses-6.4.20231114_180107.zos/include -isystem /z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include -qinclude=/z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include/zos-v2r5-symbolfixes.h
BEFORE CFLAGS=-qascii -std=gnu11 -qnocsect -qenum=int -qgonumber -O3  -I/z/jd895801/zopen/usr/local/zopen/ncurses/ncurses-6.4.20231114_180107.zos/include -isystem /z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include -qinclude=/z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include/zos-v2r5-symbolfixes.h
+ echo BEFORE CXXFLAGS=-+ -qascii -qnocsect -qenum=int -qgonumber -O3  -I/z/jd895801/zopen/usr/local/zopen/ncurses/ncurses-6.4.20231114_180107.zos/include -isystem /z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include -isystem /z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include/c++/v1 -qinclude=/z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include/zos-v2r5-symbolfixes.h
BEFORE CXXFLAGS=-+ -qascii -qnocsect -qenum=int -qgonumber -O3  -I/z/jd895801/zopen/usr/local/zopen/ncurses/ncurses-6.4.20231114_180107.zos/include -isystem /z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include -isystem /z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include/c++/v1 -qinclude=/z/jd895801/zopen/usr/local/zopen/zoslib/zoslib-main.20240205_123952.zos/include/zos-v2r5-symbolfixes.h
+ unset CFLAGS CXXFLAGS
+ export CC=clang
+ export CXX=clang++
+ export LINK=clang++
+ echo CC: clang
CC: clang
+ echo CXX: clang++
CXX: clang++
+ echo LINK: clang++
LINK: clang++
+ echo CFLAGS=
CFLAGS=
+ echo CXXFLAGS=
CXXFLAGS=
<stuff snipped>
Modify DEPS via sed
+ sed -i -f../../patches/DEPS.sed DEPS
+ echo gclient sync -D
gclient sync -D
+ gclient sync -D
________ running 'python3 third_party/depot_tools/update_depot_tools_toggle.py --disable' in '/z/jd895801/zopen/dev/v8port/v8base/v8'
________ running 'python3 build/landmines.py --landmine-scripts tools/get_landmines.py' in '/z/jd895801/zopen/dev/v8port/v8base/v8'
________ running 'python3 third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth -u --bucket v8-wasm-spec-tests -s test/wasm-spec-tests/tests.tar.gz.sha1' in '/z/jd895801/zopen/dev/v8port/v8base/v8'
Failed to fetch file gs://v8-wasm-spec-tests/bbc70e15271750e0b4617b63fabf42652267488a for test/wasm-spec-tests/tests.tar.gz. [Err: /z/jd895801/zopen/dev/v8port/v8base/v8/third_party/depot_tools/external_bin/gsutil/gsutil_4.68/gsutil/gslib/vendored/boto/boto/pyami/config.py:69: UserWarning: Unable to load AWS_CREDENTIAL_FILE ()
  warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path)
INFO:root:Retrying request, attempt #1...
INFO 0306 14:46:58.141876 retry_util.py] Retrying request, attempt #1...
INFO:root:Retrying request, attempt #2...
INFO 0306 14:48:01.463589 retry_util.py] Retrying request, attempt #2...
INFO:root:Retrying request, attempt #3...
INFO 0306 14:49:05.482976 retry_util.py] Retrying request, attempt #3...
INFO:root:Retrying request, attempt #4...
INFO 0306 14:50:11.755876 retry_util.py] Retrying request, attempt #4.
<stuff snipped>
+ cd zoslib
+ ./build.sh -c -r -t
~/zopen/dev/v8port/v8base/v8/third_party/zoslib/build ~/zopen/dev/v8port/v8base/v8/third_party/zoslib
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /C/CCplus/LangV2GA/usr/lpp/IBM/oelcpp/v2r0/bin/clang
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /C/CCplus/LangV2GA/usr/lpp/IBM/oelcpp/v2r0/bin/clang++
-- Check for working CXX compiler: /C/CCplus/LangV2GA/usr/lpp/IBM/oelcpp/v2r0/bin/clang++ - broken
CMake Error at /z/jd895801/zopen/usr/local/zopen/cmake/CMake-heads.v3.27.8.20231124_184234.zos/share/cmake-3.27/Modules/CMakeTestCXXCompiler.cmake:60 (message):
  The C++ compiler

    "/C/CCplus/LangV2GA/usr/lpp/IBM/oelcpp/v2r0/bin/clang++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/z/jd895801/zopen/dev/v8port/v8base/v8/third_party/zoslib/build/CMakeFiles/CMakeScratch/TryCompile-ajoetb'
<stuff snipped>

@gabylb
Copy link
Collaborator

gabylb commented Mar 6, 2024

@netskink re the latest clang error from zoslib build, try compiling this t.cc file:

void foo() {}

by running:

$ /C/CCplus/LangV2GA/usr/lpp/IBM/oelcpp/v2r0/bin/clang++ -c t.cc

@netskink
Copy link
Collaborator Author

netskink commented Mar 7, 2024

@netskink re the latest clang error from zoslib build, try compiling this t.cc file:

void foo() {}

by running:

$ /C/CCplus/LangV2GA/usr/lpp/IBM/oelcpp/v2r0/bin/clang++ -c t.cc
$ clang++ --version
C/C++ for Open Enterprise Languages on z/OS 2.0.0, clang version 14.0.0 (build 37a9321)
Target: s390x-ibm-zos
Thread model: posix
InstalledDir: /C/CCplus/LangV2GA/usr/lpp/IBM/oelcpp/v2r0/bin
JD895801@USILCA31 v8port (main)
$ echo $CC $CXX $LINK
clang clang++ clang++
JD895801@USILCA31 v8port (main)
$ clang++ -c t.cc
JD895801@USILCA31 v8port (main)
$ type clang++
clang++ is hashed (/C/CCplus/LangV2GA/usr/lpp/IBM/oelcpp/v2r0/bin/clang++)

Regarding the build, of zoslib. it works manually. After that, I change to the zoslib dir in third_party and it builds fine.

JD895801@USILCA31 zoslib (main)
$ pwd
/z/jd895801/zopen/dev/v8port/v8base/v8/third_party/zoslib
JD895801@USILCA31 zoslib (main)
$ ./build.sh -c -r -t
<stuff snipped>
[----------] Global test environment tear-down
[==========] 40 tests from 17 test suites ran. (9013 ms total)
[  PASSED  ] 39 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] MountTest.GetMntInfo

John F. Davis added 3 commits March 8, 2024 12:51
@gabylb
Copy link
Collaborator

gabylb commented Mar 12, 2024

Now that there's no more a need to run commands on a non z/OS platform, please update README.md to remove the affected sections (Linux platform (non z/OS® UNIX System Services (z/OS UNIX)) setup, rm -rf test tools third_party, etc.).

@netskink
Copy link
Collaborator Author

Now that there's no more a need to run commands on a non z/OS platform, please update README.md to remove the affected sections (Linux platform (non z/OS® UNIX System Services (z/OS UNIX)) setup, rm -rf test tools third_party, etc.).

Hello Gaby, yes, indeed. I forgot to update that. Many thanks for reminding me!

Copy link
Collaborator

@gabylb gabylb left a comment

Choose a reason for hiding this comment

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

LGTM

@netskink netskink merged commit 4d6c948 into zopencommunity:main Mar 13, 2024
1 check failed
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