Description of problem: tcc hello.c -o hello tcc: error: file 'crt1.o' not found tcc: error: file 'crti.o' not found /lib/libc.so.6: error: bad architecture /usr/lib/libc.so.6: error: bad architecture /lib/libc.so.6: error: bad architecture tcc: error: /usr/lib/libc.so: unrecognized file type 0 /lib/libc.so.6: error: bad architecture /usr/lib/libc.so.6: error: bad architecture /lib/libc.so.6: error: bad architecture tcc: error: /lib/libc.so: unrecognized file type 0 /usr/lib/libc.a: error: invalid object file /lib/libc.a: error: invalid object file tcc: error: library 'c' not found tcc: error: file 'crtn.o' not found tcc: error: undefined symbol 'printf' Version-Release number of selected component (if applicable): How reproducible: Always
In spec, we have %build %configure --debug --triplet=%{_build} --disable-static --disable-rpath %__make Removing triplet option give a working executable. Why do we have this option? Is it save to remove it?
Whiteboard: (none) => MGA9TOO
Remove it if it gives a working pkg.
CC: (none) => geiger.david68210
Submitting: RPMS: tcc-0.9.28-0.git20250528.1.mga9 SRPMS tcc-0.9.28-0.git20250528.1.mga9
Assignee: bugsquad => qa-bugsWhiteboard: MGA9TOO => (none)Version: Cauldron => 9Source RPM: tcc-0.9.28-0.git20250213.2.mga10 => tcc-0.9.27-9+git20200814.62c30a4a.mga9
Here is a simple program to compile for test: // hello.c #include <stdio.h> int main(void) { printf("Hello\n"); return 0; } The compilation is done with: tcc hello.c -o hello If no error occurs, program hello is created and can be launched with ./hello
Keywords: (none) => advisory
RH x86_64 tcc hello.c -o hello tcc: error: file 'crt1.o' not found tcc: error: file 'crti.o' not found /lib/libc.so.6: error: bad architecture /usr/lib/libc.so.6: error: bad architecture /lib/libc.so.6: error: bad architecture tcc: error: /usr/lib/libc.so: unrecognized file type 0 /lib/libc.so.6: error: bad architecture /usr/lib/libc.so.6: error: bad architecture /lib/libc.so.6: error: bad architecture tcc: error: /lib/libc.so: unrecognized file type 0 tcc: error: library 'c' not found tcc: error: file 'crtn.o' not found tcc: error: undefined symbol 'printf' installing tcc-0.9.28-0.git20250528.1.mga9.x86_64.rpm from //home/katnatek/qa-testing/x86_64 Preparing... ################################################################################################## 1/1: tcc ################################################################################################## 1/1: removing tcc-0.9.27-9+git20200814.62c30a4a.mga9.x86_64 ################################################################################################## tcc hello.c -o hello Not produce output ls -l hello* -rwxr-xr-x 1 katnatek katnatek 3954 jun 15 15:49 hello* -rw-rw-r-- 1 katnatek katnatek 84 jun 15 15:45 hello.c ./hello Hello
Whiteboard: (none) => MGA9-64-OKCC: (none) => andrewsfarm
Validating.
Keywords: (none) => validated_updateCC: (none) => sysadmin-bugs
An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2025-0060.html
Status: NEW => RESOLVEDResolution: (none) => FIXED