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

ack (compiled with default linux386) to compile itself? #283

Open
cardassian opened this issue Apr 22, 2023 · 1 comment
Open

ack (compiled with default linux386) to compile itself? #283

cardassian opened this issue Apr 22, 2023 · 1 comment

Comments

@cardassian
Copy link

  • I first compiled (and installed) ack with a linux386 default
  • make clean
  • CC=ack AR=aal make brings a handful of implicit variable declarations in llgen which are trivial to fix
  • I stumble over:
    [2/10014] ack -o /tmp/ack-build/obj/util/LLgen/llgen/llgen /tmp/ack-b...in/llgen/main.a /tmp/ack-build/obj/util/LLgen/llgen/main/llgen/main.a
    FAILED: ack -o /tmp/ack-build/obj/util/LLgen/llgen/llgen /tmp/ack-build/obj/util/LLgen/llgen/main/llgen/main.a /tmp/ack-build/obj/util/LLgen/llgen/main/llgen/main.a
    /home/hein/bin/aelflod: the input file must have 4 sections, not 0.

In my opinion main.a looks fine:
$ aal tv /tmp/ack-build/obj/util/LLgen/llgen/main/llgen/main.a
rw-rw-r-- 232/232 41558 Apr 22 17:13 2023 LLgen.o
rw-rw-r-- 232/232 6638 Apr 22 17:13 2023 Lpars.o
rw-rw-r-- 232/232 5383 Apr 22 17:13 2023 alloc.o
rw-rw-r-- 232/232 1086 Apr 22 17:13 2023 cclass.o
rw-rw-r-- 232/232 19352 Apr 22 17:13 2023 check.o
rw-rw-r-- 232/232 34473 Apr 22 17:13 2023 compute.o
rw-rw-r-- 232/232 53085 Apr 22 17:13 2023 gencode.o
rw-rw-r-- 232/232 7751 Apr 22 17:13 2023 global.o
rw-rw-r-- 232/232 7092 Apr 22 17:13 2023 machdep.o
rw-rw-r-- 232/232 19586 Apr 22 17:13 2023 main.o
rw-rw-r-- 232/232 11586 Apr 22 17:13 2023 name.o
rw-rw-r-- 232/232 7466 Apr 22 17:13 2023 reach.o
rw-rw-r-- 232/232 16138 Apr 22 17:13 2023 savegram.o
rw-rw-r-- 232/232 9188 Apr 22 17:13 2023 sets.o
rw-rw-r-- 232/232 19519 Apr 22 17:13 2023 tokens.o
rw-rw-r-- 232/232 3037 Apr 22 17:13 2023 utils.o

Any hints?

Best regards,
Hans

@tkchia
Copy link
Contributor

tkchia commented Nov 1, 2023

Hello @cardassian,

I believe the driver program (or maybe the linker) is a bit confused by the fact that the input files are all .a files, while it is likely expecting some .o files. There is probably a way to fix this and get the driver program to do the expected thing...

Thank you!

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