grame-cncm / faust

Functional programming language for signal processing and sound synthesis
http://faust.grame.fr
Other
2.58k stars 322 forks source link

faust2plot tests/pass-tests/test-max-int.dsp failed about faust@master on centos8_aarch64 #849

Closed Tom-python0121 closed 1 year ago

Tom-python0121 commented 1 year ago

hello,I meet a problem:faust2plot tests/pass-tests/test-max-int.dsp failed about faust@master on centos8_aarch64.

[root@bigdata faust-master]# faust2plot tests/pass-tests/test-max-int.dsp
tests/pass-tests/test-max-int.dsp.cpp:3104:18: warning: type attributes ignored after type is already defined [-Wattributes]
 struct FAUST_API UI;
                  ^~
tests/pass-tests/test-max-int.dsp.cpp:3105:18: warning: type attributes ignored after type is already defined [-Wattributes]
 struct FAUST_API Meta;
                  ^~~~
/tmp/ccB0yUbk.o: In function `CMDUI::run()':
test-max-int.dsp.cpp:(.text._ZN5CMDUI3runEv[_ZN5CMDUI3runEv]+0x40): undefined reference to `pthread_create'
test-max-int.dsp.cpp:(.text._ZN5CMDUI3runEv[_ZN5CMDUI3runEv]+0x4c): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status

How can we solve this problem?

kmatheussen commented 1 year ago

Remove "FAUST_API". (see previous ticket, it's the same error)

On Fri, Dec 30, 2022 at 9:29 AM Jeffrey @.***> wrote:

hello,I meet a problem:faust2plot tests/pass-tests/test-max-int.dsp failed about @.*** on centos8_aarch64.

@.*** faust-master]# faust2plot tests/pass-tests/test-max-int.dsptests/pass-tests/test-max-int.dsp.cpp:3104:18: warning: type attributes ignored after type is already defined [-Wattributes] struct FAUST_API UI; ^~tests/pass-tests/test-max-int.dsp.cpp:3105:18: warning: type attributes ignored after type is already defined [-Wattributes] struct FAUST_API Meta; ^~~~/tmp/ccB0yUbk.o: In function CMDUI::run()':test-max-int.dsp.cpp:(.text._ZN5CMDUI3runEv[_ZN5CMDUI3runEv]+0x40): undefined reference topthread_create'test-max-int.dsp.cpp:(.text._ZN5CMDUI3runEv[_ZN5CMDUI3runEv]+0x4c): undefined reference to `pthread_create'collect2: error: ld returned 1 exit status

How can we solve this problem?

— Reply to this email directly, view it on GitHub https://github.com/grame-cncm/faust/issues/849, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIX3J5YKYK7IK5GWLMLYVLWP2MQDANCNFSM6AAAAAATMW4MIU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sletz commented 1 year ago

Nope, this is a missing -lpthread issue here !

kmatheussen commented 1 year ago

Oh right, I only saw the warnings. :-) (I guess another solution to the previous ticket/issue would be to remove -WError)

On Fri, Dec 30, 2022 at 11:23 AM Stéphane Letz @.***> wrote:

Nope, this is a missing -lpthread issue here !

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

sletz commented 1 year ago

Should be fixed on master-dev branch.