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

native build: assembler fail to build objects due to fatal errors causing by unability to create /tmp/xxxxxxx.o files. #18

Open
kas1e opened this issue Oct 31, 2023 · 6 comments

Comments

@kas1e
Copy link

kas1e commented Oct 31, 2023

When we tried to build anything via new native AS (by using gcc or directly), we do have:

Assembler messages:
Fatal error: can't create /tmp/xxxxxxx.o : No such file or directory

Probably that the "unix paths" issue, and we should add -lunix at the end of compiling lines, but not sure if it all what need to be done to be deal with.

@kas1e
Copy link
Author

kas1e commented Oct 31, 2023

Ok this one fixed by adding -lunix to LDFLAGS, can be closed.

@kas1e kas1e closed this as completed Oct 31, 2023
@kas1e kas1e reopened this Jan 1, 2024
@kas1e
Copy link
Author

kas1e commented Jan 1, 2024

This one again there, as in the latest commits, LDFLAGS="-lunix" were deleted by accident from the native build instructions from the main README.

@migthymax
Copy link
Member

Because gdb now uses clib4, it is even enough to put a .unixfile into the bin directory

@kas1e
Copy link
Author

kas1e commented Sep 18, 2024

Yeah, but IMHO in long run we need to fix it "inside" (imho) ? As all in all this is the native build, so we had to care for all the pathes/slashes/progdirs/homes/etc ? Not that it's big deal for now, but probably for some "public kind of final" release should be done (imho again :) )

@migthymax
Copy link
Member

Yes you right, but after trying to deal with this issue and thinking about it. The issue is that the as is called with /tmp/...files. You can see this with running gcc -v in verbose mode. And os I think the issue is with the gcc compiler resp. the collect command. But nevertheless it should work as a whole package in the end.

@kas1e
Copy link
Author

kas1e commented Oct 7, 2024

Tested more , and i can't deal with it if i just do `assign tmp: ram:' , same error. I also can't deal with it by putting empty .unix file in the directory from which i tried to build this example. And even if i tried to test this issue by compiling sources from within "sh" shell, it still the same.

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