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

Error during build - type error #1046

Open
stirny opened this issue Feb 12, 2025 · 4 comments
Open

Error during build - type error #1046

stirny opened this issue Feb 12, 2025 · 4 comments

Comments

@stirny
Copy link

stirny commented Feb 12, 2025

Running on Oracle Linux 9.5 VM

(fable36) [user@localhost build36]$ cd ${WORK}/build36; make; cd ${WORK}
./bin/libtbx.scons -j "./bin/libtbx.show_number_of_processors"
scons: Reading SConscript files ...
TypeError: '>=' not supported between instances of 'NoneType' and 'int':
File "/home/user/fableworkdir/build36/SConstruct", line 6:
SConscript("libtbx/SConscript")
File "/home/user/fableworkdir/modules/scons/src/engine/SCons/Script/SConscript.py", line 668:
return method(*args, **kw)
File "/home/user/fableworkdir/modules/scons/src/engine/SCons/Script/SConscript.py", line 605:
return _SConscript(self.fs, *files, **subst_kw)
File "/home/user/fableworkdir/modules/scons/src/engine/SCons/Script/SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/user/fableworkdir/modules/cctbx_project/libtbx/SConscript", line 651:
if (env_etc.gcc_version >= 40400 and determine_cpp0x_flag()):
usr+sys time: 0.22 seconds
wall clock time: 0.24 seconds
make: *** [Makefile:6: default] Error 2

@bkpoon
Copy link
Member

bkpoon commented Feb 12, 2025

What is the compiler version?

The easiest way to get fable is to install the conda package.

@stirny
Copy link
Author

stirny commented Feb 13, 2025

I'm currently using conda - base is the default activated one but fable36 was active when trying to make
base * /home/user/fableworkdir/miniconda2
fable36 /home/user/fableworkdir/miniconda2/envs/fable36

[user@localhost ~]$ conda list -n fable36

packages in environment at /home/user/fableworkdir/miniconda2/envs/fable36:

Name Version Build Channel

_libgcc_mutex 0.1 main
_openmp_mutex 5.1 1_gnu
ca-certificates 2024.12.31 h06a4308_0
certifi 2021.5.30 py36h06a4308_0
future 0.18.2 py36_1
ld_impl_linux-64 2.40 h12ee557_0
libffi 3.3 he6710b0_2
libgcc-ng 11.2.0 h1234567_1
libgomp 11.2.0 h1234567_1
libstdcxx-ng 11.2.0 h1234567_1
ncurses 6.4 h6a678d5_0
openssl 1.1.1w h7f8727e_0
pip 21.2.2 py36h06a4308_0
python 3.6.13 h12debd9_1
readline 8.2 h5eee18b_0
setuptools 58.0.4 py36h06a4308_0
six 1.16.0 pyhd3eb1b0_1
sqlite 3.45.3 h5eee18b_0
tk 8.6.14 h39e8969_0
wheel 0.37.1 pyhd3eb1b0_0
xz 5.4.6 h5eee18b_1
zlib 1.2.13 h5eee18b_1

@stirny
Copy link
Author

stirny commented Feb 13, 2025

This was a new VM setup and I didn't realize gcc wasn't installed by default, I'm sorry. The version in use is 11.5.0. I followed the instructions again and was able to compile but when running the test portion I had one failure on tst separate files, any ideas? Thanks for the help.

libtbx.python "/home/user/fableworkdir/modules/cctbx_project/fable/test/tst_separate_files.py" [FAIL] 0.2s
Time: 0.22
Return code: 1
OKs: 0
Standard error:
Traceback (most recent call last):
File "/home/user/fableworkdir/modules/cctbx_project/fable/test/tst_separate_files.py", line 95, in
run(args=sys.argv[1:])
File "/home/user/fableworkdir/modules/cctbx_project/fable/test/tst_separate_files.py", line 72, in run
number_of_function_files=1)
File "/home/user/fableworkdir/modules/cctbx_project/fable/test/tst_separate_files.py", line 38, in exercise
cmd = comp_env.compilation_command(file_name_cpp=file_name_cpp)
File "/home/user/fableworkdir/modules/cctbx_project/fable/simple_compilation.py", line 125, in compilation_command
out_name=O.file_name_obj(file_name_cpp=file_name_cpp))
File "/home/user/fableworkdir/modules/cctbx_project/fable/simple_compilation.py", line 91, in assemble_command
if (disable_warnings or O.gcc_version < 30400):
TypeError: '<' not supported between instances of 'NoneType' and 'int'

@bkpoon
Copy link
Member

bkpoon commented Feb 24, 2025

Is the compiler name g++ or is there some other name? By default, we assume that to be the compiler name. It is odd that you can build the code, but the test fails to find the compiler version.

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

No branches or pull requests

2 participants