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 fails on i386 arch #260

Closed
nunotexbsd opened this issue Sep 12, 2022 · 7 comments
Closed

build fails on i386 arch #260

nunotexbsd opened this issue Sep 12, 2022 · 7 comments

Comments

@nunotexbsd
Copy link
Contributor

Hello,

FreeBSD treesheets 1.0.2 port builds/runs on aarch64, amd64, armv7, i386 and powerpc64.

Latest 3025803779 runs on amd64 but it fails on i386 (other archs not tested):

Any clues?

[ 63% 12/19] /usr/bin/c++ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D__WXGTK__ -I/wrkdirs/usr/ports/deskutils/treesheets/work/treesheets-3025803779/lobster/include -I/wrkdirs/usr/ports/deskutils/treesheets/work/treesheets-3025803779/lobster/src -I/wrkdirs/usr/ports/deskutils/treesheets/work/treesheets-3025803779/lobster/external/libtcc -isystem /usr/local/lib/wx/include/gtk3-unicode-3.1 -isystem /usr/local/include/wx-3.1 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++17 -pthread -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MD -MT CMakeFiles/lobster.dir/lobster/src/compiler.cpp.o -MF CMakeFiles/lobster.dir/lobster/src/compiler.cpp.o.d -o CMakeFiles/lobster.dir/lobster/src/compiler.cpp.o -c /wrkdirs/usr/ports/deskutils/treesheets/work/treesheets-3025803779/lobster/src/compiler.cpp
In file included from /wrkdirs/usr/ports/deskutils/treesheets/work/treesheets-3025803779/lobster/src/compiler.cpp:28:
/wrkdirs/usr/ports/deskutils/treesheets/work/treesheets-3025803779/lobster/src/lobster/typecheck.h:1097:17: warning: 16 enumeration values not handled in switch: 'V_MINVMTYPES', 'V_ANY', 'V_VALUEBUF'... [-Wswitch]
        switch (type->t) {
                ^
/wrkdirs/usr/ports/deskutils/treesheets/work/treesheets-3025803779/lobster/src/lobster/typecheck.h:3098:17: warning: 6 enumeration values not handled in switch: 'NF_NONE', 'NF_CONVERTANYTOSTRING', 'NF_PUSHVALUEWIDTH'... [-Wswitch]
        switch (ret.flags) {
                ^
2 warnings generated.
ninja: build stopped: subcommand failed.

full log

Thanks,
Nuno Teixeira

@aardappel
Copy link
Owner

TreeSheets (and the included Lobster) hasn't been tried on 32-bit in a long time, I wouldn't be surprised if that is broken, and frankly, I don't see a lot of point in continuing to support 32-bit for a desktop app, given that I don't have a 32-bit machine nor want to spent the time ensuring it works.

That said, this fatal error: 'i386-gen.c' file not found should be easy to fix. It is a question of getting the corresponding files from libtcc (version 2022-05-26), adding them to dev/external/libtcc. If that makes it work, make a PR here and similar one for the Lobster repo.

@nunotexbsd
Copy link
Contributor Author

I've checked lobster/external/libtcc/readmes/VERSION, downloaded tcc-0.9.27.tar.bz2 and added 3 missing i386 files: i386-gen.c, i386-asm.h and i386-link.c and it doesn't build (log)

I will justify port i386 broken:

NOT_FOR_ARCHS=  i386
NOT_FOR_ARCHS_REASON_i386= unsupported platform

i386 is still a Tier 1 arch on FreeBSD 12.x version, that's why I was looking for its support.

Thanks very much for your help and it was fun doing this tests!

Cheers

@aardappel
Copy link
Owner

Looks like you used an old version, like I said, it needs to be the one from 2022-05-26: https://repo.or.cz/tinycc.git

Either way, making it unsupported is fine too.

@nunotexbsd
Copy link
Contributor Author

Nice, I will do more tests tomorrow!

@nunotexbsd
Copy link
Contributor Author

Good news!

It compiles fine (log) and runs perfectly on FreeBSD 12.3 i386 bhyve vm (photo) :)

nunotexbsd added a commit to nunotexbsd/treesheets that referenced this issue Sep 13, 2022
+ i386-asm.h
+ i386-gen.c
+ i386-link.c

from https://repo.or.cz/tinycc.git/commit/afc136262e93ae85fb3643005b36dbfc30d99c42

SHA512 (tinycc-afc1362/i386-asm.c) = 98abf361b41168b68a8e58b2325cec695fcd7f5e2ee2f02823a686693ff7b8b5c7e3817e421745229dd734aa4abbf8f1a1739dfca991fda8bbdf5e802be9c128
SHA512 (tinycc-afc1362/i386-asm.h) = 842d4402e327a5467b6768f3d1a48fd5a1cf83c291516779b7463b07d9f938f203703a9add835e43b1de58b7678e79315cc9b95405f1a14f8df44a0af3835672
SHA512 (tinycc-afc1362/i386-gen.c) = 699d2b0c7a096a59b474097a0dc6db391ccc2dbff2733ff8a2e7cd6ff57204862996e2e06022350e9fb00424bc329f1dca061c168ce000bc0851bc73c900d048
SHA512 (tinycc-afc1362/i386-link.c) = ffd3c986e8da72a793c3c39082e9a477b5a394447141fa41201a1fcfe19905f2a13d6538b5521e49eba67fa591bf2be4b1b69ad1d493e7720ecaf339a551411b
SHA512 (tinycc-afc1362/i386-tok.h) = 2ab5520c2c08b0d8be474363d5a43afd7c2a0e710003209fb81945695e48694515f207e6ba736d66968258bbc1adfe5c0255b6bad834f0ebfeea9512f9e51216

aardappel#260
@nunotexbsd
Copy link
Contributor Author

#261

@nunotexbsd nunotexbsd reopened this Sep 13, 2022
aardappel pushed a commit that referenced this issue Sep 13, 2022
+ i386-asm.h
+ i386-gen.c
+ i386-link.c

from https://repo.or.cz/tinycc.git/commit/afc136262e93ae85fb3643005b36dbfc30d99c42

SHA512 (tinycc-afc1362/i386-asm.c) = 98abf361b41168b68a8e58b2325cec695fcd7f5e2ee2f02823a686693ff7b8b5c7e3817e421745229dd734aa4abbf8f1a1739dfca991fda8bbdf5e802be9c128
SHA512 (tinycc-afc1362/i386-asm.h) = 842d4402e327a5467b6768f3d1a48fd5a1cf83c291516779b7463b07d9f938f203703a9add835e43b1de58b7678e79315cc9b95405f1a14f8df44a0af3835672
SHA512 (tinycc-afc1362/i386-gen.c) = 699d2b0c7a096a59b474097a0dc6db391ccc2dbff2733ff8a2e7cd6ff57204862996e2e06022350e9fb00424bc329f1dca061c168ce000bc0851bc73c900d048
SHA512 (tinycc-afc1362/i386-link.c) = ffd3c986e8da72a793c3c39082e9a477b5a394447141fa41201a1fcfe19905f2a13d6538b5521e49eba67fa591bf2be4b1b69ad1d493e7720ecaf339a551411b
SHA512 (tinycc-afc1362/i386-tok.h) = 2ab5520c2c08b0d8be474363d5a43afd7c2a0e710003209fb81945695e48694515f207e6ba736d66968258bbc1adfe5c0255b6bad834f0ebfeea9512f9e51216

#260
@nunotexbsd
Copy link
Contributor Author

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