View Issue Details

IDProjectCategoryView StatusLast Update
0000612Cinelerra-GG[All Projects] Bugpublic2022-05-02 12:52
ReporterThanatermesis Assigned ToPhyllisSmith  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSElive (debian)OS Version3.8.20
Product Version 
Target VersionFixed in Version 
Summary0000612: Cannot compile in 32bit
DescriptionIf I'm not wrong, cinelerra-gg now can compile in 32bit, but for me it fails, this is what i get:

https://pastebin.com/qNmjxfrQ

TagsNo tags attached.

Activities

PhyllisSmith

PhyllisSmith

2022-05-02 12:52

manager   ~0005298

Thanks to Elive distro for providing this.
PhyllisSmith

PhyllisSmith

2022-05-01 21:40

manager   ~0005297

@Andrew-R
Additional note has been added and checked into GIT:
Note for building 32-bit packages on hybrid 32/64 x86 systems, you may need to add the following:
  setarch i686 (befire configure and package build)

And finally managed to add to the Debian Elive and Download sections on the website that the package was made available by Elive for both 32 and 64 bit versions.
Andrew-R

Andrew-R

2022-04-22 04:46

reporter   ~0005281

@PhyllisSmith, I think you might add note about 'setarch i686' befire configure and package building (or similar) on hybrid (32/64) x86 installations...
PhyllisSmith

PhyllisSmith

2022-04-22 00:38

manager   ~0005279

Great. I made a note to add 32 bit to the 64 bit availability in the Introduction section on the manual tand checked it into GIT. I also tried updating the website under the Debian symbol, but accidentally deleted the whole Debian package section instead. (Have to wait for Sam to fix it -- I am having trouble updating any of the web pages due to lack of knowledge).

Will close this BT in 2 days.
Thanatermesis

Thanatermesis

2022-04-21 01:29

reporter   ~0005278

Finally solved ! thanks to the "setarch i686" suggestion of @Andrew-R, I prepended the chroot with it and it worked all good :)

Now we have updated packages for 32 bit too!
* Buster compatible: http://repo.buster.elive.elivecd.org/pool/multimedia/c/
* Bullseye compatible: https://repo.bullseye.elive.elivecd.org/pool/multimedia/c/

@MatN: as said before, its a 64bit system which builds in a chroot on 32bit, system is debian/buster (moving to bullseye) and a very common machine (Thinkpad T460s) with intel GPU
MatN

MatN

2022-04-20 21:12

reporter   ~0005277

Will test tomorrow, I have at least Debian11 x86_32 set up.
@Thanatermesis , what is the OS and version you are compiling on, and which hardware?
CPU and GPU.

MatN
PhyllisSmith

PhyllisSmith

2022-04-20 20:13

manager   ~0005276

@MatN
Maybe Mat has a suggestion??
Andrew-R

Andrew-R

2022-04-20 05:56

reporter   ~0005275

@Thanatermesis, sorry (posting from tablet)
Andrew-R

Andrew-R

2022-04-20 05:56

reporter   ~0005274

@Thanateremis, I build on hybrid Slackware (64 bit kernel + 32 bit userspace), but my gcc obviously outputs 32 bit by default. Not sure if nasm works same way (default output depend on how/where it was compiled)

this time it dies in libtheora assembly...

x86/sse2fdct.c:440: Error: bad register name `%xmm15'
x86/sse2fdct.c:441: Error: bad register name `%xmm14'

try to run builder with setarch i686?
Thanatermesis

Thanatermesis

2022-04-20 04:43

reporter   ~0005273

The problem seems to be that my host is a 64bit system, but I build the 32-bit packages in a 32-bit chroot, for example this line:

nasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -DSTACK_ALIGNMENT=64 -DPIC -o common/x86/predict-a-10.o common/x86/predict-a.asm -DBIT_DEPTH=10 -Dprivate_prefix=x264_10

but this is meant to be detected correctly, as all my other packages compiles correctly in 32bit from the chroot
PhyllisSmith

PhyllisSmith

2022-04-20 01:36

manager   ~0005272

Using Debian 11.0 32-bit on an HP laptop with uname -a:
  5.10.0-8-686-pae 0000001 SMP Debian 5.10.46.4 (2021-08-03) i686 GNU/Linux
I had no problems compiling and running.

When I first installed this Debian, I initially ran "cinelerra-5.1/blds/bld_prepare.sh debian" to get the packages I needed automatically figured out. And now I just run "cinelerra-5.1/bld.sh" to compile which is a "single_user" build.
Thanatermesis

Thanatermesis

2022-04-19 22:52

reporter   ~0005271

I tried different things, seems like gcc-multilib improved in some way, but I still unable to make the package for 32bits: https://pastebin.com/nYeH2pb9

Is there anybody compiling on a amd64 host? which options and dependencies you use?
Andrew-R

Andrew-R

2022-04-19 18:44

reporter   ~0005270

also, may be installing gcc-multilib (on 64 bit system) still needed?

https://askubuntu.com/questions/453681/gcc-wont-link-with-m32
Andrew-R

Andrew-R

2022-04-19 18:36

reporter   ~0005269

hm..
/usr/lib/ccache/gcc conftest.c -m64 -Wall -I. -I$(SRCPATH) -Werror=attributes -Werror=ignored-attributes -m64 -lm -o conftest

try to pass '-m32' as cflag?
Thanatermesis

Thanatermesis

2022-04-19 18:30

reporter   ~0005268

config.log shows: https://pastebin.com/r5t9yheD
Andrew-R

Andrew-R

2022-04-19 18:20

reporter   ~0005267

"make[3]: *** [Makefile:369: /mkdeb/build/i386/cinelerra-gg/cinelerra-gg/thirdparty/../thirdparty/build/x264.configure] Error 1"

for some reason configuring of our snapshot of x264 fails....

can you manually step into build directory and look for x264 log?
PhyllisSmith

PhyllisSmith

2022-04-19 14:06

manager   ~0005266

I compiled on Debian 9.1 32-bit just yesterday with the latest GIT and ran Cinelerra, loaded a file, and played a section.
I will test on Debian 11.0 32-bit later today (it takes a long time to compile there so have to do some other things first).
However, in your pastebin, line 616, a cursory look shows "No working C compiler found".

Issue History

Date Modified Username Field Change
2022-04-19 09:02 Thanatermesis New Issue
2022-04-19 14:06 PhyllisSmith Assigned To => PhyllisSmith
2022-04-19 14:06 PhyllisSmith Status new => feedback
2022-04-19 14:06 PhyllisSmith Note Added: 0005266
2022-04-19 18:20 Andrew-R Note Added: 0005267
2022-04-19 18:30 Thanatermesis Note Added: 0005268
2022-04-19 18:30 Thanatermesis Status feedback => assigned
2022-04-19 18:36 Andrew-R Note Added: 0005269
2022-04-19 18:44 Andrew-R Note Added: 0005270
2022-04-19 22:52 Thanatermesis Note Added: 0005271
2022-04-20 01:36 PhyllisSmith Note Added: 0005272
2022-04-20 04:43 Thanatermesis Note Added: 0005273
2022-04-20 05:56 Andrew-R Note Added: 0005274
2022-04-20 05:56 Andrew-R Note Added: 0005275
2022-04-20 20:13 PhyllisSmith Note Added: 0005276
2022-04-20 21:12 MatN Note Added: 0005277
2022-04-21 01:29 Thanatermesis Note Added: 0005278
2022-04-22 00:38 PhyllisSmith Note Added: 0005279
2022-04-22 04:46 Andrew-R Note Added: 0005281
2022-05-01 21:40 PhyllisSmith Status assigned => resolved
2022-05-01 21:40 PhyllisSmith Resolution open => fixed
2022-05-01 21:40 PhyllisSmith Note Added: 0005297
2022-05-02 12:52 PhyllisSmith Status resolved => closed
2022-05-02 12:52 PhyllisSmith Note Added: 0005298