Opened 2 years ago

Last modified 21 months ago

#64875 assigned defect

julia does not build with gcc, forcing clang

Reported by: barracuda156 Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc Cc: githubbjs (BJS)
Port: julia

Description

Does anyone know if that is fixable? I tried a usual way to enforce a specific compiler, but the build still tries to invoke clang.

Change History (7)

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

The julia port has variants for selecting gcc compilers. One of them is selected by default. Are you using one of those? And it's still not using gcc?

comment:2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

The julia port's build system uses silent rules so we cannot see from looking at the log what compiler was actually used. The julia port should disable silent rules so that we can see this information.

comment:3 in reply to:  1 Changed 2 years ago by barracuda156

Replying to ryandesign:

The julia port has variants for selecting gcc compilers. One of them is selected by default. Are you using one of those? And it's still not using gcc?

I will check once I am back to my PPC machine. As I recall, I specified macports-gcc-11 in portfile and command line both, and got a bunch of errors straightaway that included clang+ calls.

comment:4 in reply to:  1 Changed 2 years ago by barracuda156

Replying to ryandesign:

The julia port has variants for selecting gcc compilers. One of them is selected by default. Are you using one of those? And it's still not using gcc?

On 10.6.8 it simply gives out Error: Unable to open port: can't read "cdb(gcc10,descrip)": no such element in array.

UPD. I get it on 10.5.8 now too. This is something changed in some portgroup, apparently: julia port was parsed successfully before, and now it fails.

Last edited 2 years ago by barracuda156 (previous) (diff)

comment:5 in reply to:  1 Changed 2 years ago by barracuda156

Replying to ryandesign:

The julia port has variants for selecting gcc compilers. One of them is selected by default. Are you using one of those? And it's still not using gcc?

This is what happens:

--->  Building julia
xinstall: mkdir /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/bin
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0" && /usr/bin/make -j4 -w  
  File "<string>", line 1
SyntaxError: future feature print_function is not defined
Warning: git information unavailable; versioning information limited
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
make: clang: Command not found
make: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0'
/bin/sh: clang: command not found
/bin/sh: clang: command not found
/bin/sh: clang: command not found
  File "<string>", line 1
SyntaxError: future feature print_function is not defined
/bin/sh: clang++: command not found
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/install.sh 755 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/julia-config.jl /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/usr/share/julia/
Creating usr/etc/julia/startup.jl
Copying in usr/share/man/man1/julia.1
  File "<string>", line 1
SyntaxError: future feature print_function is not defined
Warning: git information unavailable; versioning information limited
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
make[1]: clang: Command not found
make[1]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/deps'
/bin/sh: clang: command not found
/bin/sh: clang: command not found
/bin/sh: clang: command not found
  File "<string>", line 1
SyntaxError: future feature print_function is not defined
/bin/sh: clang++: command not found
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/contrib/relative_path.py", line 10, in <module>
    sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/'))
AttributeError: 'module' object has no attribute 'relpath'
cp: /opt/local/lib/gcc7/gcc/ppc-apple-darwin10/7.5.0/../../..//libgfortran.4.dylib: No such file or directory
env: python2: No such file or directory
env: python2: No such file or directory
rm: scratch/dsfmt-2.2.4/: No such file or directory
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... powerpc-apple-darwin10.0.0d2
checking host system type... powerpc-apple-darwin10.0.0d2
checking for gcc... clang -mmacosx-version-min=10.10
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_julia/julia/work/julia-1.7.0/deps/scratch/libuv-3a63bf71de62c64097989254e4f03212e3bf5fc8':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[1]: *** [scratch/libuv-3a63bf71de62c64097989254e4f03212e3bf5fc8/build-configured] Error 77
  1. S. Due to the port error reported above, I can only test it on 10A190 at the moment.

comment:6 Changed 21 months ago by githubbjs (BJS)

Cc: githubbjs added

comment:7 Changed 21 months ago by barracuda156

Discussion at upstream: https://github.com/JuliaLang/julia/discussions/44684 (but no solution there).

Note: See TracTickets for help on using tickets.