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

Build system picks an arbitrary cc for arch-arm64 which breaks compilation #22955

Open
barracuda156 opened this issue May 21, 2024 · 1 comment

Comments

@barracuda156
Copy link

Description

The build system picks a wrong compiler, once in arch-arm64 directory, ignoring environment settings. Up to that point the right gcc is used.

make[5]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/fs'
"/opt/local/bin/gcc-mp-13 -dynamiclib -fPIC -o libr_fs.dylib -Wl,-install_name,/opt/local/lib/libr_fs.dylib p/fs_ext2.o p/fs_fat.o p/fs_fb.o p/fs_hfs.o p/fs_hfsplus.o p/fs_io.o p/fs_iso9660.o p/fs_jfs.o p/fs_minix.o p/fs_ntfs.o p/fs_posix.o p/fs_r2.o p/fs_reiserfs.o p/fs_sfs.o p/fs_tar.o p/fs_udf.o p/fs_ufs.o p/fs_xfs.o p/fs_zip.o fs.o fs_file.o fs_shell.o  -L/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/util -L/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/io -L/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/socket -L/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/cons -L/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/crypto -lr_util -lr_io -lr_socket -lr_cons -lr_crypto   -fPIC -fvisibility=hidden   -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/../shlr/grub/libgrubfs.a -lzip -fvisibility=hidden"
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/fs'
make[4]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/fs'
make[4]: `libr_fs.a' is up to date.
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/fs'
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/fs'
cd arch-arm64 && git checkout -q radare2-wip > /dev/null && git reset --hard 55d73c6bbb94448a5c615933179e73ac618cf876
HEAD is now at 55d73c6 Remove c99 dependency
/usr/bin/make arm64dis.a
make[5]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/arch/p/arm/v35'
cc -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/arch/p/arm/v35/arch-arm64/disassembler/ -fPIC -DUNUSED=R_UNUSED -fPIC   -c -o arch-arm64/disassembler/decode.o arch-arm64/disassembler/decode.c
cc -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/arch/p/arm/v35/arch-arm64/disassembler/ -fPIC -DUNUSED=R_UNUSED -fPIC   -c -o arch-arm64/disassembler/decode0.o arch-arm64/disassembler/decode0.c
cc -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/arch/p/arm/v35/arch-arm64/disassembler/ -fPIC -DUNUSED=R_UNUSED -fPIC   -c -o arch-arm64/disassembler/decode1.o arch-arm64/disassembler/decode1.c
cc -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/arch/p/arm/v35/arch-arm64/disassembler/ -fPIC -DUNUSED=R_UNUSED -fPIC   -c -o arch-arm64/disassembler/decode2.o arch-arm64/disassembler/decode2.c
cc -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/arch/p/arm/v35/arch-arm64/disassembler/ -fPIC -DUNUSED=R_UNUSED -fPIC   -c -o arch-arm64/disassembler/decode_fields32.o arch-arm64/disassembler/decode_fields32.c
cc -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/arch/p/arm/v35/arch-arm64/disassembler/ -fPIC -DUNUSED=R_UNUSED -fPIC   -c -o arch-arm64/disassembler/decode_scratchpad.o arch-arm64/disassembler/decode_scratchpad.c
arch-arm64/disassembler/decode.c: In function ‘aarch64_decompose’:
arch-arm64/disassembler/decode.c:13: warning: integer constant is too large for ‘long’ type
arch-arm64/disassembler/decode.c:14: warning: integer constant is too large for ‘long’ type
cc -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_radare2/radare2/work/radare2-5.9.2/libr/arch/p/arm/v35/arch-arm64/disassembler/ -fPIC -DUNUSED=R_UNUSED -fPIC   -c -o arch-arm64/disassembler/encodings_dec.o arch-arm64/disassembler/encodings_dec.c
arch-arm64/disassembler/decode_scratchpad.c:365:7: error: invalid suffix "b00000" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:367:7: error: invalid suffix "b00001" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:369:7: error: invalid suffix "b00010" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:371:7: error: invalid suffix "b00011" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:373:7: error: invalid suffix "b00100" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:375:7: error: invalid suffix "b00101" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:377:7: error: invalid suffix "b00110" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:379:7: error: invalid suffix "b00111" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:381:7: error: invalid suffix "b01000" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:383:7: error: invalid suffix "b01001" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:385:7: error: invalid suffix "b01010" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:387:7: error: invalid suffix "b01011" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:389:7: error: invalid suffix "b01100" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:391:7: error: invalid suffix "b01101" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:393:7: error: invalid suffix "b01110" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:395:7: error: invalid suffix "b01111" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:397:7: error: invalid suffix "b10000" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:399:7: error: invalid suffix "b10001" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:401:7: error: invalid suffix "b10010" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:403:7: error: invalid suffix "b10011" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:405:7: error: invalid suffix "b10100" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:407:7: error: invalid suffix "b10101" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:409:7: error: invalid suffix "b10110" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:411:7: error: invalid suffix "b10111" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:413:7: error: invalid suffix "b11000" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:415:7: error: invalid suffix "b11001" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:417:7: error: invalid suffix "b11010" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:419:7: error: invalid suffix "b11011" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:421:7: error: invalid suffix "b11100" on integer constant
arch-arm64/disassembler/decode_scratchpad.c:423:7: error: invalid suffix "b11101" on integer constant
. . .

Environment

36-244% date
Tue May 21 16:47:29 CST 2024
36-244% uname -ms
Darwin Power Macintosh
@trufae
Copy link
Collaborator

trufae commented May 23, 2024

How are you setting the compiler? export CC=..? Maybe having a file in mk/ will do the job? Have you tried with meson instead of make?

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